Ubuntu里Qt Linux版调试之后,把生成的可执行文件放到arm 板子(我用的Tiny4412 or Tiny6410)上,用xshell6运行,出现这个错误syntax error: unexpected word (expecting “)”)

原因:编译器不匹配
解决办法:
选择“工具-选项-构建和运行-工具链”跳出以下界面,选择arm-linux-gcc的路径
Ubuntu里Qt LInux版关于syntax error: unexpected word (expecting ")")的问题
再选择“工具-选项-构建和运行-Qt版本”进行设置,手动设置选择qmake路径
Ubuntu里Qt LInux版关于syntax error: unexpected word (expecting ")")的问题
这样生成的可执行文件就没有问题了。

相关文章:

  • 2021-04-13
  • 2021-10-17
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案