1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

Added option to change path to install library on Linux.

- read BUILDING - define USE_LIBPATH
This commit is contained in:
nowrep 2012-04-02 21:05:06 +02:00
parent f0f875082a
commit 0142c3ba9f
4 changed files with 53 additions and 36 deletions

View File

@ -1,4 +1,4 @@
General General
---------------------------------------------------------------------------------- ----------------------------------------------------------------------------------
If you can, you should use precompiled packages for your distribution. If you can, you should use precompiled packages for your distribution.
@ -8,14 +8,14 @@ General
from git to specific directory by your system you compiled for. from git to specific directory by your system you compiled for.
On Linux, you can easily do it by running make install. On Linux, you can easily do it by running make install.
If you are unsure where is the right place, you can check it directly from If you are unsure where is the right place, you can check it directly from
QupZilla by clicking from Help Menu to Informations about program, then in QupZilla by clicking from Help Menu to Informations about program, then in
Path section. Path section.
You may want to build QupZilla with debugging symbols (for generating You may want to build QupZilla with debugging symbols (for generating
backtrace of crash) as easily as adding one line to src/defines.pri: backtrace of crash) as easily as adding one line to src/defines.pri:
CONFIG += debug CONFIG += debug
QupZilla requires Qt (>=4.7.0) and QtWebKit (at least version included in Qt 4.7) QupZilla requires Qt (>=4.7.0) and QtWebKit (at least version included in Qt 4.7)
Microsoft Windows Microsoft Windows
@ -26,27 +26,27 @@ Microsoft Windows
Building with Microsoft Visual C++ Compiler 2010 is possible only with Qt 4.8.0 Building with Microsoft Visual C++ Compiler 2010 is possible only with Qt 4.8.0
and higher. If you try to compile with Qt 4.7, you will get random crashes when and higher. If you try to compile with Qt 4.7, you will get random crashes when
running QupZilla. running QupZilla.
Building with MingW is perhaps possible too, but MingW QtWebKit crashes with Building with MingW is perhaps possible too, but MingW QtWebKit crashes with
every Flash, so MingW is not officially supported. every Flash, so MingW is not officially supported.
If you don't meet this, please use precompiled version, which is also in smart If you don't meet this, please use precompiled version, which is also in smart
windows installer. windows installer.
Linux / Unix Linux / Unix
---------------------------------------------------------------------------------- ----------------------------------------------------------------------------------
There is no extra dependency, you only need Qt tools. There is no extra dependency, you only need Qt tools.
OS/2 OS/2
---------------------------------------------------------------------------------- ----------------------------------------------------------------------------------
I cannot provide support for QupZilla on OS/2 as I don't have access to I cannot provide support for QupZilla on OS/2 as I don't have access to
machine with OS/2, but it is possible to get QupZilla working there. machine with OS/2, but it is possible to get QupZilla working there.
FreeBSD FreeBSD
---------------------------------------------------------------------------------- ----------------------------------------------------------------------------------
You may need to set few sysctls to get QupZilla running with raster graphics system. You may need to set few sysctls to get QupZilla running with raster graphics system.
For more informations, please see FAQ. For more informations, please see FAQ.
@ -55,87 +55,94 @@ Available Defines
You can set define directly in file (src/defines.pri) You can set define directly in file (src/defines.pri)
or set environment variable by or set environment variable by
$ export NAME="value" $ export NAME="value"
General: General:
PORTABLE_BUILD QupZilla won't write any data outside of path of exection. PORTABLE_BUILD QupZilla won't write any data outside of path of exection.
It will also disable plugins by default. It will also disable plugins by default.
(disabled by default) (disabled by default)
example: example:
$ export PORTABLE_BUILD="true" $ export PORTABLE_BUILD="true"
USE_WEBGL Enable WebGL. You need to build QupZilla with WebKit built USE_WEBGL Enable WebGL. You need to build QupZilla with WebKit built
with WebGL support, otherwise you won't be able to compile with WebGL support, otherwise you won't be able to compile
without errors. without errors.
(disabled by default) (disabled by default)
example: example:
$ export USE_WEBGL="true" $ export USE_WEBGL="true"
USE_QTWEBKIT_2_2 Enable support for Geolocation and Notifications API. USE_QTWEBKIT_2_2 Enable support for Geolocation and Notifications API.
You need to have QtWebKit version at least 2.2 to pass compilation You need to have QtWebKit version at least 2.2 to pass compilation
with this define. with this define.
Note: In order to get support for Geolocation and Notifications, Note: In order to get support for Geolocation and Notifications,
your QtWebKit has to be compiled with its support. your QtWebKit has to be compiled with its support.
(disabled by default) (disabled by default)
example: example:
$ export USE_QTWEBKIT_2_2="true" $ export USE_QTWEBKIT_2_2="true"
NONBLOCK_JS_DIALOGS Enable non-blocking JavaScript dialogs from alert() prompt() NONBLOCK_JS_DIALOGS Enable non-blocking JavaScript dialogs from alert() prompt()
and confirm() functions. They are shown inside page and are not and confirm() functions. They are shown inside page and are not
blocking application window. blocking application window.
However, due to synchronous API, there is a possible crash when However, due to synchronous API, there is a possible crash when
closing browser windows with opened dialogs. closing browser windows with opened dialogs.
If you can take this risk and/or make sure you aren't closing browser If you can take this risk and/or make sure you aren't closing browser
with opened dialogs, you may enable this option. with opened dialogs, you may enable this option.
These dialogs are much more beautiful than normal QDialogs. These dialogs are much more beautiful than normal QDialogs.
(disabled by default) (disabled by default)
example: example:
$ export NONBLOCK_JS_DIALOGS="true" $ export NONBLOCK_JS_DIALOGS="true"
Windows specific defines: Windows specific defines:
W7API Enable Windows 7 API support W7API Enable Windows 7 API support
Requires linking against libraries from Microsoft Visual C++ Requires linking against libraries from Microsoft Visual C++
Compiler 2010 Compiler 2010
(enabled by default) (enabled by default)
W7TASKBAR Enable Windows 7 Taskbar support W7TASKBAR Enable Windows 7 Taskbar support
Requires linking against libraries from Microsoft Visual C++ Requires linking against libraries from Microsoft Visual C++
Compiler 2010 Compiler 2010
May cause crash when downloading files on some systems. May cause crash when downloading files on some systems.
(disabled by default) (disabled by default)
Linux / Unix specific defines: Linux / Unix specific defines:
KDE For now, it just use better oxygen icons in Preferences. KDE For now, it just use better oxygen icons in Preferences.
Nepomuk integration is planned, and it will be enabled with Nepomuk integration is planned, and it will be enabled with
this define also. this define also.
example: example:
$ export KDE="true" $ export KDE="true"
USE_LIBPATH By default, /usr/lib/ is used for libqupzilla and /usr/lib/qupzilla
for plugins.
You can change it by setting this define.
example:
$ export USE_LIBPATH="/usr/lib64/"
NO_SYSTEM_DATAPATH By default, QupZilla is using /usr/share/qupzilla/ path NO_SYSTEM_DATAPATH By default, QupZilla is using /usr/share/qupzilla/ path
for storing themes, translations and plugins. for storing themes, translations and plugins.
By setting this define, QupZilla will use path of execution. By setting this define, QupZilla will use path of execution.
(disabled by default) (disabled by default)
example: example:
$ export NO_SYSTEM_DATAPATH="true" $ export NO_SYSTEM_DATAPATH="true"
QUPZILLA_PREFIX You can define different prefix. Prefix must contain ending slash. QUPZILLA_PREFIX You can define different prefix. Prefix must contain ending slash.
(default prefix is "/usr/") (default prefix is "/usr/")
QupZilla binary will then be moved to PREFIX/bin/, use QupZilla binary will then be moved to PREFIX/bin/, use
PREFIX/share/qupzilla/ as datadir, PREFIX/share/applications for PREFIX/share/qupzilla/ as datadir, PREFIX/share/applications for
desktop launcher and PREFIX/share/pixmaps for icon. desktop launcher and PREFIX/share/pixmaps for icon.
example: example:
$ export QUPZILLA_PREFIX="/usr/" $ export QUPZILLA_PREFIX="/usr/"

