Version 7 (modified by 3 years ago) (diff) | ,
---|
Building on Fedora / CentOS / RHEL / openSUSE
For general information, see wiki/Building first.
For RPM packaging, see wiki/Packaging.
For Python2, see wiki/Building/RPM/Python2.
Fedora and CentOS / RHEL Build Dependencies
For building you will need to install:
yum install gcc gcc-c++ \ libXtst-devel libXdamage-devel libxkbfile-devel \ python3-devel python3-Cython \ python3-gobject pygobject3-devel python3-cairo-devel \ gtk3-devel gobject-introspection-devel \ redhat-rpm-config 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
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
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
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.