[技术问答] 关于qt编译问题

[复制链接]
3524|7
 楼主| 14dzqiu 发表于 2017-4-10 15:26 | 显示全部楼层 |阅读模式
参考CNDS的《Qt5.2.1移植新唐n32905测试 》
配置Qt5.2.1时报错如下:
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.

Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
No QPA platform plugin enabled!
If you really want to build without a QPA platform plugin you must pass
-no-qpa-platform-guard to configure. Doing this will
produce a Qt that can not run GUI applications.
The dependencies needed for xcb to build are listed in
src/plugins/platforms/xcb/README

我已经看过那个README,也下载了全部的库,还是update了,还是不行,请问时怎么回事?
dongnanxibei 发表于 2017-4-10 18:54 | 显示全部楼层
是不是警告中的那两个没有设置。。。
heisexingqisi 发表于 2017-4-10 21:22 | 显示全部楼层
是不是你的Linux系统问题,。或者缺少什么文件。
xixi2017 发表于 2017-4-11 15:14 | 显示全部楼层
看警告啊,因为没设置那个啥。
yiy 发表于 2017-4-11 21:52 | 显示全部楼层
 楼主| 14dzqiu 发表于 2017-4-15 11:34 | 显示全部楼层
已经解决了,原来qt里面的编译器默认是arm-linux-gnueabi,我忘记把他改arm-none-linux-gnueabi,另外,发现arm-linux-4.2编译会对qmutex报错,现在改回和博主一样4.4.3,一起学习
haorenhl007 发表于 2017-8-7 16:15 | 显示全部楼层
14dzqiu 发表于 2017-4-15 11:34
已经解决了,原来qt里面的编译器默认是arm-linux-gnueabi,我忘记把他改arm-none-linux-gnueabi,另外,发 ...

不知道具体怎么解决,能否详细说下解决的方法,万分感谢!!
zhuomuniao110 发表于 2017-8-7 22:20 | 显示全部楼层
楼主分析的很有道理啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

13

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部