[gdal-dev] failed using with GPKG driver

Even Rouault even.rouault at spatialys.com
Thu Jul 18 05:50:01 PDT 2019


On jeudi 18 juillet 2019 20:45:42 CEST beng in wrote:
> Hi, I compiled GDAL 2.3.3 under Windows/MSVC_VER=1910 with nmake.opt almost
> unchaned, everything looks fine, the gdal.dll and bunch of exe files
> succeesfully generated.
> but when I tried to use gdal such like:
> 
> (c++)
> GDALAllRegister();
> auto ds(GDALDataset::Open("filepath/to/a/.gpkg",
> GDAL_OF_VECTOR|GDAL_OF_VERBOSE_ERROR, nullptr,....))
> 
> it failed, ds is NULL. with error msg, gdal told that the file not
> recognized as a supported file format.
> and then I tried run "ogrinfo.exe --formats", cannot found GPKG/GEOPKG.
> so, am I wrong in any step with compile or misuse? thanks.

you need to add at least the SQLite3 dependency at build time. See
https://github.com/OSGeo/gdal/blob/master/appveyor.yml#L98
for a build recipee based on the SDK available at
http://gisinternals.com/sdk.php

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list