[GRASS-user] Building 6.5: SQLite3 Error

   I've not hit this error when I last built -6.5, and the sqlite libs are in
/usr/lib/. I think I need to refine the location in the configure file, but
want to check here first.

   The error is:

checking for location of SQLite library... checking for sqlite3_open in -lsqlite3... no
checking for sqlite3_open in -lsqlite3... no
configure: error: *** Unable to locate SQLite library.

and the configure command includes:

--with-postgres --with-sqlite --with-sqlite-libs=/usr/sqlite --with-cairo --with-freetype --with-cxx \
--with-geos=usr/bin/geos-config --with-gdal=/usr/bin/gdal-config \
--with-python=/usr/bin/python-config --with-wxwidgets=/usr/bin/wx-config \
--with-includes=/usr/include/ --with-libs=/usr/lib/ --enable-largefile

   I'm not seeing my error here. Please point it out to me.

Rich

Rich Shepard wrote:

I've not hit this error when I last built -6.5, and the sqlite libs are in
/usr/lib/.

OK.

I think I need to refine the location in the configure file, but
want to check here first.

The error is:

checking for location of SQLite library... checking for sqlite3_open in
-lsqlite3... no
checking for sqlite3_open in -lsqlite3... no
configure: error: *** Unable to locate SQLite library.

and the configure command includes:

--with-postgres --with-sqlite --with-sqlite-libs=/usr/sqlite

Not OK, should be --with-sqlite-libs=/usr/lib if the sqlite libs are in /usr/lib

Markus M

--with-cairo

--with-freetype --with-cxx \
--with-geos=usr/bin/geos-config --with-gdal=/usr/bin/gdal-config \
--with-python=/usr/bin/python-config --with-wxwidgets=/usr/bin/wx-config \
--with-includes=/usr/include/ --with-libs=/usr/lib/ --enable-largefile

I'm not seeing my error here. Please point it out to me.

Rich

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On Thu, 28 Oct 2010, Markus Metz wrote:

--with-postgres --with-sqlite --with-sqlite-libs=/usr/sqlite

Not OK, should be --with-sqlite-libs=/usr/lib if the sqlite libs are in /usr/lib

Markus,

   Oops! Typo on my part. I'll try again.

Thanks for catching this,

Rich

On Thu, 28 Oct 2010, Markus Metz wrote:

Not OK, should be --with-sqlite-libs=/usr/lib if the sqlite libs are in /usr/lib

Markus,

   The typo was in the message posted here. Here are the configure options:

--with-postgres --with-sqlite --with-sqlite-libs=/usr/lib --with-cairo \
--with-freetype --with-cxx --with-geos=usr/bin/geos-config \
--with-gdal=/usr/bin/gdal-config --with-python=/usr/bin/python-config \
--with-wxwidgets=/usr/bin/wx-config --with-includes=/usr/include/ \
--with-libs=/usr/lib/ --enable-largefile

   This morning I see a new error:

checking whether to use Cairo... yes
checking for location of cairo includes... checking for cairo.h... yes
checking for location of cairo library... checking for cairo linking flags... checking for cairo_create... no
configure: error: *** Unable to locate .

   When I check the installed cairo packages I see:

cairo-1.8.8-i486-1_slack13.0
cairomm-1.6.4-i486-1_SBo
pycairo-1.8.4-i486-3

and I'm not sure where cairo_create is supposed to be found.

Rich

On Thu, 28 Oct 2010, Rich Shepard wrote:

This morning I see a new error:

checking whether to use Cairo... yes
checking for location of cairo includes... checking for cairo.h... yes
checking for location of cairo library... checking for cairo linking flags... checking for cairo_create... no
configure: error: *** Unable to locate .

   Well, this is fixed. I upgraded cairomm (the C++ wrapper to cairo) from
1.6.4 to 1.8.0 and the code configured and built.

Rich

Markus Metz wrote:

> --with-postgres --with-sqlite --with-sqlite-libs=/usr/sqlite

Not OK, should be --with-sqlite-libs=/usr/lib if the sqlite libs are in /usr/lib

It should never be necessary to specify /usr/lib or /usr/include
explicitly, and may be counter-productive (mainly with older versions
of gcc on platforms where it is not the "official" compiler).

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

Rich Shepard wrote:

> This morning I see a new error:
>
> checking whether to use Cairo... yes
> checking for location of cairo includes... checking for cairo.h... yes
> checking for location of cairo library... checking for cairo linking flags...
> checking for cairo_create... no
> configure: error: *** Unable to locate .

   Well, this is fixed. I upgraded cairomm (the C++ wrapper to cairo) from
1.6.4 to 1.8.0 and the code configured and built.

That's coincidence; GRASS doesn't use cairomm.

For future reference: if you get configure errors, look at the bottom
of config.log. It will list the exact test being performed and any
error messages which were generated.

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

On Thu, 28 Oct 2010, Glynn Clements wrote:

It should never be necessary to specify /usr/lib or /usr/include
explicitly, and may be counter-productive (mainly with older versions of
gcc on platforms where it is not the "official" compiler).

Glynn,

   I had not before specified the location of the sqlite libs, but did
specify /usr/lib and /usr/include. Suggestions in the configure file were
not clear on whether to include them so I did. Removing those explicit
inclusions, and updating to the latest sqlite3 and cairomm fixed what
irritated the configure file yesterday.

Thanks,

Rich

On Thu, 28 Oct 2010, Glynn Clements wrote:

That's coincidence; GRASS doesn't use cairomm.

   Strange. Must be the weather.

For future reference: if you get configure errors, look at the bottom of
config.log. It will list the exact test being performed and any error
messages which were generated.

   Almost always I see the same messages at the end of the log as I do when
configure bails out. But, this is good advice and I thank you.

Rich

Just to clarify - You have to read FILE named config.log at source
directory and look for last compilation command (i.e. gcc blabla). It
will give information WHY test failed and not simply WHICH one failed.

Just my 0.02
Maris.

2010/10/28, Rich Shepard <rshepard@appl-ecosys.com>:

On Thu, 28 Oct 2010, Glynn Clements wrote:

That's coincidence; GRASS doesn't use cairomm.

   Strange. Must be the weather.

For future reference: if you get configure errors, look at the bottom of
config.log. It will list the exact test being performed and any error
messages which were generated.

   Almost always I see the same messages at the end of the log as I do when
configure bails out. But, this is good advice and I thank you.

Rich
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user