Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
xfce:building [2012/03/30 12:40] – [Package specific dependencies] nick | xfce:building [2019/06/22 12:04] – [Xfce's dependency chain] skunnyk | ||
---|---|---|---|
Line 3: | Line 3: | ||
To compile a complete Xfce desktop from source requires some information about the dependency chain and the various configure options available in each module. This page will describe this in detail, so you can compile your own Xfce desktop; both system wide as well as in your $HOME directory. | To compile a complete Xfce desktop from source requires some information about the dependency chain and the various configure options available in each module. This page will describe this in detail, so you can compile your own Xfce desktop; both system wide as well as in your $HOME directory. | ||
- | ===== Version ===== | + | ====== Version |
- | First you need to decide which version of Xfce you want to compile. | + | First you will need to decide |
- | The latest releases available can be found on the [[http:// | + | The latest releases available can be found on the [[http:// |
- | ===== Source ===== | + | ====== Source |
- | If you' | + | Once you have decided which version |
- | If your not sure what to choose: easiest | + | If your are not sure what to choose, it is easiest |
- | ==== Released packages ==== | + | ===== Released packages |
- | Xfce packages have two types of releases. Click the links to open the the download locations. | + | Xfce packages have two types of releases. Click the links, below, |
- | * [[http:// | + | * [[http:// |
* [[http:// | * [[http:// | ||
- | ==== From the code repository ==== | + | ===== From the code repository |
- | For the latest code you need to make local copies of the GIT repositories, this is the place where developers submit their code. If you decide to use GIT, try to use the same branch for all the packages to avoid dependency version problems. | + | For the latest code, you need to make local copies of the [[https:// |
- | You first need to make clones of each GIT repository, like the command below, where '' | + | You first need to make clones of each GIT repository, like the command below, where '' |
- | git clone git:// | + | git clone https:// |
- | After the repository is cloned you need to choose which branch you want to compile. By default the '' | + | After the repository is cloned, you will need to choose which branch you want to compile. By default, the '' |
- | To switch to another branch ('' | + | To switch to another branch ('' |
- | git checkout --track origin/ | + | git checkout --track origin/ |
- | After this you can update your local copy of the repository with git pull and switch to another branch with '' | + | After this, you can update your local copy of the repository with git pull and switch to another branch with '' |
+ | ====== Dependencies ====== | ||
- | ===== Dependencies ===== | + | ===== Build requirements |
- | + | ||
- | ==== Build requirements ==== | + | |
Before you can start compiling, you need a couple of packages that are required to compile Xfce. Use your distributions package manager to install those packages. Additional packages are required too for some modules, but we'll get to that later. | Before you can start compiling, you need a couple of packages that are required to compile Xfce. Use your distributions package manager to install those packages. Additional packages are required too for some modules, but we'll get to that later. | ||
Line 46: | Line 45: | ||
* [[http:// | * [[http:// | ||
* 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 | ||
+ | * pkgconfig | ||
+ | * Coffee or tea | ||
+ | |||
+ | |||
+ | For history, here are the versions needed for older xfce releases, which are not supported anymore | ||
+ | * 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 | ||
* Xfce 4.6 requires Gtk+ 2.10 and Glib 2.12 | * Xfce 4.6 requires Gtk+ 2.10 and Glib 2.12 | ||
- | * pkgconfig | ||
- | * Coffee | ||
- | ==== Xfce's dependency chain ==== | + | |
+ | ===== Xfce's dependency chain ===== | ||
The Xfce packages need to be built in a specific order. If you don't follow this, compile options might not be available or the configure stage will abort because of missing dependencies. | The Xfce packages need to be built in a specific order. If you don't follow this, compile options might not be available or the configure stage will abort because of missing dependencies. | ||
Line 58: | Line 64: | ||
* libxfce4util | * libxfce4util | ||
* xfconf | * xfconf | ||
- | * libxfce4ui | + | * libxfce4ui |
- | * exo | + | * garcon, |
- | * xfce4-panel | + | |
* thunar | * thunar | ||
- | * xfce4-settings, | + | * xfce4-panel, |
- | ==== Package specific dependencies ==== | + | ===== Package specific dependencies |
Some core packages in Xfce have additional or optional dependencies, | Some core packages in Xfce have additional or optional dependencies, | ||
Line 70: | Line 75: | ||
<note tip>Note that some of the package-names may vary between distributions.</ | <note tip>Note that some of the package-names may vary between distributions.</ | ||
- | ^ Package | + | | ^ Dependency(-ies) ^ Optional Dependency(-ies) ^ |
- | | xfce4-dev-tools | autoconf, automake, intltool, pkgconfig | | | + | ^ xfce4-dev-tools | autoconf, automake, intltool, pkgconfig | | |
- | | libxfce4util | glib ((new in 4.10, was gobject in previous releaes)) | | | + | ^ libxfce4util | glib ((new in 4.10, was gobject in previous releaes)) | | |
- | | xfconf | libxfce4util, | + | ^ xfconf | libxfce4util, |
- | | libxfce4ui | libxfce4util, | + | ^ libxfce4ui | libxfce4util, |
- | | garcon | gio, libxfce4util ((new dependency since 0.1.9)) | | | + | ^ garcon | gio, libxfce4util ((new dependency since 0.1.9)) | | |
- | | libxfcegui4 ((deprecated, | + | ^ libxfcegui4 ((deprecated, |
- | | exo | libxfce4util, | + | ^ exo | libxfce4util, |
- | | xfce4-panel | libxfce4ui, exo, garcon, libwnck | libstartup-notification | | + | ^ xfce4-panel | libxfce4ui, exo, garcon, libwnck | libstartup-notification | |
- | | thunar | libxfce4ui, exo, libpng, gtk+, glib | libexif, dbus-glib, gconf, libstartup-notification, | + | ^ thunar | libxfce4ui, exo, libpng, gtk+, glib | libexif, dbus-glib, gconf, libnotify, libstartup-notification, |
- | | xfce4-settings | libxfce4ui, exo, xfconf, dbus-glib, libXi, libXrandr | libXcursor, libnotify | | + | ^ xfce4-settings | libxfce4ui, exo, xfconf, dbus-glib, libXi, libXrandr | libXcursor, libnotify | |
- | | xfce4-session | libxfce4ui, perl-xml-parser, | + | ^ xfce4-session | libxfce4ui, perl-xml-parser, |
- | | xfwm4 | libxfce4util, | + | ^ xfwm4 | libxfce4util, |
- | | 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</ |
- | | 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) | |
- | ===== Building ===== | + | |
- | ==== Installation location and variables ==== | + | ====== Building ====== |
+ | |||
+ | ===== Installation location and variables | ||
Now it is finally time to start compiling the Xfce desktop. Last remaining thing is to choose an installation location. Possible examples are ''/ | Now it is finally time to start compiling the Xfce desktop. Last remaining thing is to choose an installation location. Possible examples are ''/ | ||
Line 101: | Line 107: | ||
export CFLAGS=" | export CFLAGS=" | ||
- | | + | |
- | ==== Compiling | + | If you want a debugging environment, |
- | Next step is compiling the various packages following the dependency chain above. If you have downloaded the tarballs, you need to unpack them before going on. Inside each package directory you should run the following command: | + | export CFLAGS="" |
+ | ===== Compiling and installing ===== | ||
+ | |||
+ | Next step is compiling the various packages following the dependency chain above. If you have downloaded the tarballs, you will need to unpack them before going on. Inside each package directory you should run the following command: | ||
./configure --prefix=${PREFIX} && make && make install | ./configure --prefix=${PREFIX} && make && make install | ||
Line 110: | Line 119: | ||
To build from GIT you need to install the xfce4-dev-tools package first, all other packages should be installed with this command: | To build from GIT you need to install the xfce4-dev-tools package first, all other packages should be installed with this command: | ||
- | ./ | + | ./ |
+ | |||
+ | Specific configure options for each package can be shown with '' | ||
+ | |||
+ | However, if you want to provide backtraces or test new code, no '' | ||
+ | |||
+ | < | ||
+ | |||
+ | If you install the package in a public prefix, for example ''/ | ||
+ | |||
+ | sudo make install | ||
+ | |||
+ | ==== Debug Levels ==== | ||
+ | |||
+ | Most Xfce modules use the m4 macro // | ||
- | Specific configure options for each package can be shown with '' | + | ? 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 '' | ||
+ | ? yes | ||
+ | ! A number of '' | ||
+ | ? full | ||
+ | ! Same as the level above, including | ||
- | ===== Help ===== | + | ====== Help ====== |
Hopefully everything went fine after reading this guide. If you still have problems or questions you can ask on the [[http:// | Hopefully everything went fine after reading this guide. If you still have problems or questions you can ask on the [[http:// |