After successfully working with node-mapnik (and the gorgeous vector tiles) on Linux I'm trying to set them up on Windows too, but have come to a dead end.
What I've done so far:
- Installed mapnik 2.2.0 SDK and added the bin and lib directories to the PATH.
npm install mapnikshows an error about a missing cairo header file.
- Cloning the repository and adding the cairo directory to
binding.gypsolved the header issue.
- Next error is about the target architecture (32 vs. 64bit), because the generated solution is 64bit only. I solved this by adjusting the gyp config parameters to get a Win32 target.
Next errors are about missing boost libraries. I followed the tutorial on how to build mapnik dependencies on Windows to the letter and added the
boost-49-vc100\libdirectory to the
AdditionalLibraryDirectories. Which results in this error:
Creating library C:\dev2\node-mapnik\node-mapnik\build\Release\_mapnik.lib and object C:\dev2\node-mapnik\node-mapnik\build\Release\_mapnik.exp LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library [C:\dev2\node-mapnik\node-m apnik\build\_mapnik.vcxproj] mapnik_image_view.obj : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const & )" (?throw_exception@boost@@YAXABVexception@std@@@Z) [C:\dev2\node-mapnik\ node-mapnik\build\_mapnik.vcxproj] C:\dev2\node-mapnik\node-mapnik\build\Release\_mapnik.node : fatal error LNK1120: 1 unresolved externals [C:\dev2\node-mapnik\node- mapnik\ build\_mapnik.vcxproj]
Any suggestions on how to get node-mapnik (with vector tile support) running on Windows?