Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_aed89/fast && /usr/bin/make -f CMakeFiles/cmTC_aed89.dir/build.make CMakeFiles/cmTC_aed89.dir/build make[1]: Entering directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_aed89.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -fPIC -o CMakeFiles/cmTC_aed89.dir/src.c.o -c /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_aed89 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_aed89.dir/link.txt --verbose=1 /usr/bin/cc -fPIC CMakeFiles/cmTC_aed89.dir/src.c.o -o cmTC_aed89 CMakeFiles/cmTC_aed89.dir/src.c.o: In function `main': src.c:(.text+0x48): undefined reference to `pthread_create' src.c:(.text+0x50): undefined reference to `pthread_detach' src.c:(.text+0x58): undefined reference to `pthread_cancel' src.c:(.text+0x64): undefined reference to `pthread_join' src.c:(.text+0x74): undefined reference to `pthread_atfork' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_aed89.dir/build.make:98: recipe for target 'cmTC_aed89' failed make[1]: *** [cmTC_aed89] Error 1 make[1]: Leaving directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp' Makefile:127: recipe for target 'cmTC_aed89/fast' failed make: *** [cmTC_aed89/fast] Error 2 Source file was: #include static void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_0762a/fast && /usr/bin/make -f CMakeFiles/cmTC_0762a.dir/build.make CMakeFiles/cmTC_0762a.dir/build make[1]: Entering directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0762a.dir/CheckFunctionExists.c.o /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_0762a.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.22/Modules/CheckFunctionExists.c Linking C executable cmTC_0762a /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0762a.dir/link.txt --verbose=1 /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_0762a.dir/CheckFunctionExists.c.o -o cmTC_0762a -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_0762a.dir/build.make:98: recipe for target 'cmTC_0762a' failed make[1]: *** [cmTC_0762a] Error 1 make[1]: Leaving directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp' Makefile:127: recipe for target 'cmTC_0762a/fast' failed make: *** [cmTC_0762a/fast] Error 2 Performing C++ SOURCE FILE Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION failed with the following output: Change Dir: /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_71c4d/fast && /usr/bin/make -f CMakeFiles/cmTC_71c4d.dir/build.make CMakeFiles/cmTC_71c4d.dir/build make[1]: Entering directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_71c4d.dir/src.cxx.o /usr/bin/c++ -DHAVE_MYSQL_OPT_EMBEDDED_CONNECTION -DHAVE_OPENCV -DHAVE_FFMPEG -o CMakeFiles/cmTC_71c4d.dir/src.cxx.o -c /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp/src.cxx /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp/src.cxx:1:10: fatal error: mysql.h: No such file or directory #include ^~~~~~~~~ compilation terminated. CMakeFiles/cmTC_71c4d.dir/build.make:77: recipe for target 'CMakeFiles/cmTC_71c4d.dir/src.cxx.o' failed make[1]: *** [CMakeFiles/cmTC_71c4d.dir/src.cxx.o] Error 1 make[1]: Leaving directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp' Makefile:127: recipe for target 'cmTC_71c4d/fast' failed make: *** [cmTC_71c4d/fast] Error 2 Source file was: #include int main() { int i = MYSQL_OPT_USE_EMBEDDED_CONNECTION; }