CMake Error: As seguintes variáveis são usadas neste projeto

0

Tentando instalar este link

Preso no cmake ..

Obtendo o seguinte erro. Como resolvo isso?

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CM256CC_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/debian/sdrdaemon
   used as include directory in directory /home/debian/sdrdaemon
   used as include directory in directory /home/debian/sdrdaemon
   used as include directory in directory /home/debian/sdrdaemon
   used as include directory in directory /home/debian/sdrdaemon
LZ4_LIBRARIES (ADVANCED)
    linked by target "sdmnbase" in directory /home/debian/sdrdaemon

-- Configuring incomplete, errors occurred!
See also "/home/debian/sdrdaemon/build/CMakeFiles/CMakeOutput.log".
See also "/home/debian/sdrdaemon/build/CMakeFiles/CMakeError.log".
root@beaglebone:/home/debian/sdrdaemon/build# cmake ..

O arquivo CMakeError.Log é assim: > > >

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1808620581/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1808620581.dir/build.make CMakeFiles/cmTryCompileExec1808620581.dir/build
make[1]: Entering directory '/home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1808620581.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec1808620581.dir/CheckSymbolExists.c.o   -c /home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec1808620581
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1808620581.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTryCompileExec1808620581.dir/CheckSymbolExists.c.o  -o cmTryCompileExec1808620581 -rdynamic 
CMakeFiles/cmTryCompileExec1808620581.dir/CheckSymbolExists.c.o: In function 'main':
CheckSymbolExists.c:(.text+0x10): undefinedmake[1]: Leaving directory '/home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp'
 reference to 'pthread_create'
CheckSymbolExists.c:(.text+0x14): undefined reference to 'pthread_create'
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec1808620581] Error 1
make: *** [cmTryCompileExec1808620581/fast] Error 2

File /home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec2979155902/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2979155902.dir/build.make CMakeFiles/cmTryCompileExec2979155902.dir/build
make[1]: Entering directory '/home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2979155902.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec2979155902.dir/CheckFunctionExists.c.o   -c /usr/local/share/cmake-3.2/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2979155902
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2979155902.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec2979155902.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2979155902 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
make[1]: make[1]: Leaving directory '/home/debian/sdrdaemon/build/CMakeFiles/CMakeTmp'
*** [cmTryCompileExec2979155902] Error 1
make: *** [cmTryCompileExec2979155902/fast] Error 2
    
por Rajib 26.12.2016 / 07:32

0 respostas