[MacPorts] #71826: Fatal error: Root Libraries not found
MacPorts
noreply at macports.org
Tue Jan 14 13:10:26 UTC 2025
#71826: Fatal error: Root Libraries not found
-----------------------------+--------------------
Reporter: emmanuelseyi24 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: root6 |
-----------------------------+--------------------
Comment (by cjones051073):
SO running myself I see
{{{
arissa ~/cernbox/MacPorts/tmp/prg_2024/raw2root > make clean && make
proper && make
rm -f TakeAverageSignal.o index.o TakeAverageSignal.d index.d
TakeAverageSignal
rm -f TakeAverageSignal.o index.o TakeAverageSignal.d index.d
TakeAverageSignal
cd ../detector;make clean; cd ..
rm -f matrix.o fastdetector.o BaF2PSD6.o BaF2detector.o MWDdetector.o
PPACdetector.o PSA_Functions.o PSAdetector.o STEFFdetector.o detector.o
matrix.d fastdetector.d BaF2PSD6.d BaF2detector.d MWDdetector.d
PPACdetector.d PSA_Functions.d PSAdetector.d STEFFdetector.d detector.d
libdetector.a
g++ -MM -I. -I../detector -I../ntoflib/include -I/usr/include/xrootd
TakeAverageSignal.cc > TakeAverageSignal.d
TakeAverageSignal.cc:34:10: fatal error: 'TROOT.h' file not found
34 | #include <TROOT.h>
| ^~~~~~~~~
1 error generated.
make: *** [TakeAverageSignal.d] Error 1
}}}
So your issue is clear. The build command there is not using any of the
root-config configurations to find the build correctly
{{{
g++ -MM -I. -I../detector -I../ntoflib/include -I/usr/include/xrootd
TakeAverageSignal.cc
}}}
You need to fix your makefile to address this.
p.s. On mac, you also would be much better using clang as your compiler
instead of gcc...
--
Ticket URL: <https://trac.macports.org/ticket/71826#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list