CNES/MAJA

CMake error for HDF4 when compiling MAJA

hanamthang opened this issue · 3 comments

Hi there,

I tried to compile MAJA from source several times, however always got the following error:

CMake Error at /home/metal/MAJA/build/HDF4/stamp/HDF4-configure-Release.cmake:49 (message):
  Command failed: 1

   'env' 'CC=/usr/bin/cc' 'CXX=/usr/bin/c++' 'LD_LIBRARY_PATH=/home/metal/MAJA/install/maja/4.2.1/lib:' 'PKG_CONFIG_PATH=/home/metal/MAJA/install/maja/4.2.1/lib/pkgconfig' 'EGREP=/usr/bin/egrep' '/home/metal/MAJA/build/HDF4/source/configure' '--prefix=/home/metal/MAJA/install/maja/4.2.1' '--enable-static=no' '--enable-shared=yes' '--enable-fortran=no' '--enable-netcdf=no' '--with-jpeg=/home/metal/MAJA/install/maja/4.2.1' '--with-zlib=/home/metal/MAJA/install/maja/4.2.1'

  See also

    /home/metal/MAJA/build/HDF4/stamp/HDF4-configure-*.log


make[2]: *** [CMakeFiles/HDF4.dir/build.make:110: HDF4/stamp/HDF4-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:1536: CMakeFiles/HDF4.dir/all] Error 2
make: *** [Makefile:95: all] Error 2

Could you suggest doing something on this error?

Many thanks,
Thang

I suspect that you don't have the needed superbuild-archives for compiling Maja.

Can you show me the contents of /home/metal/MAJA/build/HDF4/stamp/HDF4-configure-*.log?

Kind regards,
Peter

Please have a look at the HDF4-configure-err.log and HDF4-configure-out.log.

I cloned the latest version of MAJA from this repository and compile MAJA.

From the HDF4-configure-err.log:
configure: WARNING: 'missing' script is too old or missing
configure: error: cannot find yacc utility

are they problems for compiling HDF4?

HDF4-configure-err.log
HDF4-configure-out.log

I am not sure if it is the same issue, but I got several errors including the HDF4 missing yacc.
I manually installed the following Ubuntu packages:

apt-get install libffi-dev
apt install mono-complete
apt-get install bison flex # that solved the yacc issue
apt-get install libpcre++-dev

Then it compiled on Ubuntu 20.04 in Docker and a MAJA clone from today.

Bests!
Johann