You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I add enable_language(C) to CMakeLists.txt to solve the problem as follow:
Build Directory : build
Source Directory: /root/libbf
-- Looking for include file pthread.h
CMake Error at /usr/share/cmake-2.8/Modules/CheckIncludeFiles.cmake:58 (try_compile):
Unknown extension ".c" for file
/root/libbf/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
try_compile() works only for enabled languages. Currently these are:
CXX
See project() command to enable other languages.
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindThreads.cmake:39 (CHECK_INCLUDE_FILES)
CMakeLists.txt:54 (find_package)
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
CMake Error at CMakeLists.txt:56 (message):
Could not find system threading libraries
-- Configuring incomplete, errors occurred!
See also "/root/libbf/build/CMakeFiles/CMakeOutput.log".
See also "/root/libbf/build/CMakeFiles/CMakeError.log".
Second, I run make after ./configure
Then make test, but the error comes up:
make[1]: Entering directory `/root/libbf/build'
Running tests...
Test project /root/libbf/build
Start 1: unit
1/1 Test #1: unit .............................***Failed 0.48 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.48 sec
The following tests FAILED:
1 - unit (Failed)
Errors while running CTest
make[1]: *** [test] Error 8
make[1]: Leaving directory `/root/libbf/build'
make: *** [test] Error 2
My enviroment: gcc version 4.9.2,cmake version 2.8.12.2 and ubuntu 14.04
How can I fix it?
Thank you!
The text was updated successfully, but these errors were encountered:
Apologies for the late reply. Good to know that adding C as language to the CMake setup gets you on step further. As mentioned in #12, I currently cannot investigate this further until I can make available free cycles in my spare time.
First, I add
enable_language(C)
to CMakeLists.txt to solve the problem as follow:Second, I run
make
after./configure
Then
make test
, but the error comes up:My enviroment: gcc version 4.9.2,cmake version 2.8.12.2 and ubuntu 14.04
How can I fix it?
Thank you!
The text was updated successfully, but these errors were encountered: