User Tools

Site Tools


wiki:development:build-howto-macos:x2goclient

This is an old revision of the document!


Build X2GoClient on MacOS

wiki-writing-todo (FIXME)

Variables

This document makes use of several variables to address paths in a generic, but distinct way. They are not meant to be used via shell, but for human parsing. No program of the x2go suite actually uses them for anything. You may “set” them to whatever value you want to (in your head), just don't change them half-way through the building process. The “default value” is merely a suggestion.

Name Description Default value
$X2GO_BASE_DIR Parent directory of the x2goclient source tree /usr/src
$X2GO_CLIENT_DIR Directory containing the x2goclient source tree $X2GO_BASE_DIR/x2goclient-git
$X2GO_DIST_SRC Directory containing x2goclient dependencies source trees $X2GO_CLIENT_DIR/dist
$X2GO_DIST_INST Installation directory of x2goclient dependencies $X2GO_DIST_SRC/inst
$NX_BASE_DIR Common NX directory /usr/src/NX
$NX_LIBS_SRC Directory containing the NX libs source tree $NX_BASE_DIR/nx-libs-git
$NX_DIST_SRC Directory containing NX libs dependencies source trees $NX_BASE_DIR/dist
$NX_DIST_INST Installation directory of NX libs dependencies $NX_DIST_SRC/inst

Get the sources

x2goclient

Prepare $X2GO_BASE_DIR if need be.

# mkdir -p "$X2GO_BASE_DIR"
# cd "$X2GO_BASE_DIR"

Fetch the x2goclient sources.

# git clone git://code.x2go.org/x2goclient.git x2goclient-git

Prepare the dependencies directories.

# mkdir "$X2GO_DIST_SRC"
# mkdir "$X2GO_DIST_INST"

NX libraries

Prepare $NX_BASE_DIR.

# mkdir -p "$NX_BASE_DIR"
# cd "$NX_BASE_DIR"

Fetch the NX libraries sources.

# git clone git://code.x2go.org/nx-libs.git nx-libs-git

Prepare the dependencies directories.

# mkdir "$NX_DIST_SRC"
# mkdir "$NX_DIST_INST"

Dependencies

  • for optional sound support: PulseAudio
  • build dependencies:
    • Apple Developer SDK
    • Qt 4
    • libssh >= 0.4.7
    • libjpeg or libjpeg-turbo
    • libpng
    • nx-binaries

Qt4

Qt4 is a hard dependency. You can either download and install the SDK package for Mac OS X provided by Nokia, or, if you want to redistribute/deploy x2goclient on other machines, build your own version from source.

If you decide to build from source, follow these instructions, else skip to the NX part.

Download

Download the source package from the official Qt site (.tar.gz recommended.)

Put it into $X2GO_DIST_SRC.

You need qt4 for x2goclient. Follow the installation instructions at BLFS.

Run the following commands as a regular, non-root user. You'll need the root password to install them.

1. FIXME → nxproxy has to be installed from nx-libs.git Install nxproxy from git

$ git clone git://code.x2go.org/nxproxy
$ cd nxproxy
$ autoconf 
$ ./configure --prefix=/usr
$ make
$ su -c "make install"

2a. Install x2goclient from git

$ git clone git://code.x2go.org/x2goclient
$ cd x2goclient
$ export PREFIX=/usr
$ make build_client && make install_client

2b. Also build+install x2goplugin

$ make build_plugin && make install_plugin
wiki/development/build-howto-macos/x2goclient.1340709856.txt.gz · Last modified: 2013/03/08 13:31 (external edit)