[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #TQI-687797]: Building 4.3+, need c++ bindings



Hi Steve,

The netcdf-cxx4 bindings may be downloaded from the Unidata page at GitHub:

* http://github.com/Unidata/netcdf-cxx4

The version you might be working with from our website is an older release; the 
page has two downloads, one for a 'legacy' API, and one for the modern, 
supported API.  The latter is what is available from github.

I hope this helps,

-Ward

> ?Hello,
> 
> 
> I've built 4.1.3 and get the following library files and headers:
> 
> 
> $ ll lib/
> total 20780
> -rw-r--r--. 1 sdainard users 5687330 Sep 23 14:56 libnetcdf.a
> -rw-r--r--. 1 sdainard users 5355130 Sep 23 14:56 libnetcdf_c++4.a
> -rwxr-xr-x. 1 sdainard users    1324 Sep 23 14:56 libnetcdf_c++4.la
> lrwxrwxrwx. 1 sdainard users      23 Sep 23 14:56 libnetcdf_c++4.so -> 
> libnetcdf_c++4.so.1.0.1
> lrwxrwxrwx. 1 sdainard users      23 Sep 23 14:56 libnetcdf_c++4.so.1 -> 
> libnetcdf_c++4.so.1.0.1
> -rwxr-xr-x. 1 sdainard users 2231802 Sep 23 14:56 libnetcdf_c++4.so.1.0.1
> -rw-r--r--. 1 sdainard users 1160188 Sep 23 14:56 libnetcdf_c++.a
> -rwxr-xr-x. 1 sdainard users    1317 Sep 23 14:56 libnetcdf_c++.la
> lrwxrwxrwx. 1 sdainard users      22 Sep 23 14:56 libnetcdf_c++.so -> 
> libnetcdf_c++.so.4.1.0
> lrwxrwxrwx. 1 sdainard users      22 Sep 23 14:56 libnetcdf_c++.so.4 -> 
> libnetcdf_c++.so.4.1.0
> -rwxr-xr-x. 1 sdainard users  500011 Sep 23 14:56 libnetcdf_c++.so.4.1.0
> -rw-r--r--. 1 sdainard users 1582730 Sep 23 14:56 libnetcdff.a
> -rwxr-xr-x. 1 sdainard users    1296 Sep 23 14:56 libnetcdff.la
> lrwxrwxrwx. 1 sdainard users      19 Sep 23 14:56 libnetcdff.so -> 
> libnetcdff.so.5.1.0
> lrwxrwxrwx. 1 sdainard users      19 Sep 23 14:56 libnetcdff.so.5 -> 
> libnetcdff.so.5.1.0
> -rwxr-xr-x. 1 sdainard users 1179364 Sep 23 14:56 libnetcdff.so.5.1.0
> -rwxr-xr-x. 1 sdainard users    1254 Sep 23 14:56 libnetcdf.la
> lrwxrwxrwx. 1 sdainard users      18 Sep 23 14:56 libnetcdf.so -> 
> libnetcdf.so.7.1.1
> lrwxrwxrwx. 1 sdainard users      18 Sep 23 14:56 libnetcdf.so.7 -> 
> libnetcdf.so.7.1.1
> -rwxr-xr-x. 1 sdainard users 3549982 Sep 23 14:56 libnetcdf.so.7.1.1
> drwxr-xr-x. 2 sdainard users      22 Sep 23 14:56 pkgconfig
> 
> $ ll include/
> total 648
> -rw-r--r--. 1 sdainard users   2965 Sep 23 14:56 ncAtt.h
> -rw-r--r--. 1 sdainard users    480 Sep 23 14:56 ncByte.h
> -rw-r--r--. 1 sdainard users    440 Sep 23 14:56 ncChar.h
> -rw-r--r--. 1 sdainard users    488 Sep 23 14:56 ncCheck.h
> -rw-r--r--. 1 sdainard users   3498 Sep 23 14:56 ncCompoundType.h
> -rw-r--r--. 1 sdainard users   1940 Sep 23 14:56 ncDim.h
> -rw-r--r--. 1 sdainard users    483 Sep 23 14:56 ncDouble.h
> -rw-r--r--. 1 sdainard users   3327 Sep 23 14:56 ncEnumType.h
> -rw-r--r--. 1 sdainard users  12481 Sep 23 14:56 ncException.h
> -rw-r--r--. 1 sdainard users   2141 Sep 23 14:56 ncFile.h
> -rw-r--r--. 1 sdainard users    473 Sep 23 14:56 ncFloat.h
> -rw-r--r--. 1 sdainard users   1055 Sep 23 14:56 ncGroupAtt.h
> -rw-r--r--. 1 sdainard users  23703 Sep 23 14:56 ncGroup.h
> -rw-r--r--. 1 sdainard users    473 Sep 23 14:56 ncInt64.h
> -rw-r--r--. 1 sdainard users    453 Sep 23 14:56 ncInt.h
> -rw-r--r--. 1 sdainard users   1501 Sep 23 14:56 ncOpaqueType.h
> -rw-r--r--. 1 sdainard users    472 Sep 23 14:56 ncShort.h
> -rw-r--r--. 1 sdainard users    482 Sep 23 14:56 ncString.h
> -rw-r--r--. 1 sdainard users   5364 Sep 23 14:56 ncType.h
> -rw-r--r--. 1 sdainard users    472 Sep 23 14:56 ncUbyte.h
> -rw-r--r--. 1 sdainard users    481 Sep 23 14:56 ncUint64.h
> -rw-r--r--. 1 sdainard users    462 Sep 23 14:56 ncUint.h
> -rw-r--r--. 1 sdainard users    469 Sep 23 14:56 ncUshort.h
> -rw-r--r--. 1 sdainard users  10123 Sep 23 14:56 ncvalues.h
> -rw-r--r--. 1 sdainard users   1151 Sep 23 14:56 ncVarAtt.h
> -rw-r--r--. 1 sdainard users  55281 Sep 23 14:56 ncVar.h
> -rw-r--r--. 1 sdainard users   1430 Sep 23 14:56 ncVlenType.h
> -rw-r--r--. 1 sdainard users    651 Sep 23 14:56 netcdf
> -rw-r--r--. 1 sdainard users  18918 Sep 23 14:56 netcdfcpp.h
> -rw-r--r--. 1 sdainard users  57256 Sep 23 14:56 netcdf.h
> -rw-r--r--. 1 sdainard users     23 Sep 23 14:56 netcdf.hh
> -rw-r--r--. 1 sdainard users  59601 Sep 23 14:56 netcdf.inc
> -rw-r--r--. 1 sdainard users 302770 Sep 23 14:56 netcdf.mod
> -rw-r--r--. 1 sdainard users   2307 Sep 23 14:56 typesizes.mod
> 
> 
> But when I build 4.3.0 or 4.3.3.1 I get:
> 
> 
> 4.3.3.1]$ ll lib/
> total 3456
> -rw-r--r--. 1 sdainard users 2017444 Oct  6 08:57 libnetcdf.a
> -rwxr-xr-x. 1 sdainard users    1155 Oct  6 08:57 libnetcdf.la
> -rw-r--r--. 1 sdainard users     825 Oct  6 08:57 libnetcdf.settings
> lrwxrwxrwx. 1 sdainard users      18 Oct  6 08:57 libnetcdf.so -> 
> libnetcdf.so.7.2.0
> lrwxrwxrwx. 1 sdainard users      18 Oct  6 08:57 libnetcdf.so.7 -> 
> libnetcdf.so.7.2.0
> -rwxr-xr-x. 1 sdainard users 1508939 Oct  6 08:57 libnetcdf.so.7.2.0
> drwxr-xr-x. 2 sdainard users      22 Oct  6 08:57 pkgconfig
> 
> 4.3.3.1]$ ll include/
> total 64
> -rw-r--r--. 1 sdainard users 60074 Oct  6 08:57 netcdf.h
> -rw-r--r--. 1 sdainard users  2053 Oct  6 08:57 netcdf_meta.h
> 
> ?There doesn't seem to be configure flags --enable-cxx or --enable-cxx-4 in 
> 4.3+, how can I enable c++ bindings? I've copied the cxx4 directory from 
> https://www.unidata.ucar.edu/downloads/netcdf/netcdf-cxx/index.jsp? into the 
> netcdf source but that doesn't do the trick.
> 
> Thanks,
> Steve
> 


Ticket Details
===================
Ticket ID: TQI-687797
Department: Support netCDF
Priority: Normal
Status: Closed