Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows linking problems with node-mapnik@1.4.4 #260

Closed
springmeyer opened this issue May 23, 2014 · 5 comments
Closed

windows linking problems with node-mapnik@1.4.4 #260

springmeyer opened this issue May 23, 2014 · 5 comments

Comments

@springmeyer
Copy link
Member

Hitting:

mapnik_map.obj : error LNK2001: unresolved external symbol "class boost::optional<enum mapnik::scaling_method_e> __cdecl mapnik::scaling_method_from_string(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?scaling_method_from_string@mapnik@@YA?AV?$optional@W4scaling_method_e@mapnik@@@boost@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) [C:\dev2\node-mapnik\build\mapnik.vcxproj]
529mapnik_map.obj : error LNK2001: unresolved external symbol "void __cdecl mapnik::scale_image_agg<class mapnik::ImageData<unsigned int> >(class mapnik::ImageData<unsigned int> &,class mapnik::ImageData<unsigned int> const &,enum mapnik::scaling_method_e,double,double,double,double,double)" (??$scale_image_agg@V?$ImageData@I@mapnik@@@mapnik@@YAXAAV?$ImageData@I@0@ABV10@W4scaling_method_e@0@NNNNN@Z) [C:\dev2\node-mapnik\build\mapnik.vcxproj]
530mapnik_map.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl mapnik::save_to_string<class mapnik::ImageData<unsigned int> >(class mapnik::ImageData<unsigned int> const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??$save_to_string@V?$ImageData@I@mapnik@@@mapnik@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$ImageData@I@0@ABV12@@Z) [C:\dev2\node-mapnik\build\mapnik.vcxproj]
531mapnik_map.obj : error LNK2001: unresolved external symbol "void __cdecl mapnik::reproject_and_scale_raster(class mapnik::raster &,class mapnik::raster const &,class mapnik::proj_transform const &,double,double,unsigned int,double,enum mapnik::scaling_method_e)" (?reproject_and_scale_raster@mapnik@@YAXAAVraster@1@ABV21@ABVproj_transform@1@NNINW4scaling_method_e@1@@Z) [C:\dev2\node-mapnik\build\mapnik.vcxproj]
532C:\dev2\node-mapnik\build\Release\mapnik.node : fatal error LNK1120: 4 unresolved externals [C:\dev2\node-mapnik\build\mapnik.vcxproj]

https://ci.appveyor.com/project/springmeyer/node-mapnik/build/1.0.33/job/52l2kc5laubyrnbb#L528

@springmeyer
Copy link
Member Author

Will need a new Mapnik 2.3.x Windows SDK to fix this with at least mapnik/mapnik@bb67ae0. /cc @BergWerkGIS. Thanks!

@wilhelmberg
Copy link
Contributor

Will provide a new SDK shortly (after solving problem with gdal.input).
See #257

@wilhelmberg
Copy link
Contributor

@wilhelmberg
Copy link
Contributor

AppVeyor works (with my fork):
https://ci.appveyor.com/project/BergWerkGIS/node-mapnik/build/1.0.52

After copying the new SDK to S3 it should work with the MapBox account also.
No other changes required.

@springmeyer
Copy link
Member Author

Fixed, closing!

diorahman pushed a commit to rockybars/node-mapnik that referenced this issue Jun 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants