diff --git a/.github/workflows/win_cli_build.yml b/.github/workflows/win_cli_build.yml index 0dd1fc0..2c38af1 100644 --- a/.github/workflows/win_cli_build.yml +++ b/.github/workflows/win_cli_build.yml @@ -20,7 +20,7 @@ jobs: # Github runners have two installations of vcpkg, one from Visual # Studio and one extra. Use the second one explicitly to avoid mixups. $env:VCPKG_ROOT = "C:\vcpkg" - & $env:VCPKG_ROOT/vcpkg install --triplet x64-windows-static sqlite3 + & $env:VCPKG_ROOT/vcpkg install --triplet x64-windows-static sqlite3[rtree] & $env:VCPKG_ROOT/vcpkg install --triplet x64-windows-static libpq[openssl] cd $env:GITHUB_WORKSPACE/geodiff mkdir build diff --git a/geodiff/src/drivers/sqliteutils.cpp b/geodiff/src/drivers/sqliteutils.cpp index 6d5b020..ebfe9c0 100644 --- a/geodiff/src/drivers/sqliteutils.cpp +++ b/geodiff/src/drivers/sqliteutils.cpp @@ -234,10 +234,11 @@ void register_gpkg_extensions( std::shared_ptr db ) throwSqliteError( db->get(), "Failed to enable SQLite extensions loading" ); } - rc = sqlite3_gpkg_auto_init( db->get(), NULL, NULL ); - if ( rc ) + const char *errmsg = ""; + rc = sqlite3_gpkg_auto_init( db->get(), &errmsg, NULL ); + if ( rc != SQLITE_OK ) { - throwSqliteError( db->get(), "Failed to initialize GPKG extension" ); + throw GeoDiffException( "Failed to initialize GPKG extension [" + std::to_string( rc ) + "]: " + std::string( errmsg ) ); } }