-- CMAKE_INSTALL_PREFIX = /home/wangzhen/Tensorflow/darknet2ncnn/ncnn/build/install
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
CMake Warning at tools/caffe/CMakeLists.txt:12 (message):
Protobuf not found, caffe model convert tool won't be built
-- Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
CMake Warning at tools/onnx/CMakeLists.txt:12 (message):
Protobuf not found, onnx model convert tool won't be built
-- Configuring done
请问是什么问题??
apt-get install libprotobuf-dev protobuf-compiler
apt-get install libprotobuf-dev protobuf-compiler
But if I'm not root and I have successfully installed protobuf by hand. How can I solve this problem?
I installed protobuf compiler through conda install.
In my case, adding -DProtobuf_INCLUDE_DIR=/data/home/kaiserzhao/anaconda3/envs/py36/include/google/protobuf
to the cmake command in build.sh solved the problem.
Most helpful comment
apt-get install libprotobuf-dev protobuf-compiler