New question #701378 on Yade: https://answers.launchpad.net/yade/+question/701378
I plan to install Yade in centos7 system. But while compiling it outputs a CmakeError file. Can you guys help analyze what's the problem? #######CmakeError.log####### Determining if the pthread_create exist failed with the following output: Change Dir: /opt/yade/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0316a/fast" /usr/bin/gmake -f CMakeFiles/cmTC_0316a.dir/build.make CMakeFiles/cmTC_0316a.dir/build gmake[1]: Entering directory `/opt/yade/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0316a.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTC_0316a.dir/CheckSymbolExists.c.o -c /opt/yade/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_0316a /opt/cmake3.9/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0316a.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTC_0316a.dir/CheckSymbolExists.c.o -o cmTC_0316a CMakeFiles/cmTC_0316a.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_0316a] Error 1 gmake[1]: Leaving directory `/opt/yade/build/CMakeFiles/CMakeTmp' gmake: *** [cmTC_0316a/fast] Error 2 File /opt/yade/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: /opt/yade/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_10efa/fast" /usr/bin/gmake -f CMakeFiles/cmTC_10efa.dir/build.make CMakeFiles/cmTC_10efa.dir/build gmake[1]: Entering directory `/opt/yade/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_10efa.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_10efa.dir/CheckFunctionExists.c.o -c /opt/cmake3.9/share/cmake-3.9/Modules/CheckFunctionExists.c Linking C executable cmTC_10efa /opt/cmake3.9/bin/cmake -E cmake_link_script CMakeFiles/cmTC_10efa.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_10efa.dir/CheckFunctionExists.c.o -o cmTC_10efa -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_10efa] Error 1 gmake[1]: Leaving directory `/opt/yade/build/CMakeFiles/CMakeTmp' gmake: *** [cmTC_10efa/fast] Error 2 Determining if files glib/gregex.h exist failed with the following output: Change Dir: /opt/yade/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_76b08/fast" /usr/bin/gmake -f CMakeFiles/cmTC_76b08.dir/build.make CMakeFiles/cmTC_76b08.dir/build gmake[1]: Entering directory `/opt/yade/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_76b08.dir/CheckIncludeFiles.c.o /usr/bin/cc -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -o CMakeFiles/cmTC_76b08.dir/CheckIncludeFiles.c.o -c /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c In file included from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:0: /usr/include/glib-2.0/glib/gregex.h:25:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gregex.h:28:0, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gerror.h:23:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gerror.h:28:0, from /usr/include/glib-2.0/glib/gregex.h:28, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gquark.h:29:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gquark.h:32:0, from /usr/include/glib-2.0/glib/gerror.h:28, from /usr/include/glib-2.0/glib/gregex.h:28, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gtypes.h:29:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0, from /usr/include/glib-2.0/glib/gtypes.h:32, from /usr/include/glib-2.0/glib/gquark.h:32, from /usr/include/glib-2.0/glib/gerror.h:28, from /usr/include/glib-2.0/glib/gregex.h:28, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gmacros.h:33:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gtypes.h:34:0, from /usr/include/glib-2.0/glib/gquark.h:32, from /usr/include/glib-2.0/glib/gerror.h:28, from /usr/include/glib-2.0/glib/gregex.h:28, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gversionmacros.h:29:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gregex.h:29:0, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gstring.h:29:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gstring.h:33:0, from /usr/include/glib-2.0/glib/gregex.h:29, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gunicode.h:24:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gstring.h:34:0, from /usr/include/glib-2.0/glib/gregex.h:29, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gbytes.h:26:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gbytes.h:30:0, from /usr/include/glib-2.0/glib/gstring.h:34, from /usr/include/glib-2.0/glib/gregex.h:29, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/garray.h:29:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ In file included from /usr/include/glib-2.0/glib/gstring.h:35:0, from /usr/include/glib-2.0/glib/gregex.h:29, from /opt/yade/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2: /usr/include/glib-2.0/glib/gutils.h:29:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ gmake[1]: *** [CMakeFiles/cmTC_76b08.dir/CheckIncludeFiles.c.o] Error 1 gmake[1]: Leaving directory `/opt/yade/build/CMakeFiles/CMakeTmp' gmake: *** [cmTC_76b08/fast] Error 2 Source: /* */ #include <glib/gregex.h> int main(void){return 0;} ######################## Please let me know if other documents are required so hard :( :( -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp