yolov7样例编译
收藏回复举报
yolov7样例编译
t('forum.solved') 已解决
发表于2024-09-18 11:25:22
0 查看

编译报错

 

/usr/bin/ld: cannot find -lopencv2: No such file or directory 

collect2: error: ld returned 1 exit status 

make[2]: *** [CMakeFiles/sampleYOLOV7.dir/build.make:97: sampleYOLOV7] Error 1 

make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/sampleYOLOV7.dir/all] Error 2 

make: *** [Makefile:136: all] Error 2 

[ERROR] build failed, Please check your environment! 

这是什么问题,之前的报错是找不到opencv2/opencv.hpp,将文档中这个引用的头文件路径写全就没有报错,但是这样的头文件太多,所以在cmakelist文件中写入opencv的路径,然后make build,重新编译报错上述问题

我要发帖子