CMakeError.log 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /home/ipc2001/usbcam/build/CMakeFiles/CMakeTmp
  3. Run Build Command:"/usr/bin/make" "cmTC_a84a3/fast"
  4. /usr/bin/make -f CMakeFiles/cmTC_a84a3.dir/build.make CMakeFiles/cmTC_a84a3.dir/build
  5. make[1]: Entering directory '/home/ipc2001/usbcam/build/CMakeFiles/CMakeTmp'
  6. Building C object CMakeFiles/cmTC_a84a3.dir/CheckSymbolExists.c.o
  7. /usr/bin/cc -o CMakeFiles/cmTC_a84a3.dir/CheckSymbolExists.c.o -c /home/ipc2001/usbcam/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  8. Linking C executable cmTC_a84a3
  9. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a84a3.dir/link.txt --verbose=1
  10. /usr/bin/cc -rdynamic CMakeFiles/cmTC_a84a3.dir/CheckSymbolExists.c.o -o cmTC_a84a3
  11. CMakeFiles/cmTC_a84a3.dir/CheckSymbolExists.c.o: In function `main':
  12. CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
  13. collect2: error: ld returned 1 exit status
  14. CMakeFiles/cmTC_a84a3.dir/build.make:97: recipe for target 'cmTC_a84a3' failed
  15. make[1]: *** [cmTC_a84a3] Error 1
  16. make[1]: Leaving directory '/home/ipc2001/usbcam/build/CMakeFiles/CMakeTmp'
  17. Makefile:126: recipe for target 'cmTC_a84a3/fast' failed
  18. make: *** [cmTC_a84a3/fast] Error 2
  19. File /home/ipc2001/usbcam/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  20. /* */
  21. #include <pthread.h>
  22. int main(int argc, char** argv)
  23. {
  24. (void)argv;
  25. #ifndef pthread_create
  26. return ((int*)(&pthread_create))[argc];
  27. #else
  28. (void)argc;
  29. return 0;
  30. #endif
  31. }
  32. Determining if the function pthread_create exists in the pthreads failed with the following output:
  33. Change Dir: /home/ipc2001/usbcam/build/CMakeFiles/CMakeTmp
  34. Run Build Command:"/usr/bin/make" "cmTC_48be3/fast"
  35. /usr/bin/make -f CMakeFiles/cmTC_48be3.dir/build.make CMakeFiles/cmTC_48be3.dir/build
  36. make[1]: Entering directory '/home/ipc2001/usbcam/build/CMakeFiles/CMakeTmp'
  37. Building C object CMakeFiles/cmTC_48be3.dir/CheckFunctionExists.c.o
  38. /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_48be3.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
  39. Linking C executable cmTC_48be3
  40. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_48be3.dir/link.txt --verbose=1
  41. /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_48be3.dir/CheckFunctionExists.c.o -o cmTC_48be3 -lpthreads
  42. /usr/bin/ld: cannot find -lpthreads
  43. collect2: error: ld returned 1 exit status
  44. CMakeFiles/cmTC_48be3.dir/build.make:97: recipe for target 'cmTC_48be3' failed
  45. make[1]: *** [cmTC_48be3] Error 1
  46. make[1]: Leaving directory '/home/ipc2001/usbcam/build/CMakeFiles/CMakeTmp'
  47. Makefile:126: recipe for target 'cmTC_48be3/fast' failed
  48. make: *** [cmTC_48be3/fast] Error 2