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 https://svnsrv.desy.de/public/calice/calice_cmake/tags/v0x-0y
cd ..
mkdir calice_userlib
cd calice_userlib
svn co https://svnsrv.desy.de/public/calice/calice_userlib/tags/v0x-0y
cd ..
mkdir calice_reco
cd calice_reco
svn co https://svnsrv.desy.de/public/calice/calice_reco/tags/v0x-0y
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