Compilation Problems
Created by: padsley
I'm struggling with this a bit...
I'm trying to recompile nptool as I've been making changes to the two-body reaction code to make it better for use with the SplitPole+silicon Orsay work.
NPLib compiles without a problem (if I limit the compilation to W1 and SplitPole because that's all that I want).
However, NPSimulation is throwing this:
[ 2%] Building CXX object Scorers/CMakeFiles/NPSScorers.dir/SiliconScorers.cc.o
In file included from /home/padsley/codes/nptoolNew/NPSimulation/Scorers/SiliconScorers.cc:22:0:
/home/padsley/codes/nptoolNew/NPSimulation/Scorers/SiliconScorers.hh:29:21: fatal error: NPImage.h: No such file or directory
compilation terminated.
Scorers/CMakeFiles/NPSScorers.dir/build.make:86: recipe for target 'Scorers/CMakeFiles/NPSScorers.dir/SiliconScorers.cc.o' failed
make[2]: *** [Scorers/CMakeFiles/NPSScorers.dir/SiliconScorers.cc.o] Error 1
CMakeFiles/Makefile2:346: recipe for target 'Scorers/CMakeFiles/NPSScorers.dir/all' failed
make[1]: *** [Scorers/CMakeFiles/NPSScorers.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Now, this is occurring because the compiler can't find the header "NPImage.h" which is in /home/padsley/codes/nptoolNew/NPLib/Core
.
I am sourcing nptool.sh
in my .bashrc, and nps
, npl
and npa
all give the expected behaviour.
I can get around this problem by manually setting e.g. C_INCLUDE_PATH in the system but this seems unsatisfactory.
To be honest, I can't work out what this isn't working. I tried checking out a new version of the repo to test it on my machine but I get the same problem. Is it a task for the user to set the include paths or has something gone wrong?