我正在尝试在 ARM 中使用 OpenCV 编译 C 代码。当我尝试编译时,我正在使用下一个标志
-L/usr/lib
-lpthread
-lrt
-l
-I/usr/local/include/opencv
-I/usr/local/include
-L/usr/local/lib
-lopencv_core
-lopencv_imgproc
-lopencv_highgui
-lopencv_ml
-lopencv_video
-lopencv_features2d
-lopencv_calib3d
-lopencv_objdetect
-lopencv_contrib
-lopencv_legacy
-lopencv_flann
我得到这个错误:
cannot find -lopencv_core
cannot find -lopencv_imgproc
cannot find -lopencv_flann
我的pkg-config
--cflags
opencv:
-I/usr/local/include/opencv -I/usr/local/include
和pkg-config
--libs
opencv:
-L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann
这里有什么问题?提前致谢。