- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[ 0%] Building CXX object src/caffe/CMakeFiles/proto.dir///include/caffe/proto/caffe.pb.cc.o
In file included from /opt/movidius/ssd-caffe/build/include/caffe/proto/caffe.pb.cc:5:0:
/opt/movidius/ssd-caffe/build/include/caffe/proto/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
^
/opt/movidius/ssd-caffe/build/include/caffe/proto/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
/opt/movidius/ssd-caffe/build/include/caffe/proto/caffe.pb.h:14:2: error: #error your headers.
#error your headers.
^
In file included from /opt/movidius/ssd-caffe/build/include/caffe/proto/caffe.pb.cc:5:0:
/opt/movidius/ssd-caffe/build/include/caffe/proto/caffe.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
src/caffe/CMakeFiles/proto.dir/build.make:74: recipe for target 'src/caffe/CMakeFiles/proto.dir///include/caffe/proto/caffe.pb.cc.o' failed
make[3]: *** [src/caffe/CMakeFiles/proto.dir///include/caffe/proto/caffe.pb.cc.o] Error 1
make[3]: Leaving directory '/opt/movidius/ssd-caffe/build'
CMakeFiles/Makefile2:235: recipe for target 'src/caffe/CMakeFiles/proto.dir/all' failed
make[2]: *** [src/caffe/CMakeFiles/proto.dir/all] Error 2
make[2]: Leaving directory '/opt/movidius/ssd-caffe/build'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/movidius/ssd-caffe/build'
Installation failed. Error on line 498
pls help me out____
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Hashir
If you ask questions, write about the environment in detail.
The error message says:
/opt/movidius/ssd-caffe/build/include/caffe/proto/caffe.pb.h:12:2
This file was generated by a newer version of protoc which is
incompatible with your Protocol Buffer headers. Please update
your headers.
So please try the following.
$ protoc --version
<show protobuf version>
$ sudo apt update
$ sudo apt upgrade
$ protoc --version
<show protobuf version>
$ make install
The version you need depends on whether Ubuntu or Raspbian.
If the above command does not work, try the command below.
Install libprotobuf 3.5.1.
$ cd ~
$ wget https://github.com/google/protobuf/releases/download/v3.5.1/protobuf-all-3.5.1.tar.gz
$ tar -zxvf protobuf-all-3.5.1.tar.gz
$ cd protobuf-3.5.1
$ ./configure
$ sudo make -j1
$ sudo make install
$ cd python
$ export LD_LIBRARY_PATH=../src/.libs
$ python3 setup.py build --cpp_implementation
$ python3 setup.py test --cpp_implementation
$ sudo python3 setup.py install --cpp_implementation
$ sudo ldconfig
$ protoc --version
$ cd <ncsdk folder path>
$ make install
If you do not do the above command, it is suspected of conflict with pycaffe or other.
https://ncsforum.movidius.com/discussion/comment/2994/#Comment_2994
https://ncsforum.movidius.com/discussion/comment/3027/#Comment_3027
◆Ubuntu16.04
https://packages.ubuntu.com/search?keywords=libprotobuf-dev&searchon=names&suite=xenial§ion=all
◆Raspbian
https://packages.debian.org/search?suite=stretch§ion=all&arch=any&searchon=names&keywords=libprotobuf-dev
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page