Ticket #1645 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

configure does not check for SQLite header and library

Reported by: mloskot Owned by: mloskot
Priority: low Milestone: 1.5.0
Component: OGR_SF Version: svn-trunk
Severity: minor Keywords: SQLite
Cc: warmerdam

Description

The ./configure script does not really check for presence of SQLite header and library files. If there is no SQLite version installed in the system, the configuration summary is incorrect:

./configure --with-sqlite=yes
...
checking for curl-config... no
checking Checking for SQLite... enabled
checking Checking for DWGdirect... disabled
...
  DODS support:              no
  SQLite support:            yes
  DWGdirect support          no
...

Next, compilation fails with (expected) error message:

make[3]: Entering directory `/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/ogr/ogrsf_frmts/sqlite'
g++ -Wall -fPIC -O2   -I.. -I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/port 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/gcore 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/alg 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/ogr 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/ogr/ogrsf_frmts  -DOGR_ENABLED 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/port  -c -o ../o/ogrsqlitedatasource.o 
ogrsqlitedatasource.cpp
In file included from ogrsqlitedatasource.cpp:30:
ogr_sqlite.h:35:21: error: sqlite3.h: No such file or directory
...

There was very similar Ticket #1508 but related to detecting Python files.

Change History

Changed 6 years ago by mloskot

  • version changed from unspecified to svn-trunk

Changed 6 years ago by warmerdam

  • cc warmerdam added
  • owner changed from warmerdam to mloskot
  • priority changed from normal to low
  • severity changed from normal to minor
  • milestone set to 1.5.0

Mateusz,

This is also true of some other configuration options where it was not convenient at the time to do proper checking. Since you raise this issue, I'll let you fix it.

Changed 5 years ago by mloskot

  • status changed from new to assigned

Changed 5 years ago by mloskot

  • status changed from assigned to closed
  • resolution set to fixed

This ticket is duplicated as #2067 which has been already fixed.

Note: See TracTickets for help on using tickets.