How to install and compile CALICE packages

Script for installation and compilation

For CALICE software versions v04-08 and above (including trunk), this script knows about package versions to use for a given CALICE software version, automatically writes the necessary calice.cmake file, as well as installing and compiling the code.

If you prefer to install "by hand", follow these instructions to download and compile the CALICE software:

How to install

All CALICE software packages are stored on SVN at DESY. Here you can browse all repositories. In any case, you need to download the calice_cmake, calice_userlib and calice_reco packages.

mkdir calice_cmake
cd calice_cmake
svn co
cd ..

mkdir calice_userlib
cd calice_userlib
svn co
cd ..

mkdir calice_reco
cd calice_reco
svn co
cd ..

(substitute "v0x-0y" with the package versions you want, or substitute "/tags/v0x-0y" with "trunk" to get the latest (and unstable) version.)

How to compile

We use the cmake tool for creating platform independent makefiles. Therefore, in order to compile, you need the calice.cmake configuration file, which can be found in the calice_cmake package. You should edit the calice.cmake file to include the correct paths for calice packages on your system.

Please note that there are 2 ways of installations with cmake: inside the package, and outside. The latter is preferred, since in case something goes wrong, you can just delete the installation directory, and start over again. So we create an installation directory (you can of course give it a clever name), and a directory where to build all the packages:

mkdir myInstall
mkdir build
cd build

Here is an example on how to compile the calice_userlib package. Any other CALICE package can be compiled in the same way. Most calice packages depend on packages in ILCSoft, so you can use the ILCSoft.cmake supplied with the ILCSoft version you are using to locate the necessary packages:

mkdir build-calice-userlib
cd build-calice-userlib
cmake -C <path-to>/ILCSoft.cmake -C <path to>/calice.cmake <path to>/calice_userlib

(n.b. for calice soft versions v04-07 and older, use "cmake -C /calice.cmake /calice_userlib" with this calice.cmake file, adapted to your installation)

You'll get some messages on the screen. If everything worked, there will be no error messages, and a Makefile present in the directory, which was created by cmake. So you can proceed with the compilation and installation:

make install

If you have problems, don't hesitate to contact me, I'll be happy to help.

updated: -- DanielJeans - 2016-10-17

-- AngelaLucaciTimoce - 28-Apr-2010

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcmake calice.cmake r3 r2 r1 manage 3.4 K 2010-04-21 - 11:44 AngelaLucaciTimoceExternal cmake configuration file for CALICE packages
Unix shell scriptsh r1 manage 6.6 K 2014-08-07 - 10:03 DanielJeans calice software installation script (v04-08-01, v04-08, trunk)
Unix shell scriptsh r1 manage 7.9 K 2015-12-08 - 04:04 DanielJeans CALICE software installation script (with sw v4-8-2)
Unix shell scriptsh r1 manage 8.6 K 2016-10-17 - 09:53 DanielJeans calice software installation script (v04-08-03)
Unix shell scriptsh r1 manage 9.1 K 2017-12-18 - 06:23 DanielJeansExternal1 CALICE software installation script
Unix shell scriptsh r5 r4 r3 r2 r1 manage 5.2 K 2014-01-17 - 02:51 DanielJeans CALICE sftware installation script
Unknown file formatcsh calsoft_trunk.csh r1 manage 2.1 K 2010-04-28 - 10:58 AngelaLucaciTimoceExternal script to install and compile CALICE packages (trunk)
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r12 - 2017-12-18 - DanielJeansExternal1
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CALICE All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback