- Code: Select all
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/abassign/fgfs/build/flightgear/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1e726/fast"
/usr/bin/make -f CMakeFiles/cmTC_1e726.dir/build.make CMakeFiles/cmTC_1e726.dir/build
make[1]: ingresso nella directory "/home/abassign/fgfs/build/flightgear/CMakeFiles/CMakeTmp"
Building C object CMakeFiles/cmTC_1e726.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_1e726.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_1e726
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1e726.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_1e726.dir/CheckFunctionExists.c.o -o cmTC_1e726 -rdynamic -lpthreads
/usr/bin/ld: impossibile trovare -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_1e726.dir/build.make:97: set di istruzioni per l'obiettivo "cmTC_1e726" non riuscito
make[1]: *** [cmTC_1e726] Errore 1
make[1]: uscita dalla directory "/home/abassign/fgfs/build/flightgear/CMakeFiles/CMakeTmp"
Makefile:126: set di istruzioni per l'obiettivo "cmTC_1e726/fast" non riuscito
make: *** [cmTC_1e726/fast] Errore 2
I check "pthread*"
- Code: Select all
find /lib -name "*pthread*"
/lib/i386-linux-gnu/libpthread-2.23.so
/lib/i386-linux-gnu/libpthread.so.0
/lib/x86_64-linux-gnu/libpthread-2.23.so
/lib/x86_64-linux-gnu/libpthread.so.0
and:
- Code: Select all
nm /lib/x86_64-linux-gnu/libpthread.so.0 | grep "pthread_create"
0000000000007990 t __pthread_create_2_1
0000000000007990 T pthread_create@@GLIBC_2.2.5
I use the script:
download_and_compile.sh version: "2.34"
On Mint 18.1
A month ago I compiled all the program and everything went well.