GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] problems in installing a pandaroot release (usual problems)
Re: problems in installing a pandaroot release (usual problems) [message #19191 is a reply to message #19190] Tue, 12 April 2016 14:28 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Elisabetta Prencipe (2) wrote on Tue, 12 April 2016 14:05
Dear all,
2) Installing FairRoot...troubles:

>>>>> cmake -DCMAKE_INSTALL_PREFIX=/home/prencipe/panda/fairsoft_mar15/buildFairRoot /home/prencipe/panda/fairsoft_mar15/FairRoot

-- fairsoft-config found
-- C compiler used for FairSoft installation: /usr/bin/gcc
-- C compiler used now: /usr/bin/gcc
-- CXX compiler used for FairSoft installation: /usr/bin/g++
-- CXX compiler used now: /usr/bin/c++
-- The compiler during the compilation of FairSoft is different from the current one.
CMake Error at cmake/modules/CheckCompiler.cmake:64 (Message):
This is seen as an error. If you know that the setting is correct you can
silence the error by using the CMake flag -DUSE_DIFFERENT_COMPILER=TRUE
Call Stack (most recent call first):
CMakeLists.txt:55 (Check_Compiler)
.

First of all, it should be:

cmake -DCMAKE_INSTALL_PREFIX=/home/prencipe/panda/fairsoft_mar15/buildFairRoot /home/prencipe/panda/fairsoft_mar15/buildFairRoot ../


CMAKE_INSTALL_PREFIX is where you are going to export the libraries, not where the code is staying. If you check the wiki page:

pandauser@panda-VirtualBox:~/fairsoft_mar15/FairRoot/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/pandauser/fairsoft_mar15/buildFairRoot /home/pandauser/fairsoft_mar15/FairRoot


Second, the error is known, and in wiki it is described how to fix it:

pandauser@panda-VirtualBox:~/fairsoft_mar15/FairRoot/build$ cmake -DUSE_DIFFERENT_COMPILER=TRUE -DCMAKE_INSTALL_PREFIX=/home/pandauser/fairsoft_mar15/buildFairRoot /home/pandauser/fairsoft_mar15/FairRoot



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compilation error
Next Topic: [NOTSUPPORTED] Eternal package compilation error OSX 10.11.4
Goto Forum:
  


Current Time: Fri Mar 29 09:45:36 CET 2024

Total time taken to generate the page: 0.01078 seconds