Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on Ubuntu 16.04 #12

Open
WolfgangFahl opened this issue Aug 13, 2018 · 2 comments
Open

Can't build on Ubuntu 16.04 #12

WolfgangFahl opened this issue Aug 13, 2018 · 2 comments

Comments

@WolfgangFahl
Copy link

sudo apt-get install shapelib
sudo apt-get install cmake
sudo apt-get install libhdf5-dev
git clone https://github.com/meteo-ubonn/radolan.git
cd radolan
cmake .

-- zlib found
-- WITH_HDF5=
CMake Error at CMakeLists.txt:77 (MESSAGE):
HDF5 not found (http://www.hdfgroup.org/HDF5/)

@WolfgangFahl
Copy link
Author

There seems a .h missing in the FindNETCDF.cmake

diff --git a/cmake_modules/FindNETCDF.cmake b/cmake_modules/FindNETCDF.cmake
index 6ca53f2..4eea3c4 100644
--- a/cmake_modules/FindNETCDF.cmake
+++ b/cmake_modules/FindNETCDF.cmake
@@ -1,13 +1,20 @@
IF(CMAKE_SYSTEM_NAME MATCHES Linux)

  • MESSAGE(STATUS "Trying to find NETCDF Libraries for Linux enviroment")
    FIND_PATH(NETCDF_INCLUDE_DIR netcdf.h PATHS /usr/include /usr/local/include /opt/local/include)
    FIND_LIBRARY(NETCDF NAMES netcdf PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64)
    FIND_LIBRARY(NETCDF_CPP NAMES netcdf_c++4 PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64)
    ELSE(CMAKE_SYSTEM_NAME MATCHES Linux)
  • FIND_PATH(NETCDF_INCLUDE_DIR netcdf PATHS /usr/include /usr/local/include /opt/local/include)
  • MESSAGE(STATUS "Trying to find NETCDF Libraries for non Linux enviroment e.g. MACOS")
  • FIND_PATH(NETCDF_INCLUDE_DIR netcdf.h PATHS /usr/include /usr/local/include /opt/local/include)
    FIND_LIBRARY(NETCDF NAMES netcdf PATHS /usr/lib /usr/local/lib /opt/local/lib)
    FIND_LIBRARY(NETCDF_CPP NAMES netcdf_c++4 PATHS /usr/lib /usr/local/lib /opt/local/lib)
    ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux)

+MESSAGE(STATUS "NETCDF LIBRARY ${NETCDF}")
+MESSAGE(STATUS "NETCDF_CPP LIBRARY ${NETCDF_CPP}")
+MESSAGE(STATUS "NETCDF INCLUDE DIR ${NETCDF_INCLUDE_DIR}")
+
+
IF (NETCDF AND NETCDF_CPP)
SET(NETCDF_LIBRARIES ${NETCDF_CPP} ${NETCDF})
ELSE (NETCDF AND NETCDF_CPP)

@kmuehlbauer
Copy link
Contributor

@WolfgangFahl Sorry for the late response. ATM we have no cycles to further maintain the library. Pull requests welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants