[gdal-dev] Re: Cannot configure SpatiaLite
Mike Toews
mwtoews at gmail.com
Sat Jul 24 14:02:24 EDT 2010
Ok I figured it out after inspecting the code[1]. This works:
$ ./configure --with-spatialite=/usr/local
or (if SpatiaLite installed by apt in Ubuntu 10.04)
$ ./configure --with-spatialite=/usr
Why isn't the presence of -lspatialite tested and added automatically,
like with all other formats?
-Mike
[1] http://trac.osgeo.org/gdal/browser/trunk/gdal/configure.in#L2088
On 24 July 2010 09:26, Mike Toews <mwtoews at gmail.com> wrote:
> Hi all,
>
> I cannot seem to configure GDAL 1.7.2 with SpatiaLite support. My
> system is Ubuntu 8.04 Hardy server LTS. I've installed SpatiaLite
> version 2.3.1 from source (both lib and tools), and it appears to work
> normally. I'm not sure if it matters, but I installed both sqlite3 and
> the development library from normal apt packages. I've even run
> ldconfig a few times.
>
> Here is my configure command, and some excerpts of the output:
>
> $ ./configure --with-spatialite=/usr/local/lib/libspatialite.so
> ...
> checking for SpatiaLite... checking for spatialite_init in -lspatialite... yes
> disabled
> checking for SQLite3 library >= 3.0.0... yes
> ...
> GDAL is now configured for i686-pc-linux-gnu
> ...
> SQLite support: yes
> SpatiaLite support: no
>
>
> I don't understand the output "-lspatialite... yes disabled" when I
> specified the path. Thanks for any help.
>
> -Mike
>
More information about the gdal-dev
mailing list