Hello everyone,
I am writing because I am unfortunately having problems with TRoot::RegisterModule.
The error I get is as follows:
/usr/bin/ld: /opt/exp_software/neutrino/EDEPSIM/lib/libedepsim_io. so: undefined reference to `TROOT::RegisterModule(char const*, char const**, char const*, char const*, void (*)(), std::vector<std::pair<std::string, int>, std::allocator<std::pair<std::string, int> > > const&, char const**, bool)’
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/single.dir/build.make:455: single] Error 1
make[1]: *** [CMakeFiles/Makefile2:152: CMakeFiles/single.dir/all] Error 2
The steps I take are as follows:
I go into the build folder
I do source …/setup_CNAF (which I attach)
I do cmake …/. which gives no error
I do make which gives me the above error.
I also attach the CMakeLists.txt
Thanks to anyone who can solve the problem!
Cheers,
Silvia CMakeLists.txt (3.7 KB) setup_CNAF.txt (1.6 KB)
I am not sure what kind of details you need, but I do my best.
I am connected via ssh and need to configure the environment to be able to compile codes written in c++.
To configure the environment I do source setup_CNAF (which I have attached) and then make.
When I do make, I get the above error.
From what I understand: you’re trying to build lar-lenses, a package which depends on ROOT.
Maybe you can verify this file exists to make sure ROOT is setup properly:
ls /opt/exp_software/neutrino/al9/ROOT/v6.32.06/v6.32.06_install/bin/thisroot.sh
But other than that it seems to not be a ROOT issue. The project doesn’t link against all the ROOT components that are needed. Can you perhaps bring up this issue with lar-lenses maintainers/developers?