THIS GUIDE IS WORK IN PROGRESS! Every type of feedback will be appreciate and will be very useful for me.
In order to build GEOtop on OS X, it’s necessary to install a package manager. Several package managers are available:
- MacPorts;
- Fink;
- Homebrew.
The last one is the newest and most popular of the trio. So, because I’m working on Yosemite 10.10.5, I followed this guide to install it. In the next few days I will be able to write a my own guide on this page, so we will have the complete guide here.
To download and install Homebrew run the install script on the command line as below
That’s all, now we are ready to build and install GEOtop and its dependencies.
1. Installing and building the dependencies
- PROJ4 and BOOST
In case of dynamic linking, the precompiled packages of the libraries PROJ.4 and BOOST may be installed through the package manager
- MeteoIO 2.4.2 (http://models.slf.ch/p/meteoio/)
The MeteoIO library has to be built.- REMINDER 1: GEOtop can be built only against MeteoIO 2.4.2
- REMINDER 2: Download the source code of MeteoIO, not the precompiled version
You can get the source code downloading it from the Official MeteoIO website, or through the
wget
command.
The next step is building the source code. First of all you have to install the building system: CMake
The following steps are strictly related to the building part of the MeteoIO source code.
The press
c
to configureGo to the last of one line and enable
PROJ4
flag:OFF => ON
Press
c
to configurePress again
c
to configure and theng
to generate. After pressingg
you might get a warning message but this depends on your cmake version and it’s not a problem at the moment. If you get the warning, just presse
to exit.Now you have to build the source code. It may take some minutes, if everything goes to the end without errors you have to install the built libraries.
If you get some kind of error, please write at the GEOtop users mailing lists [email protected]
2. Building GEOtop master branch
You can get the source code cloning it from the Official GitHub repository.
You might need to install git
version control system.
Then, build the source code. It’s quite similar to building MeteoIO.
Press c
to configure. The linking library mode is shown (in this specific case SHARED). Press e
to exit
Now you have to choose if using the MeteoIO interpolators or GEOtop internal routines. To do that:
ENABLE_INTERNAL_METEODISTR = OFF
it enables the MeteoIO space interpolators (DEFAULT);ENABLE_INTERNAL_METEODISTR = ON
it enables the GEOtop internal routines.
Then press c
to configure, e
to exit from the linking mode screen and g
to generate. You might get a warning. Don’t worry, press e
to exit and go on.
Now build and install the source code.
You can now test the installation changing directory and running GEOtop without creating symlinks!