mapbox / windows-builds

DEPRECATED! build scripts for mapnik dependencies, mapnik, node-mapnik, node, libosmiom, osmium-tool
38 stars 22 forks source link

Compile all deps with Nov 2013 CTP #5

Closed wilhelmberg closed 9 years ago

wilhelmberg commented 9 years ago

/cc @springmeyer

When building mapnik/gyp with c++11, it seems that all deps libs have to be compiled with the CTP, too:

The object or library file 'C:\dev2\mapnik-sdk\libs\libtiff.lib' was created with an older compiler than other objects; rebuild old objects and libraries

To make this work, only adding the CTP bin path seems necessary:

set PATH=C:/Program Files (x86)/Microsoft Visual C++ Compiler Nov 2013 CTP/bin;%PATH%

e.g. How do I build Boost 1.55 with Visual Studio 2013 CTP November 2013

Caution! No instructions how to use CTP Nov 2013 from the visual studio command prompt :

Using the out of band CTP from the command line was not one of our target scenarios. However, it is technically possible to set up the PATH/INCLUD/LIB environment variables in such a way that the CTP compiler can be accessed. Since the CTP ships only with a partial set of headers the INCLUDE path must point to the CTP include folder, followed by the regular VS2013 include path.