mapbox / windows-builds

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

Mapnik compilation in test\unit\numerics\enumeration.cpp #79

Closed jc101 closed 8 years ago

jc101 commented 8 years ago

Hi - I've just tried rebuilding the latest codebase; getting an error on enumeration.cpp in the test project:

..\..\test\unit\numerics\enumeration.cpp(22): error C2720: mapnik::enumeration<mapnik::_test_enumeration_enum,2>::our_strings_': '__declspec(dllimport)' storage-class specifier illegal on members [D:\Documents\GitHub\windows-builds\packages\mapnik-master\mapnik-gyp\build\test.vcxproj]

..\..\test\unit\numerics\enumeration.cpp(22): error C2491:'mapnik::enumeration<mapnik::_test_enumeration_enum,2>::our_strings_': definition of dllimport static data member not allowed 

..\..\test\unit\numerics\enumeration.cpp(22): error C2086: 'const char ** mapnik::enumeration<enum mapnik::_test_enumeration_enum,2>::our_strings_': redefinition [D:\Documents\GitHub\windows-builds\packages\mapnik-master\mapnik-gyp\build\test.vcxproj]

I'll try rolling back to a previous branch for the time being.

wilhelmberg commented 8 years ago

Also tracking here: https://github.com/mapnik/mapnik/issues/3290

For the time being I've created a new flag to skip building of tests:

settings "MAPNIK_BUILD_TESTS=0"

Please pull windows-builds before using this.

springmeyer commented 8 years ago

Fixed upstream: https://github.com/mapnik/mapnik/issues/3290