Closed wangyong5123 closed 10 months ago
Add sampleUtils.cpp to the Tensorrt section in cmakelists.
Add sampleUtils.cpp to the Tensorrt section in cmakelists. Still haven't solved the problem ![Uploading a49776088915f5dc7ea44fa19a4f2690.png…]()
The solution provided by author works well. You need to confirm the path of TensorRT in common.cmake. Then empty your build folder and rebuild it. If still doesn't work, re-pull this repo and do above works.
[ 90%] Building CXX object CMakeFiles/app_yolov8.dir/app_yolov8.cpp.o [100%] Linking CXX executable app_yolov8 /usr/bin/ld: libyolov8.so: undefined reference to `sample::splitToStringVec(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, char)'
collect2: error: ld returned 1 exit status
make[2]: [CMakeFiles/app_yolov8.dir/build.make:163:app_yolov8] 错误 1
make[1]: [CMakeFiles/Makefile2:111:CMakeFiles/app_yolov8.dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2