ubuntu安装qt 5.6 及  example “Musicplayer” 不能够编译原因

来源:互联网 发布:软件做成启动项 编辑:程序博客网 时间:2024/06/11 15:07

一:ubuntu 14.04 安装Qt5.6.0
我的ubuntu是14.04, 一开始我选择的安装版本是在线安装,但是总是报错:
QSslSocket: cannot resolve SSLv2_client_method
………………………………………………….._server_method.
试了包括stackoverflower上的方法,都没有解决,折腾了一个晚上。
早上醒来后,我换了个方法,不用online安装方法,下载了它的整个二进制安装包。就可以了。
二:Qt 5.6.0的exmaple “Musicplayer” can’t be compiled
在qt中打开这个demo的源码,config完后,三角形运行按钮仍然显灰,general message 报错:

Project ERROR: Unknown module(s) in QT: winextrasProject ERROR: Unknown module(s) in QT: winextras

后来在stackoverflow上看到同样有人遇到相同的问题,原因是:

If you want to compile your project for multiple platforms, you should definitely use them in a conditional manner. That’s because modules like winextras, x11extras, macextras and androidextras are only available for the specific OS. For example on Linux, qmake would give you errors when making a project that uses winextras.

Unless you want to only compile it just for the specific platform then there is no need to make it conditional. So it all depends on you and your use case.

0 0