Closed vansin closed 2 years ago
os: ubuntu 20.04
when I run
docker build docker/GPU/ -t mmdeploy:GPU
failed, what should I do?
-- Build files have been written to: /root/workspace/mmdeploy/build/install/example/build [ 10%] Building CXX object CMakeFiles/ocr.dir/ocr.cpp.o [ 20%] Linking CXX executable ocr /usr/bin/ld: warning: libcuda.so.1, needed by /root/workspace/mmdeploy/build/install/lib/libmmdeploy_cuda_device.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: /root/workspace/mmdeploy/build/install/lib/libmmdeploy_cuda_device.so: undefined reference to `cuCtxGetCurrent' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/ocr.dir/build.make:172: ocr] Error 1 make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/ocr.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 The command '/bin/sh -c cd /root/workspace/mmdeploy && rm -rf build/CM* && mkdir -p build && cd build && cmake .. -DMMDEPLOY_BUILD_SDK=ON -DCMAKE_CXX_COMPILER=g++ -Dpplcv_DIR=/root/workspace/ppl.cv/cuda-build/install/lib/cmake/ppl -DTENSORRT_DIR=${TENSORRT_DIR} -DMMDEPLOY_BUILD_SDK_PYTHON_API=ON -DMMDEPLOY_TARGET_DEVICES="cuda;cpu" -DMMDEPLOY_TARGET_BACKENDS="trt" -DMMDEPLOY_CODEBASES=all && cmake --build . -- -j$(nproc) && cmake --install . && cd install/example && mkdir -p build && cd build && cmake -DMMDeploy_DIR=/root/workspace/mmdeploy/build/install/lib/cmake/MMDeploy .. && cmake --build . && export SPDLOG_LEVEL=warn && if [ -z ${VERSION} ] ; then echo "Built MMDeploy master for GPU devices successfully!" ; else echo "Built MMDeploy version v${VERSION} for GPU devices successfully!" ; fi' returned a non-zero code: 2
It seems LD_LIBRARY_PATH needs to be updated by adding the path of libcuda.so. I'm working on it now
libcuda.so
thank you for your help~
os: ubuntu 20.04
when I run
failed, what should I do?