Open jiamfeng opened 10 months ago
make -j8 [ 10%] Building CXX object CMakeFiles/yolox.dir/home/indus/TensorRT-8.6.1.6/samples/common/logger.cpp.o [ 20%] Building CXX object CMakeFiles/yolox.dir/home/indus/TensorRT-8.6.1.6/samples/common/sampleOptions.cpp.o [ 30%] Building CUDA object CMakeFiles/yolox.dir/home/indus/fjm/project/TensorRT-Alpha/utils/kernel_function.cu.o [ 40%] Building CXX object CMakeFiles/yolox.dir/home/indus/fjm/project/TensorRT-Alpha/utils/utils.cpp.o [ 50%] Building CXX object CMakeFiles/yolox.dir/home/indus/fjm/project/TensorRT-Alpha/utils/yolo.cpp.o [ 70%] Building CXX object CMakeFiles/yolox.dir/app_yolox.cpp.o [ 70%] Building CUDA object CMakeFiles/yolox.dir/yolox.cu.o [ 80%] Linking CXX shared library libyolox.so [ 80%] Built target yolox [ 90%] Building CXX object CMakeFiles/app_yolox.dir/app_yolox.cpp.o [100%] Linking CXX executable app_yolox /usr/bin/ld: libyolox.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_yolox.dir/build.make:111: app_yolox] Error 1 make[1]: [CMakeFiles/Makefile2:78: CMakeFiles/app_yolox.dir/all] Error 2 make: *** [Makefile:84: all] Error 2
@jiamfeng solution:https://github.com/FeiYull/TensorRT-Alpha/issues/47#issuecomment-1705861412
make -j8 [ 10%] Building CXX object CMakeFiles/yolox.dir/home/indus/TensorRT-8.6.1.6/samples/common/logger.cpp.o [ 20%] Building CXX object CMakeFiles/yolox.dir/home/indus/TensorRT-8.6.1.6/samples/common/sampleOptions.cpp.o [ 30%] Building CUDA object CMakeFiles/yolox.dir/home/indus/fjm/project/TensorRT-Alpha/utils/kernel_function.cu.o [ 40%] Building CXX object CMakeFiles/yolox.dir/home/indus/fjm/project/TensorRT-Alpha/utils/utils.cpp.o [ 50%] Building CXX object CMakeFiles/yolox.dir/home/indus/fjm/project/TensorRT-Alpha/utils/yolo.cpp.o [ 70%] Building CXX object CMakeFiles/yolox.dir/app_yolox.cpp.o [ 70%] Building CUDA object CMakeFiles/yolox.dir/yolox.cu.o [ 80%] Linking CXX shared library libyolox.so [ 80%] Built target yolox [ 90%] Building CXX object CMakeFiles/app_yolox.dir/app_yolox.cpp.o [100%] Linking CXX executable app_yolox /usr/bin/ld: libyolox.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_yolox.dir/build.make:111: app_yolox] Error 1
make[1]: [CMakeFiles/Makefile2:78: CMakeFiles/app_yolox.dir/all] Error 2
make: *** [Makefile:84: all] Error 2