CMAKE_HAVE_LIBC_PTHREAD failed
Hello there,
I was trying to compile my package and generate a debian package according to (this post) [https://answers.ros.org/question/1738...]
I have got cmake error thay says CMAKE_HAVE_LIBC_PTHREAD failed
./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:11: undefined reference to `pthread_create'
/usr/bin/ld: ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:12: undefined reference to `pthread_detach'
/usr/bin/ld: ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:13: undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
The libthread (v2.31) is installed on my machine and I can compile my package with catkin without any error. I found it is hard to track the source of error. If someone has any idea about it, I would really appreciate your help.