我想在CLion
中编译节点,所以我通过gyp创建了一个CMakeLists.txt
文件,但是发生了这个错误:
ld: framework not found -lCoreFoundation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [node] Error 1
make[2]: *** [CMakeFiles/node.dir/all] Error 2
make[1]: *** [CMakeFiles/node.dir/rule] Error 2
make: *** [node] Error 2
CMakeLists.txt
的部分:
target_link_libraries(node
-Wl
cares
v8_libplatform
openssl
zlib
http_parser
libuv
v8_base
v8_libbase
v8_snapshot
-Wl
-framework CoreFoundation
-lm
)