View File

@ -29,6 +29,7 @@ d_kde = $$(KDE)
d_portable = $$(PORTABLE_BUILD) d_portable = $$(PORTABLE_BUILD)
d_nonblock_dialogs = $$(NONBLOCK_JS_DIALOGS) d_nonblock_dialogs = $$(NONBLOCK_JS_DIALOGS)
d_use_qtwebkit_2_2 = $$(USE_QTWEBKIT_2_2) d_use_qtwebkit_2_2 = $$(USE_QTWEBKIT_2_2)
d_use_lib_path = $$(USE_LIB_PATH)
equals(d_no_system_datapath, "true") { DEFINES *= NO_SYSTEM_DATAPATH } equals(d_no_system_datapath, "true") { DEFINES *= NO_SYSTEM_DATAPATH }
equals(d_use_webgl, "true") { DEFINES *= USE_WEBGL } equals(d_use_webgl, "true") { DEFINES *= USE_WEBGL }
@ -56,6 +57,11 @@ equals(d_use_qtwebkit_2_2, "true") { DEFINES *= USE_QTWEBKIT_2_2 }
hicolor_folder = "$$d_prefix"share/icons/hicolor hicolor_folder = "$$d_prefix"share/icons/hicolor
} }
!equals(d_use_lib_path, "") {
library_folder = $$d_use_lib_path
DEFINES *= USE_LIBPATH=\\\"""$$d_use_lib_path/"\\\""
}
DEFINES *= USE_DATADIR=\\\"""$$data_folder/"\\\"" DEFINES *= USE_DATADIR=\\\"""$$data_folder/"\\\""
#Git revision #Git revision

View File

@ -159,7 +159,11 @@ void Plugins::loadAvailablePlugins()
QStringList dirs; QStringList dirs;
dirs << mApp->DATADIR + "plugins/" dirs << mApp->DATADIR + "plugins/"
#ifdef Q_WS_X11 #ifdef Q_WS_X11
#ifdef USE_LIBPATH
<< USE_LIBPATH
#else
<< "/usr/lib/qupzilla/" << "/usr/lib/qupzilla/"
#endif
#endif #endif
<< mApp->PROFILEDIR + "plugins/"; << mApp->PROFILEDIR + "plugins/";

View File

@ -1021,7 +1021,7 @@
<location filename="../src/lib/other/clearprivatedata.ui" line="140"/> <location filename="../src/lib/other/clearprivatedata.ui" line="140"/>
<source>Clear web databases</source> <source>Clear web databases</source>
<translatorcomment>Z czasem poprawić. Jakieś sugestie?</translatorcomment> <translatorcomment>Z czasem poprawić. Jakieś sugestie?</translatorcomment>
<translation type="unfinished">Wyczyść bazy danych www</translation> <translation>Wyczyść bazy danych www</translation>
</message> </message>
<message> <message>
<location filename="../src/lib/other/clearprivatedata.ui" line="150"/> <location filename="../src/lib/other/clearprivatedata.ui" line="150"/>