我正在尝试使用 Caffe 进行 CMake,但我的系统找不到 protobuf 编译器。我之前安装过protobuf2.7.0。现在我切换回2.6.1。如何配置我的 CMake 来识别 protobuf2.6.1 编译器?
我已经做好了
$ sudo apt-get install libprotobuf-dev protobuf-compiler
$ protoc --version
libprotoc 2.6.1
但是当我尝试 cmake Caffe 时,它仍然给我错误
user@user-computer:~/caffe/build$ cmake -DBLAS=open ..
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
CMake Error at cmake/ProtoBuf.cmake:13 (message):
Could not find PROTOBUF Compiler
Call Stack (most recent call first):
cmake/Dependencies.cmake:43 (include)
CMakeLists.txt:46 (include)
-- Configuring incomplete, errors occurred!
See also "/home/user/caffe/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/caffe/build/CMakeFiles/CMakeError.log".
以下命令对我有用。
apt-get install protobuf-compiler
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)