Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when making familia, error This file was generated by an older version of protoc #32

Closed
sunnybest1990 opened this issue Oct 9, 2017 · 1 comment

Comments

@sunnybest1990
Copy link

Familia/third_party/bin/protoc --cpp_out=./src --proto_path=./proto proto/config.proto
mv src/config.pb.h ./include/familia
mv src/config.pb.cc ./src/config.cpp
g++ -I./include/ -I./include/familia -I./third_party/include -I/usr/include/python2.7 -pipe -W -Wall -fPIC -std=c++11 -fno-omit-frame-pointer -fpermissive -O3 -ffast-math -MM -MT build/inference_engine.o src/inference_engine.cpp >build/inference_engine.d
In file included from ./include/familia/inference_engine.h:11:0,
from src/inference_engine.cpp:5:
./include/familia/config.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
^
./include/familia/config.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
^
./include/familia/config.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
^
make: *** [build/inference_engine.o] Error 1

@sunnybest1990
Copy link
Author

solved by set export LD_LIBRARY_PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant