Determining if the pthread_create exist failed with the following output:
Change Dir: /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_0ef3b/fast"
/usr/bin/make -f CMakeFiles/cmTC_0ef3b.dir/build.make CMakeFiles/cmTC_0ef3b.dir/build
make[1]: Entering directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0ef3b.dir/CheckSymbolExists.c.o
/usr/bin/cc   -fPIC    -o CMakeFiles/cmTC_0ef3b.dir/CheckSymbolExists.c.o   -c /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_0ef3b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0ef3b.dir/link.txt --verbose=1
/usr/bin/cc -fPIC     CMakeFiles/cmTC_0ef3b.dir/CheckSymbolExists.c.o  -o cmTC_0ef3b 
CMakeFiles/cmTC_0ef3b.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x14): undefined reference to `pthread_create'
CheckSymbolExists.c:(.text+0x18): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_0ef3b.dir/build.make:97: recipe for target 'cmTC_0ef3b' failed
make[1]: *** [cmTC_0ef3b] Error 1
make[1]: Leaving directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_0ef3b/fast' failed
make: *** [cmTC_0ef3b/fast] Error 2

File /home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

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/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_2b14c/fast"
/usr/bin/make -f CMakeFiles/cmTC_2b14c.dir/build.make CMakeFiles/cmTC_2b14c.dir/build
make[1]: Entering directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2b14c.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_2b14c.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_2b14c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2b14c.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_2b14c.dir/CheckFunctionExists.c.o  -o cmTC_2b14c -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_2b14c.dir/build.make:97: recipe for target 'cmTC_2b14c' failed
make[1]: *** [cmTC_2b14c] Error 1
make[1]: Leaving directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_2b14c/fast' failed
make: *** [cmTC_2b14c/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:"/usr/bin/make" "cmTC_4b061/fast"
/usr/bin/make -f CMakeFiles/cmTC_4b061.dir/build.make CMakeFiles/cmTC_4b061.dir/build
make[1]: Entering directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_4b061.dir/src.cxx.o
/usr/bin/c++    -DHAVE_OPENCV -DHAVE_FFMPEG -DHAVE_MYSQL_OPT_EMBEDDED_CONNECTION   -o CMakeFiles/cmTC_4b061.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 <mysql.h>
          ^~~~~~~~~
compilation terminated.
CMakeFiles/cmTC_4b061.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_4b061.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_4b061.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/nvidia/work/MIVA/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_4b061/fast' failed
make: *** [cmTC_4b061/fast] Error 2

Source file was:
#include <mysql.h>
int main() { int i = MYSQL_OPT_USE_EMBEDDED_CONNECTION; }