make error: /usr/bin/ld: libyolov8.so: undefined reference to `nmsDeviceV1(utils::InitParameter, float*, int, int, int)'
ubuntu20.04 TensorRT-8.6.1.6 OpenCV 4.6.0
[100%] Linking CXX executable app_yolov8
/usr/bin/ld: libyolov8.so: undefined reference to bgr2rgbDevice(int const&, float*, int, int, float*, int, int)' /usr/bin/ld: libyolov8.so: undefined reference to sample::splitToStringVec(std::__cxx11::basic_string<char, std::char_traitsnmsDeviceV1(utils::InitParameter, float*, int, int, int)' /usr/bin/ld: libyolov8.so: undefined reference to hwc2chwDevice(int const&, float*, int, int, float*, int, int)'
/usr/bin/ld: libyolov8.so: undefined reference to decodeDevice(utils::InitParameter, float*, int, int, int, float*, int, int)' /usr/bin/ld: libyolov8.so: undefined reference to __check_cuda_runtime(cudaError, char const*, char const*, int)'
/usr/bin/ld: libyolov8.so: undefined reference to yolov8::transposeDevice(utils::InitParameter, float*, int, int, int, float*, int, int)' /usr/bin/ld: libyolov8.so: undefined reference to nmsDeviceV2(utils::InitParameter, float*, int, int, int, int*, float*)'
/usr/bin/ld: libyolov8.so: undefined reference to yolov8::decodeDevice(utils::InitParameter, float*, int, int, int, float*, int, int)' /usr/bin/ld: libyolov8.so: undefined reference to resizeDevice(int const&, unsigned char*, int, int, float*, int, int, float, utils::AffineMat)'
/usr/bin/ld: libyolov8.so: undefined reference to `normDevice(int const&, float*, int, int, float*, int, int, utils::InitParameter)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/app_yolov8.dir/build.make:111: app_yolov8] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/app_yolov8.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Everything's running fine until I make yolov8.
solution:https://github.com/FeiYull/TensorRT-Alpha/issues/47