2012-04-02 21:05:06 +02:00
General
2011-10-17 09:57:07 +02:00
----------------------------------------------------------------------------------
2011-03-02 16:57:41 +01:00
2011-10-04 18:28:34 +02:00
If you can, you should use precompiled packages for your distribution.
But if you cannot use them, or they are not available, please read
2012-04-05 09:36:37 +02:00
this information before compiling.
2015-10-19 21:32:01 +02:00
After your binary is successfully compiled, you need to copy bin/ folder
2011-10-04 18:28:34 +02:00
from git to specific directory by your system you compiled for.
2011-10-17 09:57:07 +02:00
On Linux, you can easily do it by running make install.
2011-10-04 18:28:34 +02:00
If you are unsure where is the right place, you can check it directly from
2012-07-10 11:56:24 +02:00
QupZilla by clicking from Help Menu on Configuration Information, then in
2011-10-27 14:26:40 +02:00
Path section.
2012-04-02 21:05:06 +02:00
2011-10-27 14:26:40 +02:00
You may want to build QupZilla with debugging symbols (for generating
2012-02-26 12:12:38 +01:00
backtrace of crash) as easily as adding one line to src/defines.pri:
2012-04-02 21:05:06 +02:00
2011-10-27 14:26:40 +02:00
CONFIG += debug
2012-04-02 21:05:06 +02:00
2016-10-24 20:11:50 +02:00
QupZilla requires Qt (>= 5.7) and QtWebEngine (at least version included in Qt 5.7)
2012-02-18 19:20:07 +01:00
2011-10-17 09:57:07 +02:00
Microsoft Windows
----------------------------------------------------------------------------------
2011-10-04 18:28:34 +02:00
2016-10-24 20:11:50 +02:00
You need Microsoft Visual C++ Compiler, Qt Libraries 5.7.0 or higher and openssl
2016-03-29 15:12:00 +02:00
libraries. in order to build QupZilla.
2012-04-02 21:05:06 +02:00
2011-10-17 09:57:07 +02:00
Linux / Unix
----------------------------------------------------------------------------------
2011-10-04 18:28:34 +02:00
2016-10-24 20:11:50 +02:00
You need to have Qt 5 (>= 5.7) with QtWebEngine.
2015-09-25 22:04:05 +02:00
Next compulsory requirement is OpenSSL (libcrypto). xcb libraries are also
2013-06-21 11:09:19 +02:00
required unless you specify NO_X11 build option.
2013-05-19 10:52:44 +02:00
To build KWallet plugin, you need:
2016-03-29 15:12:00 +02:00
- KF5 KWallet
2013-05-19 10:52:44 +02:00
- set KDE_INTEGRATION build flag
2013-01-19 19:37:40 +01:00
2014-02-02 16:21:06 +01:00
To build Gnome-Keyring plugin, you need
- libgnome-keyring-dev installed
- set GNOME_INTEGRATION build flag
2014-01-27 22:30:55 +01:00
For debug build, gdb is required by qmake.
2012-04-05 09:36:37 +02:00
MAC OS X
----------------------------------------------------------------------------------
2016-05-14 12:45:28 +02:00
You need to have Xcode from the Apple App Store installed in Applications, [Command Line Tools for the same Xcode version ](https://developer.apple.com/ ),
[Homebrew ](http://brew.sh/ ), and `$ brew install openssl` for openssl.
2016-10-24 20:11:50 +02:00
Next compulsory requirement is Qt 5 (>= 5.7) with QtWebEngine.
2012-04-05 09:36:37 +02:00
After successful compilation, you need to run macdeploy.sh script to correctly
build the application bundle. You will do it with following command:
2013-01-19 19:37:40 +01:00
2014-03-03 15:06:22 +01:00
$ ./mac/macdeploy.sh < path-to-macdeployqt >
2013-01-19 19:37:40 +01:00
2015-10-19 21:32:01 +02:00
You need to specify path to macdeployqt (usually in QTDIR/bin/macdeployqt) only
2012-04-05 09:36:37 +02:00
if it is not in PATH.
2012-04-02 21:05:06 +02:00
2011-10-17 09:57:07 +02:00
OS/2
----------------------------------------------------------------------------------
2011-10-07 15:37:49 +02:00
2012-04-02 21:05:06 +02:00
I cannot provide support for QupZilla on OS/2 as I don't have access to
2011-10-07 15:37:49 +02:00
machine with OS/2, but it is possible to get QupZilla working there.
2013-01-19 19:37:40 +01:00
2012-04-05 09:36:37 +02:00
Builds are provided by netlabs.org (http://svn.netlabs.org/qtapps/wiki/QT4%20Networking)
2012-04-02 21:05:06 +02:00
2011-12-28 14:55:54 +01:00
FreeBSD
----------------------------------------------------------------------------------
You may need to set few sysctls to get QupZilla running with raster graphics system.
2012-04-02 21:05:06 +02:00
2011-12-28 14:55:54 +01:00
For more informations, please see FAQ.
2011-10-07 15:37:49 +02:00
2011-10-17 09:57:07 +02:00
Available Defines
----------------------------------------------------------------------------------
2012-02-26 12:12:38 +01:00
You can set define directly in file (src/defines.pri)
2011-10-13 20:06:27 +02:00
or set environment variable by
2012-04-02 21:05:06 +02:00
2011-10-18 14:30:17 +02:00
$ export NAME="value"
2011-10-04 18:28:34 +02:00
General:
2015-10-19 21:32:01 +02:00
PORTABLE_BUILD QupZilla won't write any data outside of path of execution.
2011-12-28 14:55:54 +01:00
It will also disable plugins by default.
2011-10-04 18:28:34 +02:00
(disabled by default)
2012-04-02 21:05:06 +02:00
2011-10-18 14:30:17 +02:00
example:
2011-12-28 14:55:54 +01:00
$ export PORTABLE_BUILD="true"
2012-04-02 21:05:06 +02:00
2012-01-21 20:29:33 +01:00
NONBLOCK_JS_DIALOGS Enable non-blocking JavaScript dialogs from alert() prompt()
2012-04-02 21:05:06 +02:00
and confirm() functions. They are shown inside page and are not
2012-01-21 20:29:33 +01:00
blocking application window.
2012-04-02 21:05:06 +02:00
However, due to synchronous API, there is a possible crash when
2012-01-21 20:29:33 +01:00
closing browser windows with opened dialogs.
If you can take this risk and/or make sure you aren't closing browser
with opened dialogs, you may enable this option.
These dialogs are much more beautiful than normal QDialogs.
(disabled by default)
2012-04-02 21:05:06 +02:00
2012-01-21 20:29:33 +01:00
example:
2012-04-02 21:05:06 +02:00
$ export NONBLOCK_JS_DIALOGS="true"
2011-10-27 14:26:40 +02:00
Windows specific defines:
2012-04-02 21:05:06 +02:00
2011-10-13 17:38:51 +02:00
W7API Enable Windows 7 API support
2011-10-17 09:57:07 +02:00
Requires linking against libraries from Microsoft Visual C++
Compiler 2010
2011-10-23 14:44:18 +02:00
(enabled by default)
2012-04-02 21:05:06 +02:00
2011-10-04 18:28:34 +02:00
Linux / Unix specific defines:
2012-04-02 21:05:06 +02:00
2015-09-25 22:04:05 +02:00
NO_X11 Disable all X11 calls.
Enable this when building for Wayland-only.
All X11 calls are guarded by runtime X11 platform check
even without this option.
2013-03-23 14:16:08 +01:00
example:
$ export NO_X11="true"
2013-05-19 10:52:44 +02:00
KDE_INTEGRATION Enable KDE integration.
2013-05-15 21:30:20 +02:00
Currently it enables building of KWallet Password plugin,
which provides support for storing passwords in KWallet.
2012-04-02 21:05:06 +02:00
2011-12-13 17:00:56 +01:00
example:
2013-05-19 10:52:44 +02:00
$ export KDE_INTEGRATION="true"
2012-04-02 21:05:06 +02:00
2014-01-01 23:36:23 +01:00
GNOME_INTEGRATION Enable Gnome integration.
Currently it enables building of Gnome-Keyring Password plugin,
which provides support for storing passwords in Gnome-Keyring.
example:
$ export GNOME_INTEGRATION="true"
2012-04-05 09:36:37 +02:00
USE_LIBPATH By default, /usr/lib/ is used for libQupZilla and /usr/lib/qupzilla
2012-04-02 21:05:06 +02:00
for plugins.
2014-03-03 15:06:22 +01:00
You can change it by setting this define.
2012-04-02 21:05:06 +02:00
example:
2014-03-03 15:06:22 +01:00
$ export USE_LIBPATH="/usr/lib64"
2012-04-02 21:05:06 +02:00
2011-10-04 18:28:34 +02:00
NO_SYSTEM_DATAPATH By default, QupZilla is using /usr/share/qupzilla/ path
2012-04-05 09:36:37 +02:00
for storing themes and translations.
2011-10-04 18:28:34 +02:00
By setting this define, QupZilla will use path of execution.
(disabled by default)
2012-04-02 21:05:06 +02:00
2011-10-18 14:30:17 +02:00
example:
$ export NO_SYSTEM_DATAPATH="true"
2012-04-02 21:05:06 +02:00
2014-03-03 15:06:22 +01:00
QUPZILLA_PREFIX You can define different prefix.
2011-10-27 14:26:40 +02:00
QupZilla binary will then be moved to PREFIX/bin/, use
PREFIX/share/qupzilla/ as datadir, PREFIX/share/applications for
desktop launcher and PREFIX/share/pixmaps for icon.
2016-02-14 10:20:51 +01:00
(default prefix is "/usr")
2012-04-02 21:05:06 +02:00
2011-10-18 14:30:17 +02:00
example:
2014-03-03 15:06:22 +01:00
$ export QUPZILLA_PREFIX="/usr"
2012-04-02 21:05:06 +02:00
2016-02-07 16:38:22 +01:00
SHARE_FOLDER You can define the path of the share folder, i.e. /usr/share
QupZilla will then use SHARE_FOLDER/qupzilla as datadir,
SHARE_FOLDER/applications for desktop launcher and
2016-02-14 10:20:51 +01:00
SHARE_FOLDER/pixmaps for the icon. By default it is not defined
and files will be installed as described above.
(default share folder is "/usr/share")
example:
$ export SHARE_FOLDER="/usr/share"
2016-02-07 16:38:22 +01:00
2013-05-19 10:52:44 +02:00
DISABLE_DBUS Build without QtDBus module. Native desktop notifications
will be disabled.
2012-07-10 11:56:24 +02:00
example:
$ export DISABLE_DBUS="true"