On Wed, 22 Jun 2016, sablok wrote:
I am trying to compile gdal-2.0.2 from source using this tarball https://trac.osgeo.org/gdal/wiki/DownloadSource I have tried to navigate through every conceivable error on this mailing list archive to resolve the issues I have encountered while compiling it from source. The set of commands I am using to compile it are as follows -:/export GDAL_BUILD_VERSION=2.0.2 cd ${path}/config/gdal/gdal-$GDAL_BUILD_VERSION && ./configure --prefix=${build_root} --without-xml2 cd ${path}/config/gdal/gdal-$GDAL_BUILD_VERSION && make clean cd ${path}/config/gdal/gdal-$GDAL_BUILD_VERSION && make cd ${path}/config/gdal/gdal-$GDAL_BUILD_VERSION && make install/ and this keeps on failing with the following error -: /config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_create_module_v2' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_malloc' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_vfs_register' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_prepare_v2' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_realloc' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_open_v2' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_declare_vtab' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_vfs_unregister' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_vfs_find' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_auto_extension' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_create_module' config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to `sqlite3_clear_bindings' collect2: ld returned 1 exit status make[1]: *** [gdalinfo] Error 1 make[1]: Leaving directory `config/gdal/gdal-2.0.2/apps' make: *** [apps-target] Error 2/
The version (3.3.6) of sqlite in RHEL_5 does not appear to include those functions (RHEL_6 has sqlite version 3.6.20 which does contain those functions). You *may* be able to build gdal without sqlite but I have never tried. -- Andrew C Aitchison _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
