[技术问答]

关于qt编译问题

[复制链接]
2941|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 | 显示全部楼层
http://blog.csdn.net/kkvvll2/article/details/23468533
貌似这个博文跟你的有点像。

使用特权

评论回复
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

粉丝