C++推理部署问题
Created by: Simonlyym
在对预测库进行编译时遇到这个问题: make[2]: *** No rule to make target '/home/aistudio/work/opencv-3.4.6/lib/libopencv_imgcodecs.a', needed by 'detection_demo'. Stop. CMakeFiles/Makefile2:142: recipe for target 'CMakeFiles/detection_demo.dir/all' failed make[1]: *** [CMakeFiles/detection_demo.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
我使用的编译命令: %cd /home/aistudio/work/PaddleDetection/inference !mkdir build %cd build !cmake .. -DWITH_GPU=OFF -DPADDLE_DIR=/home/aistudio/work/PaddleDetection/fluid_inference -DOPENCV_DIR=/home/aistudio/work/opencv-3.4.6 -DWITH_STATIC_LIB=OFF !make