facebook / mvfst

An implementation of the QUIC transport protocol.
MIT License
1.5k stars 242 forks source link

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

Open HuaMeng15 opened 2 weeks ago

HuaMeng15 commented 2 weeks ago

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 commented 2 weeks ago

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!