Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "ld: framework not found CoreFoundation" in make phcpy2c3.so #48

Open
IsayamaYoomi opened this issue May 29, 2021 · 1 comment
Open

Comments

@IsayamaYoomi
Copy link

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!

@janverschelde
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants