# Check the environment compiler: You are suppose to have installed the appropriate Developers tools (search for them in the App store). Be sure that you also download the command line tools.
#For Mac OS use Homebrew (which needs to be installed first)
#Then write at the console, for instance for Make:
brew install make
#For any other package:
brew install subversion
brew install gdal
brew install proj
brew install doxygen
#install CMake from CMake website
# After having selected your directory for installing meteoIO libraries with the usual console commands
# download the source code from the SVN:
svn co https://models.slf.ch/svn/meteoio/trunk
#Start Cmake and a window like the one below will appear:
# and the directory where you want the binaries. Is in this directory that the Makefile will be produced
#Click on Configure and a window like the following should appear:
#Please note that you can modify the flags just clicking on them. Be sure that you have also checked the proj. The following fields should be "ON"
PROJ4 (then you have to verify the paths to LIBPROJ and to LIBPROJ_INCLUDE_DIR)
All the rest can be set to "OFF".
# Then, press the butto to generate the makefile and exit from the console.
# In the terminal, goes in the directory where you create the Makefile and type:
# (with "sudo" if you want to install it as super user).
Now move the libraries into /usr/local/lib. They shoud be libmeteoio.2.4.3.dylib and the two symbolic links: libmeteoio.2.dylib and libmeteoio.dylib
After having installed meteoIO, in the needs to understand what it does, one can browse the examples in the "doc" directory. However, s/he can also built the doxygen documentation. For doing it, please first check you have doxygen installed. Subsequently:
- using a terminal move to the directory where the meteoIo source code is located.
- execute "doxygen -g <configfile>" to create a configuration file, "configfile" for the project
- execute doxygen <configfile> to create the documentation
- Find the documentation in a new html directory created
- Access it by clicking on the index.html file