Version 9 (modified by 2 years ago) (diff) | ,
---|
Building on Debian and Ubuntu
For general information, see wiki/Building first.
Building
Starting with version 1.0, you no longer need to apply debian specific patches to build xpra.
Install the dependencies:
apt-get install libx11-dev libxtst-dev libxcomposite-dev libxdamage-dev \ libxkbfile-dev \ python-all-dev
- for python2 builds
apt-get install python-gobject-2-dev python-gtk2-dev cython
- for python3 builds:
apt-get install libgtk-3-dev python3-dev python3-cairo-dev python-gi-dev cython3
Make sure that your version of Cython is recent enough.
Also install some X11 utilities if not installed already:
apt-get install xauth x11-xkb-utils
Codecs:
- for video support (x264 and vpx), you should install:
apt-get install libx264-dev libvpx-dev
- for using nvenc:
apt-get install libnvidia-encode1
- with some versions, we use a private version of ffmpeg - see #1256 for details. If you wish to use your distribution's version of library instead, install:
apt-get install libavformat-dev libavcodec-dev
You may hit compilation errors if the version installed is too old. (and it often is)
- jpeg:
apt-get install libturbojpeg-dev
- webp:
apt-get install libwebp-dev
Optional:
- for html5 client:
apt-get install uglifyjs brotli libjs-jquery libjs-jquery-ui gnome-backgrounds
- python2 opengl and rendering:
apt-get install python-gtkglext1 python-opengl python-numpy python-pil
- python3 opengl and rendering:
apt-get install python3-opengl python3-numpy python3-pil
- python2 network bits:
apt-get install python-rencode python-lz4 python-dbus python-cryptography \ python-avahi python-netifaces python-yaml python-lzo
- python3 network bits:
apt-get install python3-rencode python3-lz4 python3-dbus python3-cryptography \ python3-avahi python3-netifaces python3-yaml python3-lzo
- misc python2:
apt-get install python-setproctitle python-xdg python-pyinotify python-opencv \ python-pycuda
- misc python3:
apt-get install python3-setproctitle python3-xdg python3-pyinotify python3-opencv \ python3-pycuda
- misc X11:
apt-get install libpam-dev xserver-xorg-video-dummy xvfb keyboard-configuration
- authentication modules:
apt-get install python-kerberos python-gssapi
- audio:
apt-get install gstreamer1.0-pulseaudio gstreamer1.0-alsa \ gstreamer1.0-plugins-base gstreamer1.0-plugins-good \ gstreamer1.0-plugins-ugly python-gst-1.0
- for printing:
apt-get install cups-filters cups-common cups-pdf python-cups
- for ssh:
apt-get install openssh-client sshpass python-paramiko
Packaging
You can build a quick and dirty DEB package using:
cd trunk/src/ ln -sf ../debian . debuild -us -uc -b