xpra icon
Bug tracker and wiki

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

Changes between Initial Version and Version 1 of Building/RPM/Python2

09/27/19 07:53:21 (3 years ago)
Antoine Martin



  • Building/RPM/Python2

    v1 v1  
     1= Building on Fedora / CentOS / RHEL / openSUSE =
     3For general information, see [/wiki/Building] first.
     4For RPM packaging, see [/wiki/Packaging].
     5For Python3, see [/wiki/Building/RPM].
     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 ==
     14For building you will need to install:
     16yum install gcc python-devel libXtst-devel libXdamage-devel \
     17                gtk2-devel pygtk2-devel pygobject2-devel libxkbfile-devel \
     18                redhat-rpm-config
     19yum install xorg-x11-server-Xorg xorg-x11-drv-dummy xorg-x11-xauth xorg-x11-xkb-utils
     21Fedora 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.
     23yum install Cython
     26For picture and video encoding support, install the private libraries and their development headers from the [http://winswitch.org/downloads/rpm-repository.html repository]:
     28yum install ffmpeg-xpra-devel x264-xpra-devel libvpx-xpra-devel libwebp-devel
     30Building against the default (and often outdated) host libraries or using third-party repositories (EPEL, rpmfusion, etc) is not recommended.
     32For {{{OpenGL}}} accelerated client rendering support, add this runtime dependency:
     34yum install PyOpenGL PyOpenGL-accelerate pygtkglext
     39{{{#!div class="box"
     40[[Image(https://xpra.org/icons/opensuse.png, link=https://opensuse.org)]]
     41== [http://www.opensuse.org/ openSUSE] Build Dependencies ==
     42For building you will need to install:
     44zypper install gcc python-cython python-devel \
     45                gtk2-devel python-gtk-devel python-gobject2-devel
     46zypper install libXrandr-devel libXtst-devel libXcomposite-devel
     47zypper install xorg-x11-server-extra xorg-x11-xauth xkeyboard-config
     49No idea which ffmpeg libraries to use, sorry.
     56{{{#!div class="box"
     57== Build Commands ==
     58When building against those private libraries, you must point the compiler and linker to their location, ie for 64-bit:
     60python3 ./setup.py install \
     61    --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig
     62    --without-html5 --without-printing
     63python2 ./setup.py install \
     64    --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig
     67The spec files used for building all the RPM packages found in the repositories are here: [/browser/xpra/trunk/rpmbuild?order=name xpra/trunk/rpmbuild].
     68More information on the private libraries setup can be found here: #613.