ubuntu构建Qt测试QtWayland

默认qt不含QtWayland,需要我们自己编译

一般构建

按照 https://wiki.qt.io/Building_Qt_5_from_Git

https://wiki.qt.io/QtWayland

安装环境依赖

sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

参考配置脚本和 http://doc.qt.io/qt-5/configure-options.html

./init-repository --module-subset=default,-deprecated,-qtwebkit,-qtwebkit-examples,-qtwebengine

进行配置

./configure -prefix $PWD/qtbase -release -opensource -confirm-license -opengl es2 -nomake examples -nomake tests -skip qtwebengine

./configure  -prefix $PWD/qtbase -release -opensource -confirm-license -opengl es2 -nomake examples -nomake tests -skip qtwebengine -skip qtdoc -skip qtactiveqt -skip qtlocation -skip qtpurchasing -skip qtscript -skip qtspeech -skip qttools
make -j4

构建某个模块和其依赖

make -j4 module-modulename

排除某个模块

./configure -skip qtconnectivity

指定工具链

http://doc.qt.io/qt-5/embedded-linux.html

清除

git submodule foreach --recursive "git clean -dfx" && git clean -dfx

更新

git pull
./init-repository --module-subset=default,-deprecated,-qtwebkit,-qtwebkit-examples,-qtwebengine -f

重新执行上面的configer和make

需要注意的是qt5主模块中可以单独指定子模块的版本,所以,从主模块整体更新并不一定能检出某个模块的最新版本

 

MSVC2015构建

http://doc.qt.io/qt-5/windows-requirements.html

http://doc.qt.io/qt-5/windows-building.html

http://doc.qt.io/qt-5/windows-issues.html

https://wiki.qt.io/Building_Qt_5_from_Git

http://doc.qt.io/qt-5/ssl.html#enabling-and-disabling-ssl-support

 

转载于:https://my.oschina.net/assange/blog/698828

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值