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

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

Closed
wangyong5123 opened this issue Aug 28, 2023 · 3 comments
Closed

Comments

@wangyong5123
Copy link

[ 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
Copy link

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

@kkboy771
Copy link

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

@FunnyWii
Copy link

FunnyWii commented Mar 26, 2024

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.

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

5 participants