= Building on Fedora / CentOS / RHEL / openSUSE = For general information, see [/wiki/Building] first. For RPM packaging, see [/wiki/Packaging]. [[BR]] {{{#!div class="box" [[Image(https://xpra.org/icons/fedora.png)]] - [[Image(https://xpra.org/icons/centos.png)]] == [http://fedoraproject.org/ Fedora] and [http://www.centos.org/ CentOS] / [https://www.redhat.com/products/enterprise-linux/ 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 \ 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 [http://www.cython.org/ 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 [http://winswitch.org/downloads/rpm-repository.html 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 }}} }}} {{{#!div class="box" [[Image(https://xpra.org/icons/opensuse.png)]] == [http://www.opensuse.org/ 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. }}} ---- {{{#!div class="box" == 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: [/browser/xpra/trunk/rpmbuild?order=name xpra/trunk/rpmbuild]. More information on the private libraries setup can be found here: #613. }}}