Xfce Wiki

Sub domains
 

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
xfce:building [2013/03/15 05:20]
kevinbowen [Compiling and installing] grammar improvements
xfce:building [2018/01/03 18:37] (current)
skunnyk [Build requirements]
Line 45: Line 45:
   * [[http://​en.wikipedia.org/​wiki/​GNU_toolchain|A working GNU toolchain]]   * [[http://​en.wikipedia.org/​wiki/​GNU_toolchain|A working GNU toolchain]]
   * Gtk+ and Glib headers, in some distributions called the -devel packages ​   * Gtk+ and Glib headers, in some distributions called the -devel packages ​
 +    * Xfce 4.14 requires Gtk+ 3.22 and Glib 2.42
 +    * Xfce 4.12 requires Gtk+ 2.24 and Glib 2.30
     * Xfce 4.10 requires Gtk+ 2.20 and Glib 2.24     * Xfce 4.10 requires Gtk+ 2.20 and Glib 2.24
     * Xfce 4.8 requires Gtk+ 2.14 and Glib 2.20     * Xfce 4.8 requires Gtk+ 2.14 and Glib 2.20
Line 85: Line 87:
 ^ xfdesktop | libxfce4ui, xfconf, libwnck, exo ((was optional in 4.8)) | thunarx, garcon, libnotify | ^ xfdesktop | libxfce4ui, xfconf, libwnck, exo ((was optional in 4.8)) | thunarx, garcon, libnotify |
 ^ xfce4-appfinder | libxfce4ui, garcon, gio ((new dependency since 4.10)) | | ^ xfce4-appfinder | libxfce4ui, garcon, gio ((new dependency since 4.10)) | |
-^ xfce-utils ((deprecated fince Xfce 4.10, file conflicts with other packages)) | libxfce4ui | dbus-glib |+<del>xfce-utils</​del> ​((deprecated fince Xfce 4.10, file conflicts with other packages)) | libxfce4ui | dbus-glib |
 ^ gtk-xfce-engine-2 | gtk+ | | ^ gtk-xfce-engine-2 | gtk+ | |
 ^ tumbler | dbus-glib, gio, gmodule, gdk-pixbuf | freetype-config (fonts), jpeg (jpeg thumbnails from exif), libffmpegthumbnailer (video), gstreamer-0.10 (video), poppler-glib (pdf), libgsf (odf), libopenraw-gnome (various raw images) | ^ tumbler | dbus-glib, gio, gmodule, gdk-pixbuf | freetype-config (fonts), jpeg (jpeg thumbnails from exif), libffmpegthumbnailer (video), gstreamer-0.10 (video), poppler-glib (pdf), libgsf (odf), libopenraw-gnome (various raw images) |
Line 102: Line 104:
  
   export CFLAGS="​-O2 -pipe"   export CFLAGS="​-O2 -pipe"
-  ​+  
 +If you want a debugging environment,​ unset the CFLAGS and use ''​%%--enable-debug%%'',​ see below for the different debug levels. 
 + 
 +  export CFLAGS=""​
 ===== Compiling and installing ===== ===== Compiling and installing =====
  
Line 122: Line 127:
  
   sudo make install   sudo make install
 +
 +==== Debug Levels ====
 +
 +Most Xfce modules use the m4 macro //​XDT_FEATURE_DEBUG//​ to manage the debug compiler levels. If so there are a number of options possible for ''​%%--enable-debug=%%''​
 +
 +? no
 +! Cast checks and asserts in the Glib macros are disabled, this might be a tad faster, but it can results in segfaults and unexpected crashes.
 +? minimum
 +! This is the same as ''​%%--disable-debug%%''​. No additional compiler options are added, but checks in Glib are not disabled. This is the recommended level for users and distributions. ​
 +? yes
 +! A number of ''​$CFLAGS''​ are set to check the code for different errors. During configure you'll see all the options are tested to avoid binaries that do not work.
 +? full
 +! Same as the level above, including ''​-Werror''​ so the compilers aborts during compiler errors. The compiler will also generate binaries with debug information suitable for [[:​contribute:​bugs:​|backtraces]] and memory checks. This is the recommended level for developers or users who want to report bugs.
  
 ====== Help ====== ====== Help ======