Skip to content

Commit eb4ea6b

Browse files
committed
Fix undefined symbols on macOS ARM
1 parent cd36608 commit eb4ea6b

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

Detectors/TPC/reconstruction/macro/createTPCSpaceChargeCorrection.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "TLatex.h"
3535

3636
#include "TPCSpaceCharge/SpaceCharge.h"
37+
R__LOAD_LIBRARY(libO2TPCSpaceChargeIO)
3738

3839
#include "CommonConstants/MathConstants.h"
3940
#include "CommonUtils/TreeStreamRedirector.h"

Detectors/TPC/spacecharge/macro/calculateDistortionsCorrections.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
// g++ -o spacecharge ~/alice/O2/Detectors/TPC/spacecharge/macro/calculateDistortionsCorrections.C -I ~/alice/sw/osx_x86-64/FairLogger/latest/include -L ~/alice/sw/osx_x86-64/FairLogger/latest/lib -I$O2_ROOT/include -L$O2_ROOT/lib -lO2TPCSpacecharge -lO2CommonUtils -std=c++17 -I$ROOTSYS/include -L$ROOTSYS/lib -lCore -L$VC_ROOT/lib -lVc -I$VC_ROOT/include -Xpreprocessor -fopenmp -I/usr/local/include -L/usr/local/lib -lomp -O3 -ffast-math -lFairLogger -lRIO
1313
#include "TPCSpaceCharge/SpaceCharge.h"
14+
R__LOAD_LIBRARY(libO2TPCSpaceChargeIO)
1415
#include "TPCBase/Mapper.h"
1516
#include <iostream>
1617
#include <chrono>

Detectors/TPC/spacecharge/macro/createSCHistosFromHits.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ g++ -o createSCHistosFromHits createSCHistosFromHits.C -I ~/alice/sw/osx_x86-64/
118118
#include "TPCSimulation/SAMPAProcessing.h"
119119
#include "TPCSimulation/Point.h"
120120
#include "TPCSpaceCharge/SpaceCharge.h"
121+
R__LOAD_LIBRARY(libO2TPCSpaceChargeIO)
121122
#include "TPCSpaceCharge/PoissonSolverHelpers.h"
122123
#include "DataFormatsTPC/Defs.h"
123124
#include "TPCSpaceCharge/SpaceChargeHelpers.h"

tests/test-root-macro.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ echo ${INCPATH} | tr ":" "\n"
3333
echo "LD_LIBRARY_PATH to be used:"
3434
echo ${LIBPATH} | tr ":" "\n"
3535

36-
env ROOT_INCLUDE_PATH=${INCPATH} LD_LIBRARY_PATH=${LIBPATH} @ROOT_root_CMD@ -n -b -l -q -e "${CMD}"
36+
env ROOT_INCLUDE_PATH=${INCPATH} LD_LIBRARY_PATH=${LIBPATH} DYLD_FALLBACK_LIBRARY_PATH=${LIBPATH} @ROOT_root_CMD@ -n -b -l -q -e "${CMD}"
3737

3838
RV=$?
3939

0 commit comments

Comments
 (0)