Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created November 22, 2011 05:51
Show Gist options
  • Save springmeyer/1385002 to your computer and use it in GitHub Desktop.
Save springmeyer/1385002 to your computer and use it in GitHub Desktop.
mapnik windoze steps (working on windoze 7)
set PATH=%PATH%;c:\msysgit\msysgit\bin;c:\cygwin\bin;C:\Program Files (x86)\GnuWin32\bin
set ROOTDIR=c:\dev2
cd %ROOTDIR%
mkdir packages
set PKGDIR=%ROOTDIR%/packages
set ZLIB_VERSION=1.2.5
set LIBPNG_VERSION=1.5.6
set PIXMAN_VERSION=0.22.2
set CAIRO_VERSION=1.10.2
set JPEG_VERSION=8c
set FREETYPE_VERSION=2.4.7
set POSTGRESQL_VERSION=9.1.1
set TIFF_VERSION=4.0.0beta7
set PROJ_VERSION=4.7.0
set GDAL_VERSION=1.8.1
set ICU_VERSION=4.8
set LIBXML2_VERSION=2.7.8
set LIBSIGC++_VERSION=2.2.10
set CAIROMM_VERSION=1.10.0
set SQLITE_VERSION=3070900
# run instructions at https://github.com/mapnik/mapnik-packaging/blob/master/windows/building_mapnik_dependencies.md
# then:
cd %ROOTDIR%
git clone https://github.com/mapnik/mapnik.git
git clone https://github.com/mapnik/mapnik-packaging.git
cd mapnik-packaging\windows
# now edit the built_mapnik.bat to match you settings
# and run it!
build_mapnik 1> build.log
# Note: you also may need to edit boost-build/site-config.jam
# now copy various dependency dll's into the mapnik lib dir
set TARGET=c:\mapnik-2.0\lib
copy icu\bin\icuuc48.dll %TARGET%
copy icu\bin\icudt48.dll %TARGET%
copy libxml2\win32\bin.msvc\libxml2.dll %TARGET%
copy cairo\src\release\cairo.dll %TARGET%
copy cairomm\MSVC_Net2010\cairomm\Win32\Release\cairomm-vc100-1_0.dll %TARGET%
copy "libsigc++\MSVC_Net2010\Win32\Release\sigc-vc100-2_0.dll" %TARGET%
# then copy data directory
copy mapnik\demo\data c:\mapnik-2.0\demo
cd "c:\mapnik-2.0\demo\c++"
rundemo ..\..\lib\mapnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment