[GRASS-dev] Wingrass and TclTk

Glynn Clements glynn at gclements.plus.com
Thu Nov 1 09:46:06 EDT 2007


Hamish wrote:

> All the C system() calls need to be searched too I guess.

And popen(), and G_{system,popen,spawn,spawn_ex}.

> > BTW, the use of "ldd" by v.in.wfs is entirely bogus:
> > 
> > 	# xerces support compiled in?
> > 	OGRINFO=`which ogrinfo`
> > 	if [ -z "`ldd $OGRINFO | grep xerces`" ] ; then
> > 	  g.message -e "OGR needs to be compiled with xerces-c support"
> > 	  exit 1
> > 	fi
> > 
> > This needs to be changed to something which will work on other
> > platforms. Does "gdalinfo --formats" suffice?
> 
> Nope.
> $ ogrinfo --formats | grep -ic xer
> 0
> $ ldd `which ogrinfo` | grep xer
>         libxerces-c.so.27 => /usr/lib/libxerces-c.so.27 (0xb76c0000)
> 
> as Xerces is apparently a XML parser not a vector format :)
> 
> You could try
> $ gdal-config --dep-libs | tr ' ' '\n' | grep -ci xerces
> 1
> 
> but then gdal-config isn't always around. e.g. on Debian gdal-config comes with
> the libgdal1-dev package and not the gdal-bin package. (and the libgdal1-dev
> package depends on 18 other dev packages, which in turn depend on enough stuff
> to make it a 20-50mb download just to run gdal-config. :-/ )

And it still won't show anything if xerces is linked statically into
libgdal.

I suspect that the only real solution is to simply try it.

> > Also, we don't really need all three of lynx, wget and curl; any one
> > of those would suffice.
> 
> IIRC lynx is used to strip off HTML tags, ie to convert .html to .txt.

But it's supposed to be saving an XML file:

	lynx -dump "$WFS_URL" > "$TMP.xml"

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list