undefined reference to `vtable for google::protobuf::compiler::csharp::Generator'
Created by: Pinnh
无法完成编译
使用的命令如下:
git clone https://github.com/PaddlePaddle/Paddle-Lite.git cd Paddle-Lite/ git checkout release/v2.3 rm -rf third-party/ ##不使用该命令也是一样的错误
./lite/tools/build.sh --arm_os=android --arm_abi=armv8 --arm_lang=gcc --android_stl=c++_static --build_extra=OFF --shutdown_log=OFF full_publish
系统: Ubuntu 16.04 Cmake 3.14.3
编译Log:
[95%] Building CXX object CMakeFiles/libprotoc.dir/home/di/test/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/plugin.cc.o
[ 95%] Building CXX object CMakeFiles/libprotoc.dir/home/di/test/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/python/python_generator.cc.o
[ 96%] Building CXX object CMakeFiles/libprotoc.dir/home/di/test/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/plugin.pb.cc.o
[ 98%] Built target libprotoc
Scanning dependencies of target protoc
[ 99%] Building CXX object CMakeFiles/protoc.dir/home/di/test/Paddle-Lite/third-party/protobuf-mobile/src/google/protobuf/compiler/main.cc.o
[ 97%] Building CXX object CMakeFiles/libprotoc.dir/home/di/test/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/ruby/ruby_generator.cc.o
[100%] Linking CXX executable protoc
[ 97%] Building CXX object CMakeFiles/libprotoc.dir/home/di/test/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/subprocess.cc.o
/tmp/cc2ehPpN.ltrans0.ltrans.o: In function google::protobuf::compiler::csharp::Generator::~Generator()': cc2ehPpN.ltrans0.o:(.text+0xf4): undefined reference to
vtable for google::protobuf::compiler::csharp::Generator'
cc2ehPpN.ltrans0.o:(.text+0xf8): undefined reference to vtable for google::protobuf::compiler::csharp::Generator' cc2ehPpN.ltrans0.o:(.text+0x104): undefined reference to
google::protobuf::compiler::CodeGenerator::~CodeGenerator()'
/tmp/cc2ehPpN.ltrans0.ltrans.o: In function google::protobuf::compiler::ruby::Generator::~Generator()': cc2ehPpN.ltrans0.o:(.text+0x12c): undefined reference to
vtable for google::protobuf::compiler::ruby::Generator'
cc2ehPpN.ltrans0.o:(.text+0x130): undefined reference to vtable for google::protobuf::compiler::ruby::Generator' cc2ehPpN.ltrans0.o:(.text+0x13c): undefined reference to
google::protobuf::compiler::CodeGenerator::~CodeGenerator()'
/tmp/cc2ehPpN.ltrans0.ltrans.o: In function google::protobuf::compiler::php::Generator::~Generator()': cc2ehPpN.ltrans0.o:(.text+0x164): undefined reference to
vtable for google::protobuf::compiler::php::Generator'
cc2ehPpN.ltrans0.o:(.text+0x168): undefined reference to vtable for google::protobuf::compiler::php::Generator' cc2ehPpN.ltrans0.o:(.text+0x174): undefined reference to
google::protobuf::compiler::CodeGenerator::~CodeGenerator()'
/tmp/cc2ehPpN.ltrans0.ltrans.o: In function google::protobuf::compiler::js::Generator::~Generator()': cc2ehPpN.ltrans0.o:(.text+0x19c): undefined reference to
vtable for google::protobuf::compiler::js::Generator'
cc2ehPpN.ltrans0.o:(.text+0x1a0): undefined reference to vtable for google::protobuf::compiler::js::Generator' cc2ehPpN.ltrans0.o:(.text+0x1ac): undefined reference to
google::protobuf::compiler::CodeGenerator::~CodeGenerator()'
...
-- Installing: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/include/google/protobuf/wrappers.proto -- Installing: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/include/google/protobuf/compiler/plugin.proto -- Installing: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/lib/cmake/protobuf/protobuf-targets.cmake -- Installing: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/lib/cmake/protobuf/protobuf-targets-minsizerel.cmake -- Up-to-date: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/lib/cmake/protobuf -- Installing: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/lib/cmake/protobuf/protobuf-config-version.cmake -- Installing: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/lib/cmake/protobuf/protobuf-module.cmake -- Installing: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/lib/cmake/protobuf/protobuf-config.cmake -- Installing: /home/di/test/Paddle-Lite/build.lite.android.armv8.gcc/third_party/install/protobuf_host/lib/cmake/protobuf/protobuf-options.cmake [ 10%] Completed 'protobuf_host' [ 10%] Built target protobuf_host CMakeFiles/Makefile2:515: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: *** [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:196: recipe for target 'publish_inference' failed make: *** [publish_inference] Error 2