编译PaddleOCR C++预测demo 时CMakeFiles/ocr_system.dir/all failed
Created by: python-bookworm
问题描述: 执行环境:ubuntu18.04 cuda10.0 cudnn7.5 opencv3.4.7 build.sh 配置: OPENCV_DIR=/home/rex-han/下载/opencv/build/$/home/rex-han/下载/opencv3 LIB_DIR=/home/rex-han/下载/Paddle/build/fluid_inference_install_dir CUDA_LIB_DIR=/usr/local/cuda/lib64 CUDNN_LIB_DIR=/usr/lib/x86_64-linux-gnu
BUILD_DIR=build
rm -rf ${BUILD_DIR}
mkdir ${BUILD_DIR}
cd ${BUILD_DIR}
cmake ..
-DPADDLE_LIB=${LIB_DIR}
-DWITH_MKL=ON
-DWITH_GPU=ON
-DWITH_STATIC_LIB=OFF
-DUSE_TENSORRT=OFF
-DOPENCV_DIR=${OPENCV_DIR}
-DCUDNN_LIB=${CUDNN_LIB_DIR}
-DCUDA_LIB=${CUDA_LIB_DIR} \
make -j
执行操作:sh tools/build.sh
问题点: -- Build files have been written to: /home/rex-han/桌面/PythonProgram/Seven_Code_OCR/deploy/cpp_infer/build Scanning dependencies of target ocr_system make[2]: *** 没有规则可制作目标“/home/rex-han/下载/opencv/build/home/rex-han/下载/opencv3/include/opencv/cxcore.h”,由“CMakeFiles/ocr_system.dir/src/config.o” 需求。 停止。 make[2]: *** 正在等待未完成的任务.... [ 11%] Building CXX object CMakeFiles/ocr_system.dir/src/clipper.o CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ocr_system.dir/all' failed make[1]: *** [CMakeFiles/ocr_system.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 请问这是什么问题导致的编译失败。