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