From d071487081f54e372de47fd1cc6cf2b5d8116203 Mon Sep 17 00:00:00 2001 From: Riccardo Maria Bianchi <riccardo.maria.bianchi@cern.ch> Date: Fri, 16 Apr 2021 14:15:59 +0000 Subject: [PATCH] Add the extra step to setup the 'rpath' for GMXPlugin --- GeoModelXML/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/GeoModelXML/README.md b/GeoModelXML/README.md index c7196ac91..d29809099 100644 --- a/GeoModelXML/README.md +++ b/GeoModelXML/README.md @@ -13,15 +13,24 @@ https://twiki.atlas-canada.ca/pub/AtlasCanada/ITk/gmx2geo.pdf ## How to build it If `GeoModel` is installed: + ``` +# Clone git clone ssh://git@gitlab.cern.ch:7999/atlas/geomodelatlas/GeoModelATLAS.git + +# Configure, build, install locally: mkdir build_geomodelatlas; cd build_geomodelatlas cmake -DCMAKE_INSTALL_PREFIX=../install/ -DGEOMODELATLAS_BUILD_GEOMODELXML=1 ../GeoModelATLAS make make install + +# EXTRA STEP: Add a rpath, only needed when using a local 'install' folder +install_name_tool -add_rpath ../install/lib ../install/lib/libGMXPlugin.dylib + cd .. ``` + ## How to run it Running the GMXPlugin executes the xerces parser to parse the xml file. The expression evaluator only works if the system language is set to USEnglish, thus do: @@ -33,7 +42,7 @@ From e.g. your home directory ``` cd install -export GMX_FILES="../GeoModelATLAS/GeoModelXml/data/example1.xml" +export GMX_FILES="../GeoModelATLAS/GeoModelXML/data/example1.xml" bin/gmex lib/libGMXPlugin.1.0.0.dylib (or .so on Linux) ``` -- GitLab