BuildWindowsGdalWithAdditionalFormats - Maproom/qmapshack GitHub Wiki

Prev (Windows with VisualStudio 2017 & PROJ version 8) | Home | Manual | Index | (Build QMapShack for Windows using GISInternals) Next


Table of contents


GDAL support for additional map formats

!!!!!!!WORK IN PROGRESS Compiling and Building QMapShack for Windows / VS2107 WORK IN PROGRESS!!!!!!!

If you need GDAL support for the WCS, WMS, WMTS, MBTiles formats, then you need to compile GDAL with zlib, cURL and sqlite.

The following instructions show how to provide these dependencies.

Finally don't forget to activate the usage of those libraries in the nmake.opt from GDAL before compiling GDAL.

zlib

  • download https://zlib.net/zlib1211.zip
  • Read zlib-1.2.11\contrib\vstudio\readme.txt
  • Build instructions for Visual Studio 2015 (32 bits or 64-bits)
    • Decompress current zlib, including all contrib/* files
    • Open contrib\vstudio\vc14\zlibvc.sln with Microsoft Visual C++ 2015
  • as zlib-1.2.11 does not provide a .sln file for VS1017, we have to take the one for VS2015:
  • just let VS2017 convert the sln configuration
  • build the zlibvc project (Release, x64)
  • create a directory M:\lib2017\zlib
  • create a subdirectory bin where you store the zlibwapi.dll created during build
  • create a subdirectory include where you copy all the *.h files from the source
  • create a subdirectory lib where you store the zlibwapi.lib created during build

cURL

  nmake /f Makefile.vc mode=dll 
  nmake /f Makefile.vc mode=dll WITH_DEVEL=M:\lib2017\curl_deps WITH_ZLIB=dll
  • from curl-7.61.0\builds\libcurl-vc-x64-release-dll-zlib-dll-ipv6-sspi-schannel, copy the 3 sub-directories to M:\lib2017\cURL

sqlite

LIB /DEF:sqlite3.def

Additional binaries needed to compile PROJ.4 version 6

To build PROJ.4 version 6, you need also the sqlite executables. See PROJ.4 Installation instructions


Prev (Windows with VisualStudio 2017 & PROJ version 8) | Home | Manual | Index | Top | (Build QMapShack for Windows using GISInternals) Next