各位大佬,请教个问题 我的mac os 是10.15.1 Xcode版本是11.2.1 编译过程中一些c的头文件找不着 导致编译失败 怎么解决?
所需要下面的环境:
- SWIG
- Python
- CMake
- GCC/Clang
- zlib
也都有
下面是一些日志:
编译过程
– The C compiler identification is AppleClang 11.0.0.11000033
– The CXX compiler identification is AppleClang 11.0.0.11000033
– The ASM compiler identification is Clang
– Looking for malloc.h
– Looking for malloc.h - not found
– Looking for malloc/malloc.h
– Looking for malloc/malloc.h - found
– Looking for valgrind/valgrind.h
– Looking for valgrind/valgrind.h - not found
CMakeError.log里面显示
fatal error: ‘link.h’ file not found
#include <link.h>
^~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.