QtWebEngine/Qt5Build: Difference between revisions
Jump to navigation
Jump to search
(fix more typos) |
m (add "git submodule init") |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Building | ==Building for Raspberry Pi== | ||
If you are interested in trying QtWebEngine with WebGL support on RasberryPi3 with the open source Vc4 driver see [[RaspberryPiWithWebEngine|here]]. | |||
QtWebEngine 5.x series require Python 2.7 which is not longer supported, therefore the easy way to obtain it is use <big>pyenv</big>. | ==Building on MacOS== | ||
===Install build dependencies=== | |||
QtWebEngine 5.x series require Python 2.7 which is not longer supported, therefore the easy way to obtain it is to use <big>pyenv</big>. | |||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 15: | Line 19: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Obtain sources code== | ===Obtain Qt5 sources code=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 26: | Line 30: | ||
cd qtwebenigne | cd qtwebenigne | ||
git submodule init | |||
git submodule update | git submodule update | ||
cd .. | cd .. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Configure compile for x86_64 or for arm64 (Big Sur)== | ===Configure compile for x86_64 or for arm64 (Big Sur)=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 38: | Line 43: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Configure to cross-compile build (x86_64 -> arm64)== | ===Configure to cross-compile build (x86_64 -> arm64)=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 46: | Line 51: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Configure | ===Configure for unviersal build (x86_64, arm64)=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 54: | Line 59: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Build qtbase== | ===Build qtbase=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
make -j12 | make -j12 | ||
Line 61: | Line 66: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Build qtdeclarative== | ===Build qtdeclarative=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
mkdir qtdeclarative | mkdir qtdeclarative | ||
Line 70: | Line 75: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Build qtwebengine== | ===Build qtwebengine=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
mkdir qtwebengine | mkdir qtwebengine |
Latest revision as of 09:59, 13 April 2022
Building for Raspberry Pi
If you are interested in trying QtWebEngine with WebGL support on RasberryPi3 with the open source Vc4 driver see here.
Building on MacOS
Install build dependencies
QtWebEngine 5.x series require Python 2.7 which is not longer supported, therefore the easy way to obtain it is to use pyenv.
brew install pyenv
pyenv install -l
pyenv install 2.7.18
pyenv global 2.7.18
pyenv init --path
export PATH="/Users/qt/.pyenv/shims:${PATH}"
ulimit -n 1200
Obtain Qt5 sources code
mkdir qt5
cd qt5
git clone git://code.qt.io/qt/qtbase.git
git clone git://code.qt.io/qt/qtdeclarative.git
git clone git://code.qt.io/qt/qtwebengine.git
cd qtwebenigne
git submodule init
git submodule update
cd ..
Configure compile for x86_64 or for arm64 (Big Sur)
mkdir -p build/qtbase
cd build/qtbase
../../qtbase/configure -opensource -confirm-license -verbose -prefix /Users/qt/install/5.15.release -release -force-debug-info -separate-debug-info -nomake tests -nomake examples -no-pch
Configure to cross-compile build (x86_64 -> arm64)
mkdir -p build/qtbase
cd build/qtbase
../../qtbase/configure -opensource -confirm-license -verbose -prefix /Users/qt/install/5.15.release -release -force-debug-info -separate-debug-info -nomake tests -nomake examples -no-pch -device-option QMAKE_APPLE_DEVICE_ARCHS="arm64"
Configure for unviersal build (x86_64, arm64)
mkdir -p build/qtbase
cd build/qtbase
../../qtbase/configure -opensource -confirm-license -verbose -prefix /Users/qt/install/5.15.release -release -force-debug-info -separate-debug-info -nomake tests -nomake examples -no-pch QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64"
Build qtbase
make -j12
make install
cd ..
Build qtdeclarative
mkdir qtdeclarative
cd qtdeclarative
/Users/qt/install/5.15.release/bin/qmake ../../qtdeclarative/
make -j12
make install
Build qtwebengine
mkdir qtwebengine
cd qtwebengine
/Users/qt/install/5.15.release/bin/qmake ../../qtwebengine/
make -j12
make install