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.
- Linux instructions using CMake <-- Uses CMakeLists.txt scripts to configure CMake generated Makefiles.
- 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.
- Windows instructions using CMake <-- Uses CMakeLists.txt scripts to configure CMake generated Makefiles.
- 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:
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'
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.
Change into the first temporary directory created above
Get the "One Big Build Script":
curl --insecure https://svn.physiomeproject.org/svn/cmiss/cmake/trunk/cmgui/CMakeLists.txt --output CMakeLists.txt
Change into the build temporary directory (probably 'setup/build')
Configure the build to suit using ccmake:
ccmake ../
Start the build:
make
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!