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

CMake error for HDF4 when compiling MAJA #73

Open
hanamthang opened this issue Oct 19, 2020 · 3 comments
Open

CMake error for HDF4 when compiling MAJA #73

hanamthang opened this issue Oct 19, 2020 · 3 comments

Comments

@hanamthang
Copy link

hanamthang commented Oct 19, 2020

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

@petket-5
Copy link

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

@hanamthang
Copy link
Author

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

@jprankl
Copy link

jprankl commented Nov 21, 2020

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

@jprankl jprankl mentioned this issue Nov 22, 2020
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

3 participants