PHCpack
PHCpack copied to clipboard
Error: "ld: framework not found CoreFoundation" in make phcpy2c3.so
Hi, I am having this error message when I tried make phcpy2c3.so
on my mac machine ( I got it installed successfully on my Ubuntu system). I looked into the makefile_mac
and changed some path like
$(gpp) -Dcompilewgpp=1 -c -O3 \ -I/opt/miniconda3/include -I$(PYTHON38) $(PHCLib)/phcpy2c3.c
and
g++ -dynamiclib -undefined dynamic_lookup phcpy2c3.o \ -L/opt/miniconda3/lib \ -arch x86_64 -L/opt/miniconda3/lib -arch x86_64 \ -L/opt/miniconda3/lib/python3.8/site-packages \ phcpy2c3.a $(QD_LIB)/libqd.a $(ADALIB)/libgnat.a \ $(ADALIB)/libgnarl.a -lm -Wl,-no_compact_unwind \ -L/opt/miniconda3/lib/python3.8/config-3.8-darwin \ -ldl -framework CoreFoundation \ -o ../Python/PHCpy3/phcpy/phcpy2c3.so
as I don't have mininconda3 on my system. Still, I got the same error message. Could you give me some suggestions?
Thanks!
Great that you got phcpy on your Ubuntu system.
On mac os x, the phcpy for python2 is installed without miniconda. My suggestion would be to try to adapt the instructions to make phcpy2c2.so (the shared object for python2) so it works for python3 as well.