c++ 执行推理(Ubuntu18),模型:yolov3_mobilenetv1,命令:./scripts/build.sh发生错误
Created by: ZSharp7
错误信息:
CMakeFiles/main.dir/src/object_detector.cc.o: In function PaddleDetection::ObjectDetector::LoadModel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /mnt/i/paddle_model/deploy/cpp/src/object_detector.cc:28: undefined reference to
paddle::AnalysisConfig::SetModel(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/main.dir/build.make:185: recipe for target 'main' failed
make[2]: *** [main] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/main.dir/all' failed
make[1]: *** [CMakeFiles/main.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
使用的库为:
这是什么问题导致的呢?