xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Version 4 (modified by Antoine Martin, 5 years ago) (diff)


Building on Fedora / CentOS / RHEL / openSUSE

For general information, see wiki/Building first.

For RPM packaging, see wiki/Packaging.

http://xpra.org/icons/fedora.png - http://xpra.org/icons/centos.png

Fedora and CentOS / RHEL Build Dependencies

For building you will need to install:

yum install gcc python-devel libXtst-devel libXdamage-devel \
	  	gtk2-devel pygtk2-devel pygobject2-devel libxkbfile-devel \
yum install xorg-x11-server-Xorg xorg-x11-drv-dummy xorg-x11-xauth xorg-x11-xkb-utils

Fedora and RHEL7/CentOS7 users can install Cython via yum, the repositories include a more up to date version of Cython for all supported distributions.

yum install Cython

For picture and video encoding support, install the private libraries and their development headers from the repository:

yum install ffmpeg-xpra-devel x264-xpra-devel libvpx-xpra-devel libwebp-devel

Building against the default (and often outdated) host libraries or using third-party repositories (EPEL, rpmfusion, etc) is not recommended.

For OpenGL accelerated client rendering support, add this runtime dependency:

yum install PyOpenGL PyOpenGL-accelerate pygtkglext


openSUSE Build Dependencies

For building you will need to install:

zypper install gcc python-cython python-devel \
		gtk2-devel python-gtk-devel python-gobject2-devel
zypper install libXrandr-devel libXtst-devel libXcomposite-devel 
zypper install xorg-x11-server-extra xorg-x11-xauth xkeyboard-config

No idea which ffmpeg libraries to use, sorry.

Build Commands

When building against those private libraries, you must point the compiler and linker to their location, ie for 64-bit:

python3 ./setup.py install \
    --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig
    --without-html5 --without-printing
python2 ./setup.py install \
    --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig

The spec files used for building all the RPM packages found in the repositories are here: xpra/trunk/rpmbuild. More information on the private libraries setup can be found here: #613.