loadcaffe icon indicating copy to clipboard operation
loadcaffe copied to clipboard

Build error on Ubuntu 16.04

Open sherkwast opened this issue 6 years ago • 1 comments

I ran these two commands to install loadcaffe sudo apt-get install libprotobuf-dev protobuf-compiler CC=gcc-5 CXX=g++-5 luarocks install loadcaffe And I got followings,

[ 50%] Building CXX object CMakeFiles/loadcaffe.dir/loadcaffe.cpp.o In file included from /tmp/luarocks_loadcaffe-1.0-0-8104/loadcaffe/loadcaffe.cpp:32:0: /tmp/luarocks_loadcaffe-1.0-0-8104/loadcaffe/build/caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is #error This file was generated by a newer version of protoc which is ^ /tmp/luarocks_loadcaffe-1.0-0-8104/loadcaffe/build/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update #error incompatible with your Protocol Buffer headers. Please update ^ /tmp/luarocks_loadcaffe-1.0-0-8104/loadcaffe/build/caffe.pb.h:14:2: error: #error your headers. #error your headers. ^ /tmp/luarocks_loadcaffe-1.0-0-8104/loadcaffe/build/caffe.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory compilation terminated. CMakeFiles/loadcaffe.dir/build.make:70: recipe for target 'CMakeFiles/loadcaffe.dir/loadcaffe.cpp.o' failed make[2]: *** [CMakeFiles/loadcaffe.dir/loadcaffe.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/loadcaffe.dir/all' failed make[1]: *** [CMakeFiles/loadcaffe.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 Error: Build error: Failed building.

How can I solve it?

sherkwast avatar Apr 27 '18 07:04 sherkwast

Have you solved this problem?

321zhangli123 avatar Sep 20 '18 02:09 321zhangli123