Elisabetta Prencipe (2) wrote on Tue, 12 April 2016 14:05Dear 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