@Okliis wrote:
Hi all,
I’m having trouble building the libfreenect driver needed to operate with ofxNI2.
When I go to build in terminal, it says configuring incomplete, errors occurred.Checking in CMakeError.log, it says:
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /Users/mike/CPP/libfreenect-master/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake cmTC_92301/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_92301.dir/build.make CMakeFiles/cmTC_92301.dir/build
gmake[1]: Entering directory ‘/Users/mike/CPP/libfreenect-master/build/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_92301.dir/CheckFunctionExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -Wall -O2 -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_92301.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_92301
/usr/local/Cellar/cmake/3.16.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_92301.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -Wall -O2 -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_92301.dir/CheckFunctionExists.c.o -o cmTC_92301 -lpthreads
ld: library not found for -lpthreads
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_92301.dir/build.make:87: cmTC_92301] Error 1
gmake[1]: Leaving directory ‘/Users/mike/CPP/libfreenect-master/build/CMakeFiles/CMakeTmp’
gmake: *** [Makefile:121: cmTC_92301/fast] Error 2Can someone shed some light as to whats going on? Am I building in the wrong directory?
I’m on OSX 10.13.6, using of 0.10.1.Let me know if you want any other info/screenshots, I will gladly oblige!
Thanks in advance,
Mike
Posts: 1
Participants: 1