To install the CMake software, you have two options:
- You want to use cmake in command line and put your arguments manually.
- You want a nice GUI
For the second
sudo apt-get install cmake
sudo apt-get install cmake cmake-curses-gui
For Ubuntu 12.04 and higher, OTB development libraries are available as Debian
packages through APT repositories. Since release 3.14.1, they are available in the
You can add it by using this command lines:
After you can run:
sudo aptitude install add-apt-repository sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update
Other useful OTB packages are available. For more information click here, but for our library this command is enough.
sudo apt-get install libotb-dev
Then I suggest to create a directory where you will build the grm:
git clone http://tully.ups-tlse.fr/lassallep/grm/
and go to this directory:
First you have to generate the Makefile with cmake:
The previous commands works automatically if you have installed the otb development libraries from the package as I described before (in a standard way). If you have compiled from the source then you have to give the right otb directory path (where the OTBCMake.config is located).
Once the Makefile generated just run:
If everything is fine, you should have the GRM library in the sub-directory Code/ and the executable file into Applications/
I invite you to go to the next tutorial to learn how to segment an image.