MAJA compilation error when compiling HDF4
System information
- OS Platform and Distribution: Ubuntu 20.10 (WSL2, Windows Subsystem for Linux)
- Maja installed from: source
- Maja version: develop branch
- Maja commit sha: latest
- Complementary info: cmake 3.16.3, gcc/c++ 10.2.0
Describe the current behavior
Configure error on HDF4 compilation step:
configure: error: --enable-hdf4-xdr is not supported for 64 bit mode.
Urgency/Criticity
- Urgency (Select Low/Medium/High): High
- Criticity (Select Low/Medium/High): High
Correction
Replace HDF4 version from 4.2.13 to 4.2.15 to fix the error. Then you will get the next configure error:
configure: error: couldn't find rpc headers
To fix it edit "configure" file from HDF4 v4.3.15 sources and replace line 23672
CPPFLAGS="$SYSCPPFLAGS -I/usr/include/tirpc"
to
CPPFLAGS="$SYSCPPFLAGS -I/usr/include/tirpc"
unset ac_cv_header_rpc_rpc_h