2019独角兽企业重金招聘Python工程师标准>>>
默认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