| 1 | = Building on Fedora / CentOS / RHEL / openSUSE = |
| 2 | |
| 3 | For general information, see [/wiki/Building] first. |
| 4 | For RPM packaging, see [/wiki/Packaging]. |
| 5 | For Python3, see [/wiki/Building/RPM]. |
| 6 | |
| 7 | [[BR]] |
| 8 | |
| 9 | |
| 10 | {{{#!div class="box" |
| 11 | [[Image(https://xpra.org/icons/fedora.png, link=https://getfedora.org/)]] - [[Image(https://xpra.org/icons/centos.png, link=https://centos.org)]] |
| 12 | == [http://fedoraproject.org/ Fedora] and [http://www.centos.org/ CentOS] / [https://www.redhat.com/products/enterprise-linux/ RHEL] Build Dependencies == |
| 13 | |
| 14 | For building you will need to install: |
| 15 | {{{ |
| 16 | yum install gcc python-devel libXtst-devel libXdamage-devel \ |
| 17 | gtk2-devel pygtk2-devel pygobject2-devel libxkbfile-devel \ |
| 18 | redhat-rpm-config |
| 19 | yum install xorg-x11-server-Xorg xorg-x11-drv-dummy xorg-x11-xauth xorg-x11-xkb-utils |
| 20 | }}} |
| 21 | Fedora and {{{RHEL7}}}/{{{CentOS7}}} users can install [http://www.cython.org/ Cython] via yum, the xpra repositories include a more up to date version of Cython for all supported distributions. |
| 22 | {{{ |
| 23 | yum install Cython |
| 24 | }}} |
| 25 | |
| 26 | For picture and video encoding support, install the private libraries and their development headers from the [http://winswitch.org/downloads/rpm-repository.html repository]: |
| 27 | {{{ |
| 28 | yum install ffmpeg-xpra-devel x264-xpra-devel libvpx-xpra-devel libwebp-devel |
| 29 | }}} |
| 30 | Building against the default (and often outdated) host libraries or using third-party repositories (EPEL, rpmfusion, etc) is not recommended. |
| 31 | |
| 32 | For {{{OpenGL}}} accelerated client rendering support, add this runtime dependency: |
| 33 | {{{ |
| 34 | yum install PyOpenGL PyOpenGL-accelerate pygtkglext |
| 35 | }}} |
| 36 | }}} |
| 37 | |
| 38 | |
| 39 | {{{#!div class="box" |
| 40 | [[Image(https://xpra.org/icons/opensuse.png, link=https://opensuse.org)]] |
| 41 | == [http://www.opensuse.org/ openSUSE] Build Dependencies == |
| 42 | For building you will need to install: |
| 43 | {{{ |
| 44 | zypper install gcc python-cython python-devel \ |
| 45 | gtk2-devel python-gtk-devel python-gobject2-devel |
| 46 | zypper install libXrandr-devel libXtst-devel libXcomposite-devel |
| 47 | zypper install xorg-x11-server-extra xorg-x11-xauth xkeyboard-config |
| 48 | }}} |
| 49 | No idea which ffmpeg libraries to use, sorry. |
| 50 | }}} |
| 51 | |
| 52 | |
| 53 | ---- |
| 54 | |
| 55 | |
| 56 | {{{#!div class="box" |
| 57 | == Build Commands == |
| 58 | When building against those private libraries, you must point the compiler and linker to their location, ie for 64-bit: |
| 59 | {{{ |
| 60 | python3 ./setup.py install \ |
| 61 | --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig |
| 62 | --without-html5 --without-printing |
| 63 | python2 ./setup.py install \ |
| 64 | --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig |
| 65 | }}} |
| 66 | |
| 67 | 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]. |
| 68 | More information on the private libraries setup can be found here: #613. |
| 69 | }}} |