Determining if the pthread_create exist failed with the following output: Change Dir: /home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec286618455/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec286618455.dir/build.make CMakeFiles/cmTryCompileExec286618455.dir/build make[1]: Entering directory '/home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec286618455.dir/CheckSymbolExists.c.o /usr/bin/cc -I/usr/include/libusb-1.0 -o CMakeFiles/cmTryCompileExec286618455.dir/CheckSymbolExists.c.o -c /home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec286618455 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec286618455.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTryCompileExec286618455.dir/CheckSymbolExists.c.o -o cmTryCompileExec286618455 -rdynamic -lusb-1.0 /usr/bin/ld: CMakeFiles/cmTryCompileExec286618455.dir/CheckSymbolExists.c.o: undefined reference to symbol 'pthread_create@@GLIBC_2.4' /usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status CMakeFiles/cmTryCompileExec286618455.dir/build.make:89: recipe for target 'cmTryCompileExec286618455' failed make[1]: *** [cmTryCompileExec286618455] Error 1 make[1]: Leaving directory '/home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp' Makefile:117: recipe for target 'cmTryCompileExec286618455/fast' failed make: *** [cmTryCompileExec286618455/fast] Error 2 File /home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef pthread_create return ((int*)(&pthread_create))[argc]; #else (void)argc; return 0; #endif } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec2608520401/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec2608520401.dir/build.make CMakeFiles/cmTryCompileExec2608520401.dir/build make[1]: Entering directory '/home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2608520401.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec2608520401.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.2/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2608520401 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2608520401.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec2608520401.dir/CheckFunctionExists.c.o -o cmTryCompileExec2608520401 -rdynamic -lpthreads -lusb-1.0 /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTryCompileExec2608520401.dir/build.make:89: recipe for target 'cmTryCompileExec2608520401' failed make[1]: *** [cmTryCompileExec2608520401] Error 1 make[1]: Leaving directory '/home/rob/indi-code/3rdparty/CMakeFiles/CMakeTmp' Makefile:117: recipe for target 'cmTryCompileExec2608520401/fast' failed make: *** [cmTryCompileExec2608520401/fast] Error 2