tensorrtx icon indicating copy to clipboard operation
tensorrtx copied to clipboard

make error CMakeFiles/yolov5.dir/build.make:147: recipe for target 'yolov5' failed

Open W8ming opened this issue 3 years ago • 3 comments
trafficstars

[100%] Linking CXX executable yolov5 /usr/bin/ld: warning: libnvrtc.so.10.2, needed by /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcublas.so.10, needed by /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcublasLt.so.10, needed by /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1, not found (try using -rpath or -rpath-link) /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' /home/zy/download/TensorRT-7.2.2.3/lib/libmyelin.so.1: undefined reference to [email protected]' collect2: error: ld returned 1 exit status CMakeFiles/yolov5.dir/build.make:147: recipe for target 'yolov5' failed make[2]: *** [yolov5] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/yolov5.dir/all' failed make[1]: *** [CMakeFiles/yolov5.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

please help!

W8ming avatar May 04 '22 11:05 W8ming

cmake .. -- The C compiler identification is GNU 5.5.0 -- The CXX compiler identification is GNU 5.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found CUDA: /usr/local/cuda-10.0 (found version "10.0") -- Found OpenCV: /usr/local (found version "4.5.1") -- Configuring done -- Generating done

W8ming avatar May 04 '22 11:05 W8ming

respect,did you fix this problem and I have the same problem。

lkcl0928 avatar Jun 17 '22 11:06 lkcl0928

You have installed cuda10.0, but you tensorrt depends on cuda10.2.

You need to install proper version of cuda&tensorrt.

wang-xinyu avatar Jun 28 '22 03:06 wang-xinyu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 31 '22 02:08 stale[bot]