...
Code Block | ||
---|---|---|
| ||
# Create a "met.3d-base" directory in your home directory, with sub-dirs "local" and "third-party". cd ~ mkdir met.3d-base && cd met.3d-base mkdir local mkdir third-party # Checkout and install glfx. cd ~/met.3d-base/third-party/ git clone https://github.com/maizensh/glfx.git cd glfx cmake -DCMAKE_INSTALL_PREFIX:PATH=~/met.3d-base/local CMakeLists.txt make -j 12 make install # Download and install QCustomPlot (download packages from website): cd ~/met.3d-base/third-party/ wget https://www.qcustomplot.com/release/2.1.0fixed/QCustomPlot.tar.gz wget https://www.qcustomplot.com/release/2.1.0fixed/QCustomPlot-sharedlib.tar.gz tar xvfz QCustomPlot.tar.gz tar xvfz QCustomPlot-sharedlib.tar.gz mv qcustomplot-sharedlib/ qcustomplot/ cd qcustomplot/qcustomplot-sharedlib/sharedlib-compilation/ qmake make -j 12 cp libqcustomplot* ~/met.3d-base/local/lib/ cd ../.. cp qcustomplot.h ~/met.3d-base/local/include/ # NetCDF4 C++ API is not available in latest version from conda. cd ~/met.3d-base/third-party/ wget https://wwwdownloads.unidata.ucar.edu/downloads/netcdf/ftp-cxx/4.3.1/netcdf-cxx4-4.3.1.tar.gz tar xf netcdf-cxx4-4.3.1.tar.gz cd netcdf-cxx4-4.3.1 # !! Change <your user> to the correct path in the following command: ./configure --prefix=/home/<your user>/met.3d-base/local make -j 12 make install # section C), download remaining third-party dependencies cd ~/met.3d-base/third-party git clone https://github.com/qtproject/qt-solutions.git wget http://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip unzip freefont-ttf-20120503.zip mkdir naturalearth cd naturalearth wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_coastline.zip unzip ne_50m_coastline.zip wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_0_boundary_lines_land.zip unzip ne_50m_admin_0_boundary_lines_land.zip wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/raster/HYP_50M_SR_W.zip unzip HYP_50M_SR_W.zip |
...