Personal tools
You are here: Home / cmgui / Wiki / Building Cmgui from source
Navigation
Log in


Forgot your password?
 

Building Cmgui from source

There are specific build instructions for the following operating systems.

GNU/Linux

For GNU/Linux systems there are two methods for building Cmgui from source. For instructions on the different methods follow the appropriate links below.

  1. Linux instructions using CMake <-- Uses CMakeLists.txt scripts to configure CMake generated Makefiles.
  2. Linux instructions using make <-- Uses Cmgui's Makefile scripts directly.

Windows

For Windows systems there are two methods for building Cmgui from source. For instructions on the different methods follow the appropriate links below.

  1. Windows instructions using CMake <-- Uses CMakeLists.txt scripts to configure CMake generated Makefiles.
  2. Windows instructions using Cygwin <-- Uses Cmgui's Makefile scripts directly.

The One Big Build Script

There is also the "One Big Build Script" tm which will attempt to build all the dependencies of Cmgui and configure a build directory for you.

To use this method you need to:

  1. Set the environment variable CMISS_ROOT to a location on your hard drive, for:

    • on Windows I set CMISS_ROOT to 'd:cmiss'
    • on Linux I set CMISS_ROOT to '$HOME/cmiss'
    • on Mac I set CMISS_ROOT to '$HOME/cmiss'
  2. Create a temporary directory, I usually call it 'setup', and a build subdirectory like so 'setup/build'. These directories and their contents can be deleted when the build has finished.

  3. Change into the first temporary directory created above

  4. Get the "One Big Build Script":

    curl --insecure https://svn.physiomeproject.org/svn/cmiss/cmake/trunk/cmgui/CMakeLists.txt --output CMakeLists.txt
    
  5. Change into the build temporary directory (probably 'setup/build')

  6. Configure the build to suit using ccmake:

    ccmake ../
    
  7. Start the build:

    make
    
  8. Wait ... the length of time is dependent on the speed of your system

You will need:

  • svn
  • a build toolchain
  • curl
  • cmake >= version 2.8.2

What you get:

In the end you should end up with a directory tree something like this under CMISS_ROOT:

.
|--build
|  |-- cmgui
|  |-- perl_interpreter_release
|  `--third_party_release
|-- cmake
|  |-- cmgui
|  `-- Modules
|-- local
|  `-- lib
`-- src
    |-- cmgui
    |-- perl_interpreter
    `-- third_party

Finally:

Now you are ready to build Cmgui. Change into ${CMISS_ROOT}/build/cmgui and:

make

That should be it!