In my cmake file, I have:
ROOT_GENERATE_DICTIONARY(G__{barename} src/{barename}.h LINKDEF LinkDef.h)
The the following error shows up when compiling:
[ 15%] Generating G__ana.cxx, libana_rdict.pcm, libana.rootmap
No such file or directory
make[2]: *** [src/CMakeFiles/Analysis.dir/build.make:78: src/G__ana.cxx] Error 1
Then I went ahead to check the file and found the following line:
cd /home/wxie/ana/build/src && /usr/bin/cmake -E env LD_LIBRARY_PATH=/home/lib:/home/ROOT/lib
/home/bin/rootcling -v2 -f G__ana.cxx -s …
So issue is this line:
/home/bin/rootcling
and it should be
/home/ROOT/bin/rootcling
I checked my ROOTSYS=/home/ROOT
Any hints are appreciated.
_ROOT Version: 6.22/06
_Platform: ubuntu 20.04
Compiler: gcc