Determining if the Q_WS_WIN exist failed with the following output: Change Dir: /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/ninja" "cmTC_bc88e" [1/2] Building C object CMakeFiles/cmTC_bc88e.dir/CheckSymbolExists.c.o FAILED: /usr/bin/x86_64-pc-linux-gnu-gcc -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe -I/usr/include/qt4 -o CMakeFiles/cmTC_bc88e.dir/CheckSymbolExists.c.o -c CheckSymbolExists.c CheckSymbolExists.c: In function ‘main’: CheckSymbolExists.c:8:19: error: ‘Q_WS_WIN’ undeclared (first use in this function) return ((int*)(&Q_WS_WIN))[argc]; ^ CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in ninja: build stopped: subcommand failed. File /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef Q_WS_WIN return ((int*)(&Q_WS_WIN))[argc]; #else (void)argc; return 0; #endif } Determining if the Q_WS_QWS exist failed with the following output: Change Dir: /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/ninja" "cmTC_69388" [1/2] Building C object CMakeFiles/cmTC_69388.dir/CheckSymbolExists.c.o FAILED: /usr/bin/x86_64-pc-linux-gnu-gcc -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe -I/usr/include/qt4 -o CMakeFiles/cmTC_69388.dir/CheckSymbolExists.c.o -c CheckSymbolExists.c CheckSymbolExists.c: In function ‘main’: CheckSymbolExists.c:8:19: error: ‘Q_WS_QWS’ undeclared (first use in this function) return ((int*)(&Q_WS_QWS))[argc]; ^ CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in ninja: build stopped: subcommand failed. File /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef Q_WS_QWS return ((int*)(&Q_WS_QWS))[argc]; #else (void)argc; return 0; #endif } Determining if the Q_WS_MAC exist failed with the following output: Change Dir: /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/ninja" "cmTC_00600" [1/2] Building C object CMakeFiles/cmTC_00600.dir/CheckSymbolExists.c.o FAILED: /usr/bin/x86_64-pc-linux-gnu-gcc -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe -I/usr/include/qt4 -o CMakeFiles/cmTC_00600.dir/CheckSymbolExists.c.o -c CheckSymbolExists.c CheckSymbolExists.c: In function ‘main’: CheckSymbolExists.c:8:19: error: ‘Q_WS_MAC’ undeclared (first use in this function) return ((int*)(&Q_WS_MAC))[argc]; ^ CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in ninja: build stopped: subcommand failed. File /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef Q_WS_MAC return ((int*)(&Q_WS_MAC))[argc]; #else (void)argc; return 0; #endif } Determining if the pthread_create exist failed with the following output: Change Dir: /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/ninja" "cmTC_148a0" [1/2] Building C object CMakeFiles/cmTC_148a0.dir/CheckSymbolExists.c.o [2/2] Linking C executable cmTC_148a0 FAILED: : && /usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed CMakeFiles/cmTC_148a0.dir/CheckSymbolExists.c.o -o cmTC_148a0 -rdynamic && : CMakeFiles/cmTC_148a0.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text.startup+0x6): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. File /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/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: /var/tmp/portage/media-video/kmplayer-0.11.3d-r3/work/kmplayer-0.11.3d_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/ninja" "cmTC_cab0f" [1/2] Building C object CMakeFiles/cmTC_cab0f.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_cab0f FAILED: : && /usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1 -Wl,--as-needed CMakeFiles/cmTC_cab0f.dir/CheckFunctionExists.c.o -o cmTC_cab0f -rdynamic -lpthreads && : /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.