libnetcdf.a file no longer provided by libnetcdf-dev package

philippe marty philippe.marty at upmc.fr
Fri Dec 15 15:20:03 UTC 2017


On 12/15/2017 01:42 PM, Sebastiaan Couwenberg wrote:
> When the netcdf package switched to using CMake for the build, the
> static libraries were dropped. Automake based projects build static
> libraries by default, CMake projects do not.

ah, ok, thanks for this explanation, I was not aware of these *make
behaviors.

> If you need the static libraries in netcdf, you'll need to either modify
> the package to build them again, or build netcdf from source yourself.

as explained in my bug report, I eventually managed to rebuild the
static libs using this sequence :

# mkdir netcdf
# cd netcdf/
# apt-get source netcdf
# debuild -b -uc -us
# CPPFLAGS="-I/usr/lib64/hdf5/serial/include"
LDFLAGS=-L/usr/lib64/hdf5/serial/lib ./configure
--prefix=/usr/local/netcdf4/ --disable-doxygen --enable-netcdf4
--disable-dap-remote-tests --disable-examples --disable-utilities
--disable-testsets
# make

and then :

# find . -name "libnetcdf.a"
./liblib/.libs/libnetcdf.a

# cp -arf ./liblib/.libs/libnetcdf.a /usr/lib/x86_64-linux-gnu/

thanks again for your support, I wish you all the best for end-of-2017
holydays !

cheers,

-- 
Philippe Marty                   | CNRS / UPMC / EPHE / IPSL
Ingénieur Calcul Scientifique    | METIS - UMR 7619
tel:+33 (0)6 87 39 30 04         | Barre 46-56 Bureau 320
fax:+33 (0)1 44 27 45 88         | case 105 - 4, place Jussieu
http://www.metis.upmc.fr/~marty/ | 75252 PARIS cedex 05



More information about the Pkg-grass-devel mailing list