Le jeudi 10 décembre 2015 17:00:12, kelly elton a écrit : > So I'm building on windows > > I downloaded the osgeo4w installer and installed the spatialite + sqlite > libraries. > > I uncommitted these two lines > > SQLITE_INC=-IC:\OSGeo4W\include -DHAVE_SPATIALITE -DSPATIALITE_AMALGAMATION > SQLITE_LIB=C:\OSGeo4W\lib\spatialite_i.lib
Latest Spatialite versions are no longer in "amalgmation" mode so you also likely need to explictly link against sqlite3 itself. So add to the SQLITE_LIB line sqlite.lib or sqlite_i.lib whatever it is called. > > So when compiling now(which was working before this) I get tons of > unresolved external symbol errors. I also tried downloading and pointing to > the GISInternals sdk but that created the same errors. I must be missing > something fundamental here, any help would be much appreciated. > > ogrsf_frmts.lib(ogrsqlitetablelayer.obj) : error LNK2001: unresolved > external symbol _sqlite3_exec > ogrsf_frmts.lib(hugefileresolver.obj) : error LNK2001: unresolved external > symbol _sqlite3_exec > ogrsf_frmts.lib(vfkreadersqlite.obj) : error LNK2001: unresolved external > symbol _sqlite3_exec > ogrsf_frmts.lib(ogrgeopackageutility.obj) : error LNK2001: unresolved > external symbol _sqlite3_exec > ogrsf_frmts.lib(ogrsqliteexecutesql.obj) : error LNK2001: unresolved > external symbol _sqlite3_exec > ogrsf_frmts.lib(ogrsqlitedatasource.obj) : error LNK2001: unresolved > external symbol _sqlite3_exec > ogrsf_frmts.lib(ogrosmdatasource.obj) : error LNK2001: unresolved external > symbol _sqlite3_exec > ogrsf_frmts.lib(ogrgeopackagedatasource.obj) : error LNK2001: unresolved > external symbol _sqlite3_exec > ogrsf_frmts.lib(vfkreadersqlite.obj) : error LNK2019: unresolved external > symbol _sqlite3_free referenced in function "public: virtual void * > __thiscall GDALDriver::`vector deleting destructor'(unsigned int)" > (??_EGDALDriver@@UAEPAXI@Z) -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
