Hey Ryan,

On May 14, 2009, at 5:44 PM, Ryan Halterman wrote:

Hello,

I've been working with mapnik through the python bindings on windows to render Digital Nautical Chart data and have been extremely impressed. Thanks to all involved for your efforts on this project.


Thats good to hear.

I would like to incorporate mapnik rendering into a win32 application. To this end, I am attempting to build the rundemo.cpp example application in Visual Studio 2008 as a starting point.

Okay, you'll need to comment out the cairo stuff in rundemo.cpp (as you've likely noticed), since Cairo support is not available in the win32 binaries.

Also, the OGR plugin did not make it into the win32 binaries, so your DNC stuff is not going to work via OGR on windows at this point.

We hope to include the OGR plugin in the next release (likely 0.6.1).

Currently, I don't really see a need to build mapnik itself; simply linking against the pre-build binaries is fine.


Well...

I'm running into an unresolved symbol error on mapnik::symbolizer_with_image and found this seemingly related ticket: http://trac.mapnik.org/ticket/94.

Yup, sounds like the problem - not sure how we missed that in the latest release. It's closed now however.

To get rundemo.cpp to compile you can try removing any references to point_symbolizer, shield_symbolizer, or the pattern_symbolizers... which all inherit from the mapnik::symbolizer_with_image.

This would leave the line and polygon symbolizer as potentially working in the demo code.

Is this considered a difficult fix or something that a mapnik amateur might attempt?

Done, but will require a rebuild of the win binaries, which only happens each release cycle at this point.

Is there currently no way to link the mapnik binaries into win32 applications?

Any advice/experience with building win32 apllications that use mapnik would be very appreciated.


I've not done this, but I will need to in the future, so any experiences/lessons you learn make sure to post them to the wiki.

Thanks,
  -- Ryan
_______________________________________________


Welcome!
Dane
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to