FeiYull / TensorRT-Alpha

🔥🔥🔥TensorRT for YOLOv8、YOLOv8-Pose、YOLOv8-Seg、YOLOv8-Cls、YOLOv7、YOLOv6、YOLOv5、YOLONAS......🚀🚀🚀CUDA IS ALL YOU NEED.🍎🍎🍎
GNU General Public License v2.0
1.26k stars 196 forks source link

undefined reference to `sample::splitToStringVec 哪里不对呢? #47

Closed wangyong5123 closed 10 months ago

wangyong5123 commented 10 months ago

[ 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

territoryLiu commented 10 months ago

Add sampleUtils.cpp to the Tensorrt section in cmakelists. image

kkboy771 commented 4 months ago

Add sampleUtils.cpp to the Tensorrt section in cmakelists. Still haven't solved the problem ![Uploading a49776088915f5dc7ea44fa19a4f2690.png…]()

FunnyWii commented 3 months ago

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.