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


Ignore:
Timestamp:
09/27/19 07:53:21 (3 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/RPM/Python2

    v1 v1  
     1= Building on Fedora / CentOS / RHEL / openSUSE =
     2
     3For general information, see [/wiki/Building] first.
     4For RPM packaging, see [/wiki/Packaging].
     5For 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
     14For building you will need to install:
     15{{{
     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
     20}}}
     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.
     22{{{
     23yum install Cython
     24}}}
     25
     26For picture and video encoding support, install the private libraries and their development headers from the [http://winswitch.org/downloads/rpm-repository.html repository]:
     27{{{
     28yum install ffmpeg-xpra-devel x264-xpra-devel libvpx-xpra-devel libwebp-devel
     29}}}
     30Building against the default (and often outdated) host libraries or using third-party repositories (EPEL, rpmfusion, etc) is not recommended.
     31
     32For {{{OpenGL}}} accelerated client rendering support, add this runtime dependency:
     33{{{
     34yum 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 ==
     42For building you will need to install:
     43{{{
     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
     48}}}
     49No idea which ffmpeg libraries to use, sorry.
     50}}}
     51
     52
     53----
     54
     55
     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:
     59{{{
     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
     65}}}
     66
     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.
     69}}}