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

Compile error on Mac14.6: 'numpy/arrayobject.h' file not found #360

Open
HuaMeng15 opened this issue Oct 28, 2024 · 1 comment
Open

Compile error on Mac14.6: 'numpy/arrayobject.h' file not found #360

HuaMeng15 opened this issue Oct 28, 2024 · 1 comment

Comments

@HuaMeng15
Copy link

Environment: MacOS 14.6, M3 Pro chip
Darwin menghuas-MacBook-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Fri Jul 5 17:55:37 PDT 2024; root:xnu-10063.141.1~2/RELEASE_ARM64_T6030 arm64

Get a compile error when running './getdeps.sh'
In file included from libs/python/src/numpy/ufunc.cpp:8:
./boost/python/numpy/internal.hpp:29:10: fatal error: 'numpy/arrayobject.h' file not found
29 | #include <numpy/arrayobject.h>
| ^~~~~~~~~~~~~~~~~~~~~

This is the full output log file:
output.log
Thanks a lot!

@HuaMeng15
Copy link
Author

I solved this problem by adding the numpy/core/include file into C_INCLUDE_PATH and CPLUS_INCLUDE_PATH, but met another compile error when building the libevent.

FAILED: lib/libevent_openssl-2.1.7.dylib
Undefined symbols for architecture x86_64:
"_BIO_clear_flags", referenced from:
_bio_bufferevent_write in bufferevent_openssl.c.o
_bio_bufferevent_read in bufferevent_openssl.c.o
ld: symbol(s) not found for architecture x86_64
cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is the full output log file:
libevent_error.log
Thanks a lot!

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

1 participant