TensorRT-Yolov3: build error
Scanning dependencies of target TrtNet
[ 12%] Building CXX object tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet.cpp.o
[ 25%] Linking CXX static library libTrtNet.a
[ 75%] Built target TrtNet
Scanning dependencies of target runYolov3
[ 87%] Linking CXX executable runYolov3
CMakeFiles/runYolov3.dir/main.cpp.o: In function Tn::PluginFactory::createPlugin(char const*, nvinfer1::Weights const*, int)': main.cpp:(.text._ZN2Tn13PluginFactory12createPluginEPKcPKN8nvinfer17WeightsEi[_ZN2Tn13PluginFactory12createPluginEPKcPKN8nvinfer17WeightsEi]+0x35): undefined reference to
nvinfer1::plugin::createPReLUPlugin(float)’
CMakeFiles/runYolov3.dir/main.cpp.o: In function Tn::PluginFactory::createPlugin(char const*, void const*, unsigned long)': main.cpp:(.text._ZN2Tn13PluginFactory12createPluginEPKcPKvm[_ZN2Tn13PluginFactory12createPluginEPKcPKvm]+0x39): undefined reference to
nvinfer1::plugin::createPReLUPlugin(void const*, unsigned long)’
tensorRTWrapper/code/libTrtNet.a(TrtNet.cpp.o): In function Tn::trtNet::loadModelAndCreateEngine(char const*, char const*, int, nvcaffeparser1::ICaffeParser*, nvcaffeparser1::IPluginFactory*, nvinfer1::IInt8Calibrator*, nvinfer1::IHostMemory*&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)': TrtNet.cpp:(.text+0x137): undefined reference to
createInferBuilder_INTERNAL’
TrtNet.cpp:(.text+0x2cb): undefined reference to nvcaffeparser1::shutdownProtobufLibrary()' tensorRTWrapper/code/libTrtNet.a(TrtNet.cpp.o): In function
Tn::trtNet::trtNet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::vector<float, std::allocator<float> >, std::allocator<std::vector<float, std::allocator<float> > > > const&, Tn::RUN_MODE)‘:
TrtNet.cpp:(.text+0xf06): undefined reference to nvcaffeparser1::createCaffeParser()' TrtNet.cpp:(.text+0x1190): undefined reference to
createInferRuntime_INTERNAL’
tensorRTWrapper/code/libTrtNet.a(TrtNet.cpp.o): In function Tn::trtNet::trtNet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': TrtNet.cpp:(.text+0x16e9): undefined reference to
createInferRuntime_INTERNAL’
collect2: error: ld returned 1 exit status
CMakeFiles/runYolov3.dir/build.make:127: recipe for target ‘runYolov3’ failed
make[2]: *** [runYolov3] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/runYolov3.dir/all’ failed
make[1]: *** [CMakeFiles/runYolov3.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 17 (7 by maintainers)
@scutzhe yes, it checks the path auto in
tensorRTWrapper/code/CMakeLists.txt
. @lensea modify the[](CheckPair& left,CheckPair& right)
to[](const CheckPair& left,const CheckPair& right)
or[](auto& left,auto& right)
if c++14 supported