我正在尝试从源代码构建OpenPose,但是却收到此错误消息。请帮助我。
这是CMake-GUI的日志:
Building with CUDA.
CUDA detected: 9.1
Added CUDA NVCC flags for: sm_61
cuDNN not found
Could NOT find GFlags (missing: GFLAGS_INCLUDE_DIR GFLAGS_LIBRARY)
Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY)
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:431 (find_package)
这是CMakeErrorLog的最后几行
Linking C executable cmTC_54d83
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_54d83.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_54d83.dir/CheckFunctionExists.c.o -o $
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_54d83.dir/build.make:97: recipe for target 'cmTC_54d83' failed
make[1]: *** [cmTC_54d83] Error 1
make[1]: Leaving directory '/home/idl/PycharmProjects/openpose/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_54d83/fast' failed
make: *** [cmTC_54d83/fast] Error 2
我已经安装了必需的依赖项-CUDA,CuDNN,CAFFE,CV2 ...