2008-10-11 05:27:52 +00:00
|
|
|
This file is licensed under the terms of the expat license, see the file EXPAT.
|
|
|
|
|
2008-07-27 05:43:30 +00:00
|
|
|
+++ Installing Midori +++
|
|
|
|
|
|
|
|
Building and installing Midori is straightforward.
|
|
|
|
|
|
|
|
Make sure you have Python 2.4 or higher installed.
|
2008-04-16 23:40:15 +00:00
|
|
|
|
2008-07-27 05:43:30 +00:00
|
|
|
Change to the Midori folder on your hard disk in a terminal.
|
2008-04-16 23:40:15 +00:00
|
|
|
|
2008-07-27 05:43:30 +00:00
|
|
|
Run './waf configure'
|
2008-04-16 23:40:15 +00:00
|
|
|
|
2008-07-27 05:43:30 +00:00
|
|
|
Run './waf build'
|
2008-04-16 23:40:15 +00:00
|
|
|
|
2009-01-22 00:59:23 +00:00
|
|
|
You can now run Midori from the build folder like so
|
|
|
|
|
|
|
|
'./waf build --run'
|
|
|
|
|
2009-12-04 22:44:57 +00:00
|
|
|
Using --run as shown above will make sure extensions as well as
|
|
|
|
localizations are used from the build folder.
|
2008-04-16 23:40:15 +00:00
|
|
|
|
2008-07-27 05:43:30 +00:00
|
|
|
You can install it with './waf install'
|
2007-12-16 22:20:24 +00:00
|
|
|
|
2010-01-06 20:57:09 +00:00
|
|
|
If you need to do a clean rebuild, you can do either './waf clean'
|
|
|
|
in order to remove binaries or './waf distclean' which deletes generated
|
|
|
|
configuration files as well.
|
|
|
|
|
2008-07-27 05:43:30 +00:00
|
|
|
For further options run './waf --help'
|
2007-12-16 22:20:24 +00:00
|
|
|
|
2008-10-27 21:57:28 +00:00
|
|
|
+++ Debugging Midori +++
|
|
|
|
|
2009-01-22 00:59:23 +00:00
|
|
|
Run './waf configure -d full' from the Midori folder.
|
2008-10-27 21:57:28 +00:00
|
|
|
|
|
|
|
Run './waf build'
|
|
|
|
|
|
|
|
Midori is now built with debugging symbols.
|
|
|
|
|
|
|
|
Make sure you have installed 'gdb', the GNU Debugger.
|
|
|
|
|
2012-04-05 21:47:48 +00:00
|
|
|
Run Midori as 'gdb _build/default/midori/midori'.
|
2008-10-27 21:57:28 +00:00
|
|
|
|
2010-10-04 20:55:44 +00:00
|
|
|
Inside gdb, type 'run'.
|
|
|
|
|
2008-10-27 21:57:28 +00:00
|
|
|
Try to reproduce a crash that you experienced earlier,
|
|
|
|
this time Midori will freeze at the point of the crash.
|
|
|
|
Switch to your terminal, type bt ('backtrace') and hit Return.
|
|
|
|
What you obtained now is a backtrace that should include
|
|
|
|
function names and line numbers.
|
|
|
|
|
2009-02-24 21:49:51 +00:00
|
|
|
If the problem is a warning and not a crash, try this:
|
|
|
|
|
2012-04-05 21:47:48 +00:00
|
|
|
'G_DEBUG=all gdb _build/default/midori/midori'
|
2009-02-24 21:49:51 +00:00
|
|
|
|
|
|
|
If you are interested in HTTP communication, try this:
|
|
|
|
|
2012-07-19 18:04:25 +00:00
|
|
|
'MIDORI_DEBUG=soup:2 _build/default/midori/midori'
|
2009-02-24 21:49:51 +00:00
|
|
|
|
2012-07-19 18:04:25 +00:00
|
|
|
Where '2' can be a level between 1 and 3.
|
2009-02-24 21:49:51 +00:00
|
|
|
|
2009-10-28 19:38:09 +00:00
|
|
|
If you are interested in (non-) touchscreen behaviour, try this:
|
|
|
|
|
2012-04-05 21:47:48 +00:00
|
|
|
'MIDORI_TOUCHSCREEN=1 _build/default/midori/midori', or
|
2009-10-28 19:38:09 +00:00
|
|
|
|
2012-04-05 21:47:48 +00:00
|
|
|
'MIDORI_TOUCHSCREEN=0 _build/default/midori/midori'
|
2009-10-28 19:38:09 +00:00
|
|
|
|
2010-06-07 19:48:23 +00:00
|
|
|
If you want to "dry run" without WebKitGTK+ rendering, try this:
|
|
|
|
|
2012-04-05 21:47:48 +00:00
|
|
|
'MIDORI_UNARMED=1 _build/default/midori/midori'
|
2010-06-07 19:48:23 +00:00
|
|
|
|
2012-04-16 12:21:25 +00:00
|
|
|
If you want to test bookmarks, you can enable database tracing:
|
|
|
|
|
|
|
|
'MIDORI_BOOKMARKS_DEBUG=1 _build/default/midori/midori'
|
|
|
|
|
2012-02-25 01:06:46 +00:00
|
|
|
To disable Netscape plugins, use MOZ_PLUGIN_PATH=/.
|
|
|
|
|
2012-05-31 22:45:50 +00:00
|
|
|
When running from the build folder, extensions will also be located
|
|
|
|
in the build folder (setting MIDORI_EXTENSION_PATH is no longer needed).
|
2011-04-07 00:17:24 +00:00
|
|
|
|
2008-10-27 21:57:28 +00:00
|
|
|
For further information a tutorial for gdb and
|
|
|
|
reading up on how you can install debugging
|
|
|
|
symbols for libraries used by Midori are recommended.
|