最近在RK3288和RK3399下编译安装了OpenCV,然后编写了Qt的程序,在Pro中添加了库文件。
LIBS += /usr/local/arm64/lib/libopencv_core.so
LIBS += /usr/local/arm64/lib/libopencv_highgui.so
LIBS += /usr/local/arm64/lib/libopencv_core.so
LIBS += /usr/local/arm64/lib/libopencv_highgui.so
LIBS += /usr/local/arm64/lib/libopencv_calib3d.so
LIBS += /usr/local/arm64/lib/libopencv_features2d.so
LIBS += /usr/local/arm64/lib/libopencv_flann.so
LIBS += /usr/local/arm64/lib/libopencv_imgcodecs.so
LIBS += /usr/local/arm64/lib/libopencv_imgproc.so
LIBS += /usr/local/arm64/lib/libopencv_ml.so
LIBS += /usr/local/arm64/lib/libopencv_objdetect.so
LIBS += /usr/local/arm64/lib/libopencv_photo.so
LIBS += /usr/local/arm64/lib/libopencv_video.so
LIBS += /usr/local/arm64/lib/libopencv_shape.so
LIBS += /usr/local/arm64/lib/libopencv_videoio.so
LIBS += /usr/local/arm64/lib/libopencv_stitching.so
LIBS += /usr/local/arm64/lib/libopencv_superres.so
LIBS += /home/petertang/Downloads/out/lib/libjpeg.so
可是编译后,提示如下信息。
调换lib文件的顺序等等,都不行。
但是在正点原子的imx6ull上,则没问题。
最后改成这样,
LIBS += /usr/local/arm64opencv/lib/libopencv_*
最后编译成功了。