- Download the code files for the GDAL driver.
- Unzip the file.
- Install dependencies from OSGeo4W- OSGeo4W (PROJ, python, sqlite3, zlib).
- Create a directory named build at path <GDAL Code Path> such as D:\gdal-3.9.1\build.
- Download CMake UI from CMake site.
- Start CMake UI.
-
Add the following paths to CMake gui:
source: ../gdal and where to build binaries: ../gdal/build
- Configure it for Visual Studio 2022 and x64 build target configuration.
-
Create variables after installing OSGeo dependencies.
-
Click Configure and then Generate.
- Once complete, Solution (gdal.sln) file will be generated at path <GDAL Code Path>.
-
Enable GDAL_ENABLE_PLUGINS.