Here's how to set up Eclipse to work with a Marlin Processor, including debugger.
These instructions are for Eclipse Indigo. The instructions at https://twiki.cern.ch/twiki/bin/view/CLIC/LCSimEclipse may be a starting point to set up Eclipse, although they are for a different version.
Either
source /afs/cern.ch/eng/clic/software/x86_64-slc5-gcc41/ILCSOFT/v01-12/init_ilcsoft.sh
cmake -C $ILCSOFT/ILCSoft.cmake ..
or
When creating a new C++ Project from existing sources, the existing sources MAY NOT be in the eclipse Workdir. |
/afs/cern.ch/eng/clic/software/x86_64-slc5-gcc41/ILCSOFT/v01-12/LCFIVertex/v00-06/include
/afs/cern.ch/eng/clic/software/x86_64-slc5-gcc41/ILCSOFT/v01-12/ilcutil/v00-02/include
/afs/cern.ch/eng/clic/software/x86_64-slc5-gcc41/ILCSOFT/v01-12/lcio/v02-00/include
/afs/cern.ch/eng/clic/software/x86_64-slc5-gcc41/ROOT/v5-30-00/include
/afs/cern.ch/eng/clic/software/x86_64-slc5-gcc41/ILCSOFT/v01-12/MarlinUtil/v01-04/include
/afs/cern.ch/eng/clic/software/x86_64-slc5-gcc41/ILCSOFT/v01-12/Marlin/v01-01/include
#ifdef
. Define the symbol for this #ifdef
(e.g. USEROOT
) under Properties -> C++ General -> Paths and Symbols -> Symbols Tab -> GNU C++/build
within the curly braces after the name of your project.Now your done and should have code completion available.
You can add Run and Debug configurations by specifying the location of the Marlin
executable and adding the necessary MARLIN_DLL
and LD_LIBRARY_PATH
environment configurations. Details to be put here upon request.