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

make error #35

Open
RightTr opened this issue Dec 5, 2024 · 2 comments
Open

make error #35

RightTr opened this issue Dec 5, 2024 · 2 comments

Comments

@RightTr
Copy link

RightTr commented Dec 5, 2024

/home/right/third-party/tensorRT_Pro-YOLOv8/src/tensorRT/infer/trt_infer.cpp:7:10: fatal error: NvCaffeParser.h: No such file or directory
#include <NvCaffeParser.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pro.dir/build.make:713: CMakeFiles/pro.dir/src/tensorRT/infer/trt_infer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/right/third-party/tensorRT_Pro-YOLOv8/src/tensorRT/builder/trt_builder.cpp: In function ‘const char* TRT::padding_mode_name(nvinfer1::PaddingMode)’:
/home/right/third-party/tensorRT_Pro-YOLOv8/src/tensorRT/builder/trt_builder.cpp:77:32: error: ‘kCAFFE_ROUND_DOWN’ is not a member of ‘nvinfer1::PaddingMode’
case nvinfer1::PaddingMode::kCAFFE_ROUND_DOWN: return "caffe round down";
^~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [CMakeFiles/pro.dir/build.make:635: CMakeFiles/pro.dir/src/tensorRT/builder/trt_builder.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:444: CMakeFiles/pro.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

@RightTr
Copy link
Author

RightTr commented Dec 5, 2024

home/right/third-party/tensorRT_Pro-YOLOv8/src/tensorRT/onnx_parser/ModelImporter.cpp:398: undefined reference to google::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::begin() const' /usr/bin/ld: /home/right/third-party/tensorRT_Pro-YOLOv8/src/tensorRT/onnx_parser/ModelImporter.cpp:398: undefined reference to google::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >::end() const'
/usr/bin/ld: CMakeFiles/pro.dir/src/tensorRT/onnx_parser/ModelImporter.cpp.o: in function bool (anonymous namespace)::get_post_order<google::protobuf::RepeatedPtrField<onnx::NodeProto> >(unsigned long, google::protobuf::RepeatedPtrField<onnx::NodeProto> const&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned long> > > const&, std::vector<(anonymous namespace)::NodeState, std::allocator<(anonymous namespace)::NodeState> >*, std::vector<unsigned long, std::allocator<unsigned long> >*)': /home/right/third-party/tensorRT_Pro-YOLOv8/src/tensorRT/onnx_parser/toposort.hpp:45: undefined reference to google::protobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >::begin() const'

Here is new error. How to solve it?
Thanks

@Melody-Zhou
Copy link
Owner

@RightTr This may be due to the protobuf library version, the repo depends on the specific protobuf version 3.11.4, if you are using a different version of protobuf you need to use the protoc tool to generate onnx-ml.pb.cpp and other files. You can refer to the original repo tensorRT_Pro for details

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

2 participants