Installation Packages

This page explains:

  • how to generate self sufficient installer for gofigure2 and to be able to deploy it on any machine
  • how to deal with it with CMake (advanced usage).

1. Package Generation

  • First make sure you correctly set-up your developer environment (See DeveloperSetUp and Compilation).
  • Most of packages require a recent version of CMake (>= 2.8), so we strongly recommend to install a recent version of CMake before trying to build packages.

1.1 Windows

1.1.1. NSIS

  • First install NSIS
  • Make sure when using CMake to turn on CPACK_BINARY_NSIS ON
  • build PACKAGE generates the installer to be used.

1.2 Mac

1.2.1 Command line

  • Create a build directory (for example ~/GOFIGURE2BUILD)
    $ mkdir ~/GOFIGURE2BUILD
  • Go to your build directory (for example ~/GOFIGURE2BUILD)
    $ cd ~/GOFIGURE2BUILD
  • Call ccmake as argument you should provide the trunk directory of the location where you have checked out gofigure2 source (e.g. ~/SVNROOT/gofigure2/trunk/)
    $ ccmake ~/SVNROOT/gofigure2/trunk/
  • Make sure when using CMake to turn on CPACK_BINARY_DRAGNDROP ON
  • build gofigure and the package's target
    # make package

or

$ sudo make package

Note that sudo is a special (and permissive) command to run a command as root (administrator privilege). See http://en.wikipedia.org/wiki/Sudo for reference.

1.2.2 Verifying the executable type (64 bit, 32 bit...)

go to the executable directory, inside the generated package :

cd path/to/package/Contents/MacOs

and use the command :

file name_of_executable

1.3 Linux

1.3.1 Debian Package

  • Create a build directory (for example ~/GOFIGURE2BUILD)
    $ mkdir ~/GOFIGURE2BUILD
  • Go to your build directory (for example ~/GOFIGURE2BUILD)
    $ cd ~/GOFIGURE2BUILD
  • Call ccmake as argument you should provide the trunk directory of the location where you have checked out gofigure2 source (e.g. ~/SVNROOT/gofigure2/trunk/)
    $ ccmake ~/SVNROOT/gofigure2/trunk/
  • Turn ON CPACK_BINARY_DEB
  • build package
    # make package

1.3.2 RPM Package

  • First check the version of rpmbuild
    rpmbuild --version
  • If rpmbuild's version is above 4.6 (>= 4.6) and cmake version is 2.6.x, you need to check the following page http://public.kitware.com/Bug/view.php?id=8967 and apply the patch. (NOTE: This issue has been definitively fixed in cmake 2.8 (25th Sept 2009)!!!)
  • Create a build directory (for example ~/GOFIGURE2BUILD)
    $ mkdir ~/GOFIGURE2BUILD
  • Go to your build directory (for example ~/GOFIGURE2BUILD)
    $ cd ~/GOFIGURE2BUILD
  • Call ccmake as argument you should provide the trunk directory of the location where you have checked out gofigure2 source (e.g. ~/SVNROOT/gofigure2/trunk/)
    $ ccmake ~/SVNROOT/gofigure2/trunk/
  • Turn ON CPACK_BINARY_RPM
    # make package

1.3.3 DEB Package

Not yet tested!!!

2. Packaging with CMake/CPack