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

Add eccodes to recommended dependencies #32

Open
oakleybrunt opened this issue Aug 21, 2023 · 2 comments
Open

Add eccodes to recommended dependencies #32

oakleybrunt opened this issue Aug 21, 2023 · 2 comments

Comments

@oakleybrunt
Copy link

What maintenance does this project need?

Using metkit as a dependency of multio gives the following error when installed and built using the current installation instructions:

CRITICAL - metkit must be built with GRIB support

Please add eccodes as a recommended dependency and add the method for directing ecbuild to eccodes to the installation instructions.

Organisation

No response

@tlmquintino
Copy link
Member

hi @oakleybrunt.

Please could you provide a way to reproduce the above issue. For example, which versions of the softwares involved are you using? which platform etc?

@oakleybrunt
Copy link
Author

Hi @tlmquintino

Environment:
C++17
CMake ----> 3.19.2
GCC ------> 11.2.0
Python ---> 3.7.0
doxygen --> 1.8.15

When trying to install multio:
From a blank set-up (no ECMWF repos on system), you install ecbuild, eckit, metkit, eccodes, fdb, and fckit.

metkit installation as specified in docs:

# Environment --- Edit as needed
srcdir=$(pwd)
builddir=build
installdir=$HOME/local  

# 1. Create the build directory:
mkdir $builddir
cd $builddir

# 2. Run CMake and output to log
ecbuild --prefix=$installdir -- -DECKIT_PATH=<path/to/eckit/install> $srcdir &> ecbuild.log

# 3. Compile / Install
make -j10
make install

When installing multio:

# Set up environment as appropriate 
srcdir=$(pwd)
builddir=build
installdir=$HOME/local


# Run Cmake/ecbuild, output to log
 ecbuild --prefix=$installdir -- -DCMAKE_PREFIX_PATH=<path/to/eckit/install> -DCMAKE_PREFIX_PATH=<path/to/metkit/install> -DCMAKE_PREFIX_PATH=<path/to/eccodes/install> -DCMAKE_PREFIX_PATH=<path/to/fdb/install> -DCMAKE_PREFIX_PATH=<path/to/fckit/install> $srcdir &> ecbuild.log

# Compile, test, isntall
make -j10
ctest
make install

This will hopefully give you the error message:

CRITICAL - metkit must be built with GRIB support

This happens because metkit must find eccodes when installing if GRIB support is to be built. However, eccodes is not listed as an optional or required dependency in the README.md.

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