[Kst] creating a new datasource reader
staikos at kde.org
Wed Mar 16 16:38:13 CET 2005
On Wednesday 16 March 2005 10:22, Brisset, Nicolas wrote:
> > > Can you tell me what I'm doing wrong, and what this error
> > message means?
> > It probably means that you don't have the CDF libraries
> > installed, or they were not found by Kst. If you run
> > ./configure --help you will see some Kst options. One of them is:
> > --with-cdf=DIR where the root of CDF is installed
> George, CDF and netCDF are different libraries even though the names are
> similar ! netCDf is the extra datasource I sent you recently, I believe
> you only need to add the following lines to autoconf.in (just after the
> corresponding cdf lines):
Oops!! I thought they used the same library. Ok I'll fix it up.
> # netCDF Test
> AC_HELP_STRING([--with-netcdf=DIR],[where the root of netCDF is
> installed ]),
> [ ac_cdf_includes="-I$withval/include"
> all_includes="$all_includes $ac_netcdf_includes"
> KDE_CHECK_HEADER(netcdfcpp.h, AC_DEFINE(HAVE_NETCDF_H, 1, [If we have
> netCDF headers]) have_netcdf_h=yes NETCDFINCLUDES="$ac_netcdf_includes",
> , )
> LDFLAGS="$LDFLAGS $ac_cdf_libraries"
> KDE_CHECK_LIB(netcdf, nc_open, NETCDFLIBS="$ac_cdf_libraries -lnetcdf
> $CDFLIBS", , )
> if test $ac_cv_lib_netcdf_netCDFlib = yes; then
> if test $have_netcdf_h = yes; then
> AC_DEFINE(KST_HAVE_NETCDF, 1, [If we have the netCDF libraries.])
> AM_CONDITIONAL(include_netcdf, test -n "$NETCDFLIBS")
> There may still be some hitches, but if you commit this (and regenerate
> configure ?) we'll at least be close to a working configure...
I'll work on it. Where do I download netCDF?
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the Kst