TensorRT-CenterNet icon indicating copy to clipboard operation
TensorRT-CenterNet copied to clipboard

与Protobuf有关的一些错误

Open Qidian213 opened this issue 4 years ago • 6 comments

环境:TensoRT 7.0

当使用 Protobuf 2.6.1 时报错: fatal error: google/protobuf/port_def.inc: No such file or directory

当使用 Protobuf 3.11.4时,能够正常编译,并执行命令: ./buildEngine -i model/centerface.onnx -o model/centerface.engine

但是当运行指令: ./runDet -e model/centerface.engine -i test.jpg

报错: [libprotobuf FATAL google/protobuf/stubs/common.cc:87] This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.11.4). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".) terminate called after throwing an instance of 'google::protobuf::FatalException' what(): This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.11.4). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".) Aborted (core dumped)

提示又必须得Protobuf 2.6.1, 请教如何解决这个问题? 谢谢!

Qidian213 avatar Mar 13 '20 17:03 Qidian213

@Qidian213 TensorRT7 与 项目中的 onnx-tensorrt v5.0 不匹配 使用TensorRT5可能会更好一些

CaoWGG avatar Mar 14 '20 03:03 CaoWGG

hello,I have the same problem. How did you solve it? Thank you

universebang avatar Mar 15 '20 12:03 universebang

@universebang 还没有

Qidian213 avatar Mar 16 '20 02:03 Qidian213

@CaoWGG 你好,我用TensortRT5.15.遇到同样的问题。看来是必须5.0了

Qidian213 avatar Mar 17 '20 03:03 Qidian213

@CaoWGG 你好,我用TensortRT5.15.遇到同样的问题。看来是必须5.0了

@Qidian213 @CaoWGG 但是tensorrt 5.0貌似只支持python 3.5 对吗?我用python 3.6安装tensorrt 5.0一直报错

undefined symbol: _Py_ZeroStruct

zhaoxuyan avatar Mar 26 '20 18:03 zhaoxuyan

@CaoWGG 重新编译了onnx-tensorrt 6.0版本,还是报这个错误

tcxia avatar May 09 '20 05:05 tcxia