Skip Menu |

This queue is for tickets about the Geo-GDAL CPAN distribution.

Report information
The Basics
Id: 91636
Status: resolved
Priority: 0/
Queue: Geo-GDAL

People
Owner: ari.jolma [...] gmail.com
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.90
Fixed in: 2.00003



Subject: Don't use gdal-config --dep-libs
On Debian wheezy systems, the output of `gdal-config --dep-libs` is: -larmadillo -lproj -lpoppler -lfreexl -L/usr/lib -lgeos_c -L/usr/lib -lepsilon -lodbc -lodbcinst -lkmlengine -lkmldom -lkmlbase -lkmlconvenience -lminizip -luriparser -lexpat -lxerces-c -lpthread -ljasper -lnetcdf -lhdf5 -lmfhdfalt -ldfalt -logdi -lgif -ljpeg -lpng -L/usr/lib -lpq -llzma -lz -lpthread -lm -lrt -ldl -ldapclient -ldapserver -ldap -L/usr/lib -lspatialite -lsqlite3 -L/usr/lib/x86_64-linux-gnu -lcurl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lm -lrt -ldl Most of these libraries are not installed. Probably it's better to use `gdal-config --libs` instead. Also, I think gdal-config should not be parsed, but called with the --version, --libs, and --cflags options. Regards, Slaven
On 2013-12-24 06:09:38, SREZIC wrote: Show quoted text
> On Debian wheezy systems, the output of `gdal-config --dep-libs` is: > -larmadillo -lproj -lpoppler -lfreexl -L/usr/lib -lgeos_c -L/usr/lib > -lepsilon -lodbc -lodbcinst -lkmlengine -lkmldom -lkmlbase > -lkmlconvenience -lminizip -luriparser -lexpat -lxerces-c -lpthread > -ljasper -lnetcdf -lhdf5 -lmfhdfalt -ldfalt -logdi -lgif -ljpeg -lpng > -L/usr/lib -lpq -llzma -lz -lpthread -lm -lrt -ldl -ldapclient > -ldapserver -ldap -L/usr/lib -lspatialite -lsqlite3 -L/usr/lib/x86_64- > linux-gnu -lcurl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread > -lm -lrt -ldl > > Most of these libraries are not installed. Probably it's better to use > `gdal-config --libs` instead. > > Also, I think gdal-config should not be parsed, but called with the > --version, --libs, and --cflags options. >
Here's a patch: http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Geo-GDAL-1.90-RT91636.patch It replaces the parsing of gdal-config by direct calls of gdal-config, and uses the --libs output instead of the --dep-libs output. With this change I am able to compile and install Geo-GDAL on Debian/wheezy. Regards, Slaven
On Tue Dec 24 06:29:59 2013, SREZIC wrote: Show quoted text
> On 2013-12-24 06:09:38, SREZIC wrote:
> > On Debian wheezy systems, the output of `gdal-config --dep-libs` is: > > -larmadillo -lproj -lpoppler -lfreexl -L/usr/lib -lgeos_c -L/usr/lib > > -lepsilon -lodbc -lodbcinst -lkmlengine -lkmldom -lkmlbase > > -lkmlconvenience -lminizip -luriparser -lexpat -lxerces-c -lpthread > > -ljasper -lnetcdf -lhdf5 -lmfhdfalt -ldfalt -logdi -lgif -ljpeg -lpng > > -L/usr/lib -lpq -llzma -lz -lpthread -lm -lrt -ldl -ldapclient > > -ldapserver -ldap -L/usr/lib -lspatialite -lsqlite3 > > -L/usr/lib/x86_64- > > linux-gnu -lcurl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread > > -lm -lrt -ldl > > > > Most of these libraries are not installed. Probably it's better to > > use > > `gdal-config --libs` instead. > > > > Also, I think gdal-config should not be parsed, but called with the > > --version, --libs, and --cflags options. > >
> > Here's a patch: > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Geo-GDAL- > 1.90-RT91636.patch > > It replaces the parsing of gdal-config by direct calls of gdal-config, > and uses the --libs output instead of the --dep-libs output. With this > change I am able to compile and install Geo-GDAL on Debian/wheezy. > > Regards, > Slaven
Thanks, The thing is that I wanted to be able to build the Perl bindings also against non-installed GDAL. Also, typically on a Windows (mingw) system the gdal-config is not executable (can't check now and I haven't build on one in a long time). I'll think about this. Ari