Description
I've downloaded Mapnik v2.2.0 SDK and have VC++ 2008, 2010 and 2012 now installed on my server. The Mapnik demos work without issues, but when I try installing node-mapnik (npm install mapnik on the command line) I get errors during node-gyp rebuild compiling one of the files. The first few errors are as follows:
..\src\mapnik_palette.cpp(90): error C2079: 'str' uses undefined class 'std::ba
sic_ostringstream<_Elem,_Traits,_Alloc>' [c:\Tools\node_modules\mapnik\build_m
apnik.vcxproj]
with
[
_Elem=char,
_Traits=std::char_traits,
_Alloc=std::allocator
]
..\src\mapnik_palette.cpp(90): error C2440: 'initializing' : cannot convert fro
m 'const char [1]' to 'int' [c:\Tools\node_modules\mapnik\build_mapnik.vcxproj
]
There is no context in which this conversion is possible
..\src\mapnik_palette.cpp(91): error C2297: '<<' : illegal, right operand has t
ype 'const char [10]' [c:\Tools\node_modules\mapnik\build_mapnik.vcxproj]
(Similar errors continue throughout the rest of that script, I can provide the whole console output if needed).
The rest of the source seems to compile with just warnings, but when mapnik_palette.cpp appears in the list I get a slew of red. I'm hoping it's something simple.
Any advice would be very much appreciated.
Thanks,
Chris