Installation of an ILCSOFT release on MacOS X


Trying to build ilcsoft on MacOS X 10.10 (Yosemite)

  • You should turn on c++11 otherwise the the CMake logic in PandoraPFANew will fail. Otherwise you need a fix in the PandoraPFANew module.

  • Assume to be building locally under:


We shall set this as our ilcsoft_install_prefix (see later). In here we will checkout ilcinstall which will install the base directly under /Users/clicdp/ilcsoft .

Dependencies like Geant4 will be located in places like:


Then, the release will be installed in its own version directory, for example:


  • First of all, check out ilcinstall from:

  • Will not try to build Mokka or slic (LCDD, GDML, etc) therefore will not try to install MySQL or CondDB. UPDATE: If one does not want to build MySQL, they would have to also drop LCCD, MarlinTPC and possibly others. Further, one would have to set MARLIN_LCCD=OFF in the CMake config (via the Marlin installation module). Therefore, we went back and installed MySQL using homebrew which was not so bad.


  • Homebrew: used to install wget, boost, Doxygen, CMake (this was problematic in building from scratch on 10.10 for version referenced in the config. Used brew install cmake28 which installs a mildly more recent version) and others (mysql, latex, ...)

  • Qt4 framework from . Use 4 to avoid issues, though Geant4 10 should support Qt5. However, to use Qt5, I think we need to move to a more recent version of CMake (it doesn't have a FindQt5.cmake config file). Note that for some reason, qmake returns the wrong include file, or at least CMake sets up the Qt include path to /usr/include/QtCore . Therefore a workaround is to do: sudo ln -s /Library/Frameworks/QtCore.framework/Headers/ /usr/include/QtCore

  • CERNLIB: copy cernlib binaries from /afs/

  • Doxygen: brew install doxygen

  • Java and Java SDK: used v 1.8 from oracle. For the time being, it seems like the configuration can't pick up the header files automatically, so you'll have to set it manually in release-ilcsoft.cfg (see below).

  • x11 (XQuartz)

  • mysql: brew install mysql

  • latex: There has to be a better way to do this, but I tried with homebrew/cask
    • brew install Caskroom/cask/mactex
    • brew cask install mactex

Changes to configuration:

  • in release-base.cfg: comment out installation of Qt and CMake. Also, point to the qmake executable:


  • in release-ilcsoft.cfg:

    • Comment out use of CMake (will be picked up from system, since installed by brew)
    • Comment out linking to Qt, CondDBMySQL
    • Comment out linking to HepPDT, GDML, LCDD, SLIC, SlicPandora
    • Comment out installation of Mokka and configuration of Mokka installation module
    • Manually define a variable for Java_path and fill it appropriately. In my case, I had to add the following around line 303 (just before the java check):


    • Fortran should not be needed. Set fortran_lib_path="" in and in release-ilcsoft.cfg do:

    • Try with setting c++11 on just for PandoraPFANew and MarlinPandora:
      • ilcsoft.module("PandoraPFANew").envcmake["CMAKE_CXX_FLAGS"]='-std=c++11 -Wall'
      • ilcsoft.module("MarlinPandora").envcmake["CMAKE_CXX_FLAGS"]='-std=c++11 -Wall'

---+++ Changes to code:

  • Needed to modify PandoraAnalysis to add #include <unistd.h> for all followinf files in /Users/clicdp/ilcsoft/v01-17-07-pre06/PandoraAnalysis/v01-00-01/calibration/

probably we will have to commit changes to the packages to handle this - maybe a preprocessor directive to make the change unique to mac.


Having fulfilled the above requirements and applied the suggested changes, you can proceed with the installation of the base first and the ilcsoft release later.

To install the base, it is advised not to do it under the ilcsoft release tag, but rather on the ilcsoft top area. To do that, edit and set:

append_version_to_install_prefix = False

Then, first check the configuration by doing:

./ilcsoft-install releases/v01-17-07/release-base.cfg

If all is OK, proceed with the installation:

./ilcsoft-install releases/v01-17-07/release-base.cfg -i

Once this is done, change again to append the release version to the top directory:

append_version_to_install_prefix = True

Then, first check the configuration by doing:

./ilcsoft-install releases/v01-17-07/release-ilcsoft.cfg

and finally launch the installation by doing:

./ilcsoft-install releases/v01-17-07/release-ilcsoft.cfg -i

You may have some warnings from the documentation build or even be asked for input when some command is not defined (press enter to continue or q to exit latex). Either handle it manually, or turn the documentation building off.

Problems/Things to improve

  • Make CMake configuration more robust in applying c++11 for modern compilers that support it. Advice to actually use C++11 throughout the installation.
  • The documentation does not appear to build properly. Probably a more standard latex installation is needed, but one should consider turning the documentation building off.

-- NikiforosNikiforou - 2015-06-25

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 2015-06-25 - NikiforosNikiforou
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CLIC All webs login

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