I am trying to compile LibreCAD3 on my debian jessie PC. But I failed with these output in CMakeErrors.log file:
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/lottefang/Documents/Builds/librecad3/LibreCAD_3/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_fab83/fast
/usr/bin/make -f CMakeFiles/cmTC_fab83.dir/build.make CMakeFiles/cmTC_fab83.dir/build
make: Entering directory '/home/lottefang/Documents/Builds/librecad3/LibreCAD_3/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fab83.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_fab83.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.14/Modules/CheckFunctionExists.c
Linking C executable cmTC_fab83
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fab83.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_fab83.dir/CheckFunctionExists.c.o -o cmTC_fab83 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_fab83.dir/build.make:86: recipe for target 'cmTC_fab83' failed
make: *** [cmTC_fab83] Error 1
make: Leaving directory '/home/lottefang/Documents/Builds/librecad3/LibreCAD_3/build/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_fab83/fast' failed
make: *** [cmTC_fab83/fast] Error 2
It is the same thing here https://github.com/LibreCAD/LibreCAD_3/issues/192. I alse installed all those dependencies needed by LibreCAD3. and I tried the way this link told me but still doesn't work for me . I don't know how to solve this problem, Could any one please tell me how to fix this ?