Hello rtrlib team,
I've a problem during compilation. I hope you could help me with this
issue.
I'm working with :
CentOS 7 64 bits that is up to date with epel-repository activated
Dependencies installed :
cmake : Version 2.8.11 ; Revision 5.el7
cmake3 : Version 3.5.2 ; Revision 2.el7
libssh2 : Version 1.4.3 ; Revision 10.el7_2.1
libssh2-devel : Version 1.4.3 ; Revision 10.el7_2.1
gcc : Version 4.8.5 ; Revision 4.el7
gcc-c++ : Version 4.8.5 ; Revision : 4.el7
glib : Version 1.2.10 ; Revision : 41.el7
And pthread is there and working :
[root@ripe rtrlib-0.3.6]# cat test.c
#include <pthread.h>
int main() {
}
[root@ripe rtrlib-0.3.6]# gcc test.c
[root@ripe rtrlib-0.3.6]# ls /usr/include/pthread.h
/usr/include/pthread.h
The errors I get with cmake :
[root@ripe rtrlib-0.3.6]# cmake -D CMAKE_BUILD_TYPE=Release .
CMake Error at
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108
(message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_FAILU RE_MESSAGE)
/usr/share/cmake/Modules/FindThreads.cmake:166
(FIND_PACKAGE_HANDLE_STANDARD_A RGS)
CMakeLists.txt:14 (find_package)
-- Configuring incomplete, errors occurred!
The errors I get with cmake3 :
[root@ripe rtrlib-0.3.6]# cmake3 -D CMAKE_BUILD_TYPE=Release .
CMake Error at
/usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:148
(message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAIL URE_MESSAGE)
/usr/share/cmake3/Modules/FindThreads.cmake:223
(FIND_PACKAGE_HANDLE_STANDARD_ ARGS)
CMakeLists.txt:14 (find_package)
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/rtrlib-0.3.6/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/rtrlib-0.3.6/CMakeFiles/CMakeError.log".
I join with this mail the two log files mentioned just before.
Did i miss something ? Any suggestion to solve the problem I'm facing ?
If you need more informations don't hesitate to ask, thanks :)