Using Mapnik in XCode Project

View: New views
2 Messages — Rating Filter:   Alert me  

Using Mapnik in XCode Project

by Eddie Scholtz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Let me preface this with the fact that I'm new to Mac, XCode, and Mapnik (have always programmed for Windows). I've successfully installed and built Mapnik using SCons and run the demo. Now I'm attempting to get the bulk of rundemo.cpp compiling in an XCode project (iPhone). I've added numerous Header/Library Search Paths that seem appropriate but I'm still getting lots of compiler errors/warnings.

Could someone outline the steps one would need to take in order to get the functionality of rundemo.cpp compiling within an XCode project?

Thanks,
Eddie

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Using Mapnik in XCode Project

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Eddie,

I'd recommend rebuilding mapnik using SCons and watching the compile  
and link flags that are sent to gcc to build rundemo, then manually  
add those in XCode.

Building rundemo is off by default in Scons so do:

python scons/scons.py DEMO=True

The reason it is off is that most users won't have cairo support and  
the build of rundemo will not work until we fix http://trac.mapnik.org/ticket/285 
  by adding compiler flags that will skip the need for cairo if not  
available, like the rest of the Mapnik code base.

You can see all the options by doing 'python scons/scons.py -h'

Dane


On Jun 20, 2009, at 12:50 PM, Eddie Scholtz wrote:

> Hi,
>
> Let me preface this with the fact that I'm new to Mac, XCode, and  
> Mapnik (have always programmed for Windows). I've successfully  
> installed and built Mapnik using SCons and run the demo. Now I'm  
> attempting to get the bulk of rundemo.cpp compiling in an XCode  
> project (iPhone). I've added numerous Header/Library Search Paths  
> that seem appropriate but I'm still getting lots of compiler errors/
> warnings.
>
> Could someone outline the steps one would need to take in order to  
> get the functionality of rundemo.cpp compiling within an XCode  
> project?
>
> Thanks,
> Eddie
> _______________________________________________
> Mapnik-users mailing list
> Mapnik-users@...
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users