ubuntu構建Qt測試QtWayland

默認qt不含QtWayland,須要咱們本身編譯html

通常構建

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

https://wiki.qt.io/QtWaylandgit

安裝環境依賴web

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

參考配置腳本和 http://doc.qt.io/qt-5/configure-options.htmlwindows

./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

ui

./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

構建某個模塊和其依賴spa

make -j4 module-modulenamecode

排除某個模塊htm

./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

相關文章
相關標籤/搜索