QtWebEngine/How to Try: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Get the code==
== Get the code ==


The source code for QtWebEngine can be found on [http://qt.gitorious.org/qt/qtwebengine gitorious] ''[qt.gitorious.org]''.
The source code for QtWebEngine can be found on "gitorious":http://qt.gitorious.org/qt/qtwebengine.


==Building QtWebengine==
== Building QtWebengine ==


[[QtWebEngineOnWindows|For Windows see here]] ''[qt.io]''
"For Windows see here":http://wiki.qt.io/QtWebEngineOnWindows


While this is hidden away in our build system, the build relies on gyp and ninja (fetched along with the chromium sources) to build chromium, hence a build dependency to python, in addition to the usual Qt5 suspects. You currently need at least Qt 5.4 to build QtWebEngine.
While this is hidden away in our build system, the build relies on gyp and ninja (fetched along with the chromium sources) to build chromium, hence a build dependency to python, in addition to the usual Qt5 suspects. You currently need at least Qt 5.4 to build QtWebEngine.


===Installing dependencies on Ubuntu (might be outdated):===
=== Installing dependencies on Ubuntu (might be outdated):<br /><code><br />sudo apt-get install bison build-essential gperf flex ruby python libasound2-dev libbz2-dev libcap-dev libcups2-dev libdrm-dev libegl1-mesa-dev libgcrypt11-dev libnss3-dev libpci-dev libpulse-dev libudev-dev libxtst-dev </code> ===


====Installing additional dependencies on Ubuntu 14.04 (might be outdated):====
==== Installing additional dependencies on Ubuntu 14.04 (might be outdated):<br /><code><br />sudo apt-get install libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libfontconfig1-dev </code> ====


Please note that these libraries need to be installed on other distributions as well, though the package names and the set of libraries that are preinstalled may differ depending on the distribution used.
Please note that these libraries need to be installed on other distributions as well, though the package names and the set of libraries that are preinstalled may differ depending on the distribution used.


===Installing dependencies on Fedora (might be outdated):===
=== Installing dependencies on Fedora (might be outdated):<br /><code><br />sudo yum install &quot;qt5-*&quot; ===


To build a release build (generally recommended) do:<br /> qmake -r <span class="caps">CONFIG</span>+=release
sudo yum install mesa-libEGL-devel libgcrypt-devel libgcrypt pciutils-devel nss-devel libXtst-devel gperf cups-devel pulseaudio-libs-devel libgudev1-devel systemd-devel libcap-devel alsa-lib-devel flex bison ruby<br /></code>


==Testing==
To build a release build (generally recommended) do:<br />qmake -r CONFIG+=release


examples can then be found in the examples/ subdir. It consists of two minimalistic browser testbeds for the Widgets and QtQuick integration, in addition to some exisiting QtWebKitWidgets examples that were imported in order to ensure we have a good migration path.
== Testing ==
 
===Categories:===
 
* [[:Category:Developing-with-Qt|Developing with Qt]]
** [[:Category:Developing-with-Qt::QtWebEngine|QtWebEngine]]

Revision as of 12:45, 23 February 2015

Get the code

The source code for QtWebEngine can be found on "gitorious&quot;:http://qt.gitorious.org/qt/qtwebengine.

Building QtWebengine

"For Windows see here&quot;:http://wiki.qt.io/QtWebEngineOnWindows

While this is hidden away in our build system, the build relies on gyp and ninja (fetched along with the chromium sources) to build chromium, hence a build dependency to python, in addition to the usual Qt5 suspects. You currently need at least Qt 5.4 to build QtWebEngine.

Installing dependencies on Ubuntu (might be outdated):
<br />sudo apt-get install bison build-essential gperf flex ruby python libasound2-dev libbz2-dev libcap-dev libcups2-dev libdrm-dev libegl1-mesa-dev libgcrypt11-dev libnss3-dev libpci-dev libpulse-dev libudev-dev libxtst-dev

Installing additional dependencies on Ubuntu 14.04 (might be outdated):
<br />sudo apt-get install libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libfontconfig1-dev

Please note that these libraries need to be installed on other distributions as well, though the package names and the set of libraries that are preinstalled may differ depending on the distribution used.

=== Installing dependencies on Fedora (might be outdated):

<br />sudo yum install &quot;qt5-*&quot; ===

sudo yum install mesa-libEGL-devel libgcrypt-devel libgcrypt pciutils-devel nss-devel libXtst-devel gperf cups-devel pulseaudio-libs-devel libgudev1-devel systemd-devel libcap-devel alsa-lib-devel flex bison ruby<br />

To build a release build (generally recommended) do:
qmake -r CONFIG+=release

Testing