|Re: Creating a new Detector out of 2 or more detectors [message #13138 is a reply to message #13134]
||Sat, 03 March 2012 03:32
Registered: February 2012
Location: Stony Brook, New York
I do have gSystem->Load("libFairDircDet") amongst all the other libraries in my macro.
Here is part of my CMakeLists.txt file inside the DircDet directory.
#put here all directories where header files are located
Rest of the file is built exactly like the instructions on the website.
I think that i did not do the linking properly but i dont understand why because i did it exactly like how the example rutherford was designed.
I have also built all the libraries for the detectors with no errors so they do exist properly.
Another problem that i have is with building the passive components like fairpipe.
I have it built exactly like the FairMagnet (with the appropriate changes for geometry and media, but on doing make, it gives me an error like
[ 61%] Built target FairRutherford
[ 61%] Generating FairPassiveDict.cxx, FairPassiveDict.h
[ 61%] Building CXX object example/passive/CMakeFiles/Passive.dir/FairGeoPipe.o
In file included from /usr/include/c++/4.2.1/typeinfo:39,
/usr/include/c++/4.2.1/exception:40: error: ‘#pragma’ is not allowed here
make: *** [example/passive/CMakeFiles/Passive.dir/FairGeoPipe.o] Error 1
make: *** [example/passive/CMakeFiles/Passive.dir/all] Error 2
make: *** [all] Error 2
Many thanks for all your help. (it has been awesome)