编译错误:找不到framework.pb.h
Created by: wuyan08
Git clone出最新的Paddle源码,编译时提示没有framework.pb.h,需要进入到framework.proto所在目录,手动调用下protoc,编译出framework.pb.h后才可继续后面的编译。
Docker环境:docker.paddlepaddlehub.com/paddle:latest-dev gcc: 5.4.0 编译选项: cmake -DCMAKE_BUILD_TYPE=Release -DWITH_AVX=OFF -DWITH_MKL=OFF -DWITH_GPU=OFF -DWITH_C_API=OFF -DWITH_FLUID_ONLYON -DWITH_CONTRIB=ON -DWITH_PYTHON=OFF -DWITH_SWIG_PY=OFF -DWITH_DISTRIBUTE=OFF -DWITH_TESTING=ON ..
错误提示: In file included from /home/paddlepaddle-2/Paddle/paddle/fluid/framework/operator.h:25:0, from /home/paddlepaddle-2/Paddle/paddle/fluid/platform/init.cc:19: /home/paddlepaddle-2/Paddle/paddle/fluid/framework/attribute.h:23:49: fatal error: paddle/fluid/framework/framework.pb.h: No such file or directory compilation terminated. paddle/fluid/platform/CMakeFiles/device_context.dir/build.make:86: recipe for target 'paddle/fluid/platform/CMakeFiles/device_context.dir/init.cc.o' failed make[2]: *** [paddle/fluid/platform/CMakeFiles/device_context.dir/init.cc.o] Error 1 CMakeFiles/Makefile2:2200: recipe for target 'paddle/fluid/platform/CMakeFiles/device_context.dir/all' failed make[1]: *** [paddle/fluid/platform/CMakeFiles/device_context.dir/all] Error 2 Makefile:116: recipe for target 'all' failed make: *** [all] Error 2