使用Python wrapp安装libfreenect

2024-06-16 11:45:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用Python包装器安装libfreenect库。为此,我将遵循这些instructions。我得到以下错误:

Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /Users/myname/PycharmProjects/p_and_o_3/libfreenect/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_59724/fast" /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_59724.dir/build.make CMakeFiles/cmTC_59724.dir/build Building C object CMakeFiles/cmTC_59724.dir/CheckFunctionExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -Wall -O2 -DCHECK_FUNCTION_EXISTS=pthread_create -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_59724.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.10.3/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_59724 /usr/local/Cellar/cmake/3.10.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_59724.dir/link.txt --verbose=1 /Library/Developer/CommandLineTools/usr/bin/cc -Wall -O2 -DCHECK_FUNCTION_EXISTS=pthread_create -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_59724.dir/CheckFunctionExists.c.o -o cmTC_59724 -lpthreads ld: library not found for -lpthreads clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: * [cmTC_59724] Error 1 make: * [cmTC_59724/fast] Error 2

我的操作系统是MacOS Mojave 10.14.6,我不想在这个过程中使用brew


Tags: thebuildcmakedevelopermakebinusrcreate