Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
midori:contribute [2014/03/16 17:13] kalikianamidori:contribute [2015/08/10 00:43] – [Build the code] kalikiana
Line 37: Line 37:
 cmake -DCMAKE_INSTALL_PREFIX=/usr .. cmake -DCMAKE_INSTALL_PREFIX=/usr ..
 make make
-sudo make install</code>+sudo make install 
 +sudo gtk-update-icon-cache /usr/share/icons/hicolor 
 +</code>
  
 //Advanced Tip: Pass "-G Ninja" to cmake to use [[http://martine.github.io/ninja/|Ninja]] instead of make (usually packaged as ninja or ninja-build).// //Advanced Tip: Pass "-G Ninja" to cmake to use [[http://martine.github.io/ninja/|Ninja]] instead of make (usually packaged as ninja or ninja-build).//
  
 If using GTK+3 you'll want to add <code bash>-DUSE_GTK3=1</code> to the cmake command line. If using GTK+3 you'll want to add <code bash>-DUSE_GTK3=1</code> to the cmake command line.
 +
 +You can build Midori using another C Compiler for example Clang. Just
 +add -DCMAKE_C_COMPILER=/path/to/compiler to the cmake arguments.
 +Then you can build following your normal procedure. Like this:
 +<code bash>cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_COMPILER=/usr/bin/clang ..
 +make</code>
  
 Midori can be **run without being installed**. Midori can be **run without being installed**.
Line 69: Line 77:
  
 <code bash>env MIDORI_DEBUG=help _build/midori/midori</code> <code bash>env MIDORI_DEBUG=help _build/midori/midori</code>
 +
 +Whilst -g is convenient you may want to use proper gdb:
 +
 +<code bash>gdb
 +file _build/midori/midori
 +run
 +
 +bt</code>
 +
 +On Windows you can open the folder where Midori is installed and double-click gdb.exe. A black command line window should appear.
 +
 +<code bash>file midori.exe
 +run
 +
 +bt</code>
  
 To verify a regression you might need to revert a particular change: To verify a regression you might need to revert a particular change: