netcdf.a not installed by libnetcdf-dev

Bug #1698368 reported by Grigri
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
netcdf (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

libnetcdf.a file (static version of the library) is not available in the package libnetcdf-dev in xenial 16.04 LTS (and next).

It was present in the trusty 14.04LTS package.

And in the libnetcdff-dev package (netcdf interface for Fortran) you could find also in xenial 16.04 LTS distribution a libnetcdff.a.

I think that is probably an omission.

An idea to solve this lack:
during the autotool-configuration of this library, the configure option "–enable-static" can be set to have a static version of the library or set the Cmake option -D"BUILD\_SHARED\_LIBS=ON".
http://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html#netCDF-CMake

Thanks,
nicolas

Revision history for this message
Grigri (grima) wrote :

Text correction

Please read:

... the Cmake option -D"BUILD\_SHARED\_LIBS=OFF"

and not

... the Cmake option -D"BUILD\_SHARED\_LIBS=ON"

Revision history for this message
Bas Couwenberg (sebastic) wrote :

NetCDF is no longer built with autotools, hence the static library is no longer built by default.

The package is unlikely to be updated to include it again.

Revision history for this message
Grigri (grima) wrote :

Thank for the answer,

but on this official NetCDF web page we can see (21 august 2017) that autotools (./configure command) are always used :
http://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html#configure_options

I give also a solution using Cmake if you don't use autotools during netcdf installation in ubuntu package.

Thanks,
Nicolas.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netcdf (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.