URL: https://ilcsoft.desy.de/portal/e279/e132162/index_eng.html

ILC SOFT

Up ILC Soft General Documentation cmake_documentation  · 

Using CMake to build iLCSoft packages

QUICK STEPS TO BUILD AN ILCSOFT PACKAGE USING AN AFS REFERENCE INSTALLATION

This are the usual steps needed to build an iLCSoft package using cmake.

To follow this steps you need an SL4, SL5 or compatible machine and access to /afs/desy.de/project/ilcsoft.
If that is not the case, it is possible to install an iLCSoft reference installation locally on your machine or on your site using with the ilcinstall tool available here.


Example for building example "mymarlin" in Marlin.


1. source the iLCSoft initialization script from a given version appropriate for your machine.
(To find out more details about your machine use the tools lsb_release -a or uname -a and gcc -dumpversion)

    source /afs/desy.de/project/ilcsoft/sw/x86_64_gcc41_sl5/v01-11/init_ilcsoft.sh   # v01-11 for SL5 64bit or compatible
    source /afs/desy.de/project/ilcsoft/sw/i386_gcc41_sl5/v01-11/init_ilcsoft.sh         # v01-11 for SL5 32bit or compatible
    source /afs/desy.de/project/ilcsoft/sw/i386_gcc34_sl4/v01-11/init_ilcsoft.sh         # v01-11 for SL4 32bit or compatible


2. download mymarlin example from the Marlin version included in your iLCSoft installation:

    ls $ILCSOFT/Marlin # find out Marlin version
    svn co https://svnsrv.desy.de/public/marlin/Marlin/tags/[Marlin_version]/examples/mymarlin



3. configure, build and install plugin:

    cd mymarlin
    mkdir build
    cd build
    cmake -C $ILCSOFT/ILCSoft.cmake ..
    make install



4. quick test to check if the plugin library was build correctly:

    ls $PWD/lib/libmymarlin.so
    export MARLIN_DLL=$PWD/lib/libmymarlin.so
    Marlin -h # should display: Loading shared library : … (libmymarlin.so)
    Marlin -x > mysteer.xml
    grep MyProcessor mysteer.xml # should not give empty output


© 2024 Deutsches Elektronen-Synchrotron DESY