syntax error:unexpected")"(qt交叉编译链)

syntax error:unexpected")"(qt交叉编译链)

上面是我创建的群聊,欢迎新朋友的加入。

执行可执行文件,报错

syntax error:unexpected")"(qt交叉编译链)

查看文件类型

syntax error:unexpected")"(qt交叉编译链)

这不是ARM上运行的执行文件,编译链有问题

修改qmake生成的makefile

syntax error:unexpected")"(qt交叉编译链)

syntax error:unexpected")"(qt交叉编译链)

更新嵌入式设备的文件

syntax error:unexpected")"(qt交叉编译链)

 

 

不过上面的解决方案不是很好,在QT编译一次,或者重新生成一次,都要单独处理一方的交叉编译环境

有个更简单的处理方案

给QT设置两个编译方式

1.compilers

syntax error:unexpected")"(qt交叉编译链)

syntax error:unexpected")"(qt交叉编译链)

2.qt versions

syntax error:unexpected")"(qt交叉编译链)

3.kits

 

syntax error:unexpected")"(qt交叉编译链)

syntax error:unexpected")"(qt交叉编译链)

4.project kit

syntax error:unexpected")"(qt交叉编译链)

5.演示arm-linux-gcc编译

syntax error:unexpected")"(qt交叉编译链)

syntax error:unexpected")"(qt交叉编译链)

syntax error:unexpected")"(qt交叉编译链)

syntax error:unexpected")"(qt交叉编译链)

6.演示x86/64编译

syntax error:unexpected")"(qt交叉编译链)syntax error:unexpected")"(qt交叉编译链)

 

syntax error:unexpected")"(qt交叉编译链)

同时会生成桌面应用