Qt Creator编译含opencv的程序时报错libopencv_calib3d.so:-1: error: error adding symbols
错误信息:
/home/lyc/Exe/opencv-3.4.16/opencv_install/lib/libopencv_calib3d.so👎 error: error adding symbols: File in wrong format
进入libopencv_calib3d.so所在的目录,利用file查看文件格式。
由于libopencv_calib3d.so最终软链接为libopencv_calib3d.so.3.4.16
执行:
file libopencv_calib3d.so
得到的信息:
看来之前编译时,采用了交叉编译器gcc-arm
解决措施:重新采用x86_64平台的gcc编译opencv库