Unidata / netcdf-cxx4

Official GitHub repository for netCDF-C++ libraries and utilities.
Other
124 stars 49 forks source link

configure fails on netCDF-4 enabled netCDF-C #44

Open julietbravo opened 7 years ago

julietbravo commented 7 years ago

I'm trying to compile NetCDF-C++4 (4.3.0 release); the NetCDF-C version is compiled with NetCDF-4 (output nc-config --all: --has-nc4 -> yes), yet a configure of netCDF-C++4 returns:

configure: error: NetCDF must be built with netCDF-4 enabled.

Are there any other reasons why the configure script might return this error, since NetCDF-C is compiled with netCDF-4 enabled?

WardF commented 7 years ago

There are several reasons why it may give this error, some of which are more obtuse than others. Can you provide the config.log file generated when you ran configure? Often there is an issue with linking against netCDF, which can be the case if there are static dependencies somewhere in the dependency chain.

thecalicojack commented 6 years ago

Hi, i ran in to the same problem when trying to compile NetCDF-C++4-4.3. I use NetCDF-4 version 4.6.0 and NetCDF4 is definitely enabled. Note: I'm doing cross-compiling for ARM. The config.log file can be found here: https://calicojack.mine.nu/owncloud/index.php/s/76XNjNCqRp0PJrT

best regards Michael

rprechelt commented 6 years ago

Was any progress made on this issue?

I'm experiencing a similar problem (although I am compiling straight for x86-64).

nc-config --has-nc4 reports yes, but ./configure for this repo errors and states that NetCDF must be built with NetCDF 4 support.