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
xfce:building [2024/11/23 03:30] kevinbowenxfce:building [2026/02/11 15:49] (current) – Add build instructions for meson andreldm
Line 71: Line 71:
     * gtk-layer-shell 0.7.0     * gtk-layer-shell 0.7.0
     * pkgconfig     * pkgconfig
 +    * meson (Xfce 4.21+)
     * Coffee or tea     * Coffee or tea
  
Line 88: Line 89:
 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.
  
-  * xfce4-dev-tools (only required if you build from GIT)+  * xfce4-dev-tools (only required if you build with autotools and from GIT)
   * libxfce4util   * libxfce4util
   * xfconf   * xfconf
Line 121: Line 122:
 ---- ----
  
-===== Building the packages =====+ 
 +===== Building the packages (meson) ===== 
 + 
 +<note important>This section is working in progress, it applies for building from git master and Xfce 4.21</note> 
 + 
 +Now it is finally time to start compiling the Xfce desktop. Last remaining thing is to choose an installation location. Possible examples are ''/usr'', ''/usr/local'' and ''/opt/xfce4'' for a system-wide installation or ''$HOME/local'' if you want to install in your home directory (whatever you choose, never put spaces in the name). We will refer to this location as ${PREFIX} in the code examples below! 
 + 
 +==== 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: 
 + 
 +  meson setup --prefix=${PREFIX} build && meson compile -C build && meson install -C build 
 + 
 +Specific setup options for each package can be shown with ''%%meson configure%%''. Note that most packages will see a performance benefit if passed the setup option ''%%-Ddebug=false%%''
 + 
 +However, if you want to provide backtraces or test new code, no binary stripping, no optimizations and leaving debug enabled are recommended. 
 + 
 +If you install the package in a public prefix, for example ''/usr'' or ''/usr/local'', ''meson install'' will attempt to use sudo. This way, you will be asked for the system administrator password and will have write permissions to install in those locations. 
 + 
 +[[|Back To Top]] 
 +---- 
 + 
 +===== Building the packages (autotools) ===== 
 + 
 +<note important>This section is deprecated, autotools support was removed after Xfce 4.20</note> 
 ==== Installation location and variables ==== ==== Installation location and variables ====
  
Line 181: Line 207:
 [[|Back To Top]] [[|Back To Top]]
 ---- ----
-[[:4.20:start|Back to Main Xfce 4.20 Documentation page]]+[[:start|Back to Xfce Main Documentation Page]]