参考:https://blog.csdn.net/KKALL1314/article/details/81915354
https://forum.qt.io/topic/80301/file-not-recognized-file-format-not-recognized-error
背景:在Ubuntu下 QT环境中添加讯飞语音库
要求:.so文件要经过交叉编译,否则报错:“error: file not recognized: File format not recognized”
过程:项目->添加库->外部库->库文件,选择libs文件夹路径->包含路径,选择include文件夹路径->确定。
图示过程:
.pro 文件示例