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

本文介绍了在Ubuntu 14.04环境下安装Qt5.6.0过程中遇到的问题及解决方案,包括通过下载完整二进制安装包解决在线安装失败的问题,以及解决Musicplayer示例项目编译错误的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一: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: winextras
Project 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值