[X2Go-Commits] page changed: wiki:development:build-howto-macos:x2goclient

wiki-admin at x2go.org wiki-admin at x2go.org
Thu Sep 26 10:45:50 CEST 2013


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2013/09/26 08:45
Browser     : Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 Iceweasel/23.0
IP-Address  : 134.245.254.47
Hostname    : m-047.informatik.uni-kiel.de
Old Revision: http://wiki.x2go.org/doku.php/wiki:development:build-howto-macos:x2goclient?rev=1380184346
New Revision: http://wiki.x2go.org/doku.php/wiki:development:build-howto-macos:x2goclient
Edit Summary: 
User        : sunweaver

@@ -1,8 +1,46 @@
  ====== Build X2GoClient on MacOS ======
  
+ ===== Build X2Go Client using Mac Ports =====
  
- ===== Variables =====
+ As X2Go Client is already in Mac Ports (thanks to Clemens Lang) it is possible to install all dependencies via Mac Ports.
+ 
+ **Steps:**
+ 
+   - Install Mac Ports on your Mac OS system
+   - Take a look at the dependency list (in a terminal shell)
+   - And install those dependencies
+ <code>
+ $ port echo depof:x2goclient
+ $ sudo port install
depof:x2goclient
+ </code>
+ 
+ Once the dependencies are installed, you need to install dylibbundler and tweak its file permissions:
+ 
+ <code>
+ $ sudo port install dylibbundler
+ $ sudo chmod u+w /opt/local/lib/libcrypto.1.0.0.dylib /opt/local/lib/libssl.1.0.0.dylib
+ </code>
+ 
+ If you omit the file permission tweak, dylibbundler will fail.
+ 
+ At last, checkout X2Go Client from Git:
+ <code>
+ $ git clone git://code.x2go.org/x2goclient.git
+ </code>
+ 
+ If you want to build a specific version of X2Go Client, select that version with ''git checkout <version>''. If you want to look around what versions are available, use ''git tag'' which will present you a list of valid version tags to use for checkout.
+       
+ In the X2Go Client source directory, simply run the ''macbuild.sh'' script:
+ 
+ <code>
+ $ ./macbuild.sh
+ </code>
+ 
+      
+ ===== Build X2Go Client from Scratch (w/o Mac Ports) =====
+                    
+ ==== 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 ^
@@ -14,11 +52,11 @@
  | $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 =====
+ ==== Get the sources ====
  
- ==== x2goclient ====
+ === x2goclient ===
  
  Prepare $X2GO_BASE_DIR if need be.
  
  <code>
@@ -39,9 +77,9 @@
  # mkdir "$X2GO_DIST_INST"
  </code>
  
  
- ==== NX libraries ====
+ === NX libraries ===
  
  Prepare
$NX_BASE_DIR.
  
  <code>
@@ -61,9 +99,9 @@
  # mkdir "$NX_DIST_SRC"
  # mkdir "$NX_DIST_INST"
  </code>
  
- ===== Dependencies =====
+ ==== Dependencies ====
  
    * for optional sound support: PulseAudio
    * build dependencies: 
      * Apple Developer SDK
@@ -72,16 +110,16 @@
      * libjpeg or libjpeg-turbo
      * libpng
      * nx-binaries
  
- ==== Qt4 ====
+ === Qt4 ===
  
  Qt4 is a hard dependency.
  You can either download and install the [[http://qt.nokia.com/downloads|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 ==
  
  Download the source package from [[http://qt.nokia.com/downloads/downloads#qt-lib|the official Qt site]] (.tar.gz recommended.)
  
  Put it into $X2GO_DIST_SRC.
@@ -93,9 +131,9 @@
  # tar -xzvf qt...tar.gz
  # cd
qt-...
  </code>
  
- === Configuration ===
+ == Configuration ==
  
  Configure the qt source tree. We will disable unused stuff and build universal (for deployment.)
  
  If you don't intend to deploy x2goclient, you can remove all -arch parameters and further speed up compilation.
@@ -110,9 +148,9 @@
  
  If everything went through cleanly, proceed to the next step.
  
  
- === Building ===
+ == Building ==
  
  Run make and pray. Pray strongly. To whomever or whatever you want, just pray.
  
  <code>
@@ -125,15 +163,15 @@
  # make install
  </code>
  
  
- ==== libssh ====
+ === libssh ===
  
- === Dependencies ===
+ == Dependencies ==
  
  libssh uses CMake to configure the source build. Please download and install CMake from [[http://cmake.org/cmake/resources/software.html|the official CMake repository]].
  
- === Download ===
+ == Download ==
  
  Download the source package from [[http://www.libssh.org/files/|the libssh repository]]. Note that currently 0.5.2 is buggy, at
least on Mac OS X. Please use 0.5.1 for now.
  
  Put it into $X2GO_DIST_SRC.
@@ -144,9 +182,9 @@
  # tar -xzvf libssh-...tar.gz
  # cd libssh-...
  </code>
  
- === Configuration ===
+ == Configuration ==
  
  Create a build subdir.
  
  <code>
@@ -161,9 +199,9 @@
  <code>
  # cmake -D "CMAKE_BUILD_TYPE:STRING=Release" -D "CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.2" -D "CMAKE_CXX_FLAGS:STRING=-pipe -Wall -Wextra" -D "CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG" -D "CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-4.2" -D "CMAKE_C_FLAGS:STRING=-pipe -Wall -Wextra" -D "CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG" -D "CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON" -D "CMAKE_INSTALL_PREFIX:PATH=$X2GO_DIST_INST" -D "CMAKE_OSX_ARCHITECTURES:STRING=i386 -arch x86_64 -arch ppc" -D "CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.5" -D "CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.5.sdk" -D "CMAKE_VERBOSE_MAKEFILE:BOOL=ON" -D "CMAKE_SKIP_RPATH:BOOL=NO" -D "CPACK_BINARY_BUNDLE:BOOL=OFF" -D
"CPACK_BINARY_OSXX11:BOOL=OFF" -D "WITH_BENCHMARKS:BOOL=OFF" -D "WITH_CLIENT_TESTING:BOOL=OFF" -D "WITH_DEBUG_CALLTRACE:BOOL=ON" -D "WITH_DEBUG_CRYPTO:BOOL=OFF" -D "WITH_GCRYPT:BOOL=OFF" -D "WITH_INTERNAL_DOC:BOOL=OFF" -D "WITH_LIBZ:BOOL=ON" -D "WITH_PCAP:BOOL=OFF" -D "WITH_SERVER:BOOL=OFF" -D "WITH_SFTP:BOOL=ON" -D "WITH_SSH1:BOOL=ON" -D "WITH_STATIC_LIB:BOOL=ON" -D "WITH_TESTING:BOOL=OFF"
  </code>
  
- === Building ===
+ == Building ==
  
  Build the source.
  
  <code>



-- 
This mail was generated by DokuWiki at
http://wiki.x2go.org/




More information about the x2go-commits mailing list