There are several ways to get MeteoIO:
- as binary packages for your platform;
- as source package, to recompile for your platform;
- as git clone
For each release, several packages are prepared for various operating systems (MS Windows, Mac osX, Linux RPM and Linux DEB, Linux TGZ) and distributed in the downloads section of this web site. This is the easiest way to install MeteoIO. On Windows and osX, the installer lets you choose which components you want to install (library itself, plugins, documentation, headers). It also sets up a link to the documentation directory. Please note that different versions of even the same compiler can offer different Application Binary Interfaces (ABI) and therefore a binary packages might be incompatible with your own compiled programs. For example, if you encounter segfaults when trying to run the code example, this should be the case. Then, you have to download a source package and recompile from source.
For each release, the MeteoIO team prepares a source package, distributed in the downloads section of this web site. You have to unpack the archive, enter into it and compile it (see compiling instructions below).
This is mainly for developers who want to work on MeteoIO itself. First, you need to make sure that you have a git client on your computer. Then you can get your copy of MeteoIO.
You can use either a command line client or a graphical client. You can find graphical clients for various platforms:
- for Windows, for example TortoiseGit.
- for Mac, for example git-cola.
- for Linux, for example git-cola.
Of course, you can also use a command line client ("git" package in Linux distributions or coming as part of the Xcode compiler on osX)
Checking out the latest version
Point your git client to the source repository https://code.wsl.ch/snow-models/meteoio.git (this is the address to give your git client). It is recommended to use https as the transport protocol (the git protocol is currently restricted to the WSL internal network). If you are allowed to commit to the git server or if you are accessing a private project, please use login to code.wsl.ch.
For example for a command line client, this is done by typing
git clone https://code.wsl.ch/snow-models/meteoio.git in a terminal where you want to perform your checkout.
Getting the latest updates for your version
By getting your version of MeteoIO through an git checkout, you can later very simply bring your local copy up to date with the version on the server (without loosing any of your potential local changes): in a terminal, go to your MeteoIO directory and then enter the command
git pull. Another alternative is to perform the update through your graphical git client.