Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name Last commit Last update
..
GeoModelWrite
src
CMakeLists.txt
README.md

Building the GeoModelIO::GeoModelWrite library

Dependencies

Install Qt5

See: https://doc.qt.io/qt-5/gettingstarted.html

On macOS, you can use brew:

brew install qt5

After the installation, pay attention to add the Qt folder to your PATH (replace with your Qt installation folder and 'clang_64' with ):

PATHQT=/<path-to-qt>/Qt5.12.0/5.12.0/clang_64;
export PATH=$PATHQT/bin:$PATH;

On some platforms, you might need to explicitly set the QMAKESPEC and the QT variables:

export QMAKESPEC=$PATHQT/mkspecs/macx-clang;
export QTDIR=$PATHQT;
export QTINC=$PATHQT/include;
export QTLIB=$PATHQT/lib

Build GeoModelIO dependencies

Build GeoModelKernel

NOTE! Here, we are currently using a development branch.

git clone --recurse-submodules ssh://git@gitlab.cern.ch:7999/GeoModelDev/GeoModelKernel.git
cd GeoModelKernel
git checkout master-geomodel-standalone-cmake
cd ../
mkdir build_gmk
cd build_gmk
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RelWithDebInfo ../GeoModelKernel
make -j 4
make install

Build GeoModelIO::GeoModelDBManager

git clone ssh://git@gitlab.cern.ch:7999/GeoModelDev/GeoModelIO/GeoModelDBManager.git
mkdir build_gmdb
cd build_gmdb
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RelWithDebInfo ../GeoModelDBManager/
make -j 4
make install

Build GeoModelIO::TFPersistification

git clone
mkdir TFPersistification_build
cd TFPersistification_build
cmake ../TFPersistification -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=../install
make -j10
make install

Build GeoModelIO::GeoModelWrite

git clone ssh://git@gitlab.cern.ch:7999/GeoModelDev/GeoModelIO/GeoModelWrite.git
mkdir build_gmwrite
cd build_gmwrite
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RelWithDebInfo ../GeoModelWrite
make -j 4
make install