Hello Dane,

2010/2/3 Dane Springmeyer <[email protected]>:
> This indicates that either Cairo or PyCairo headers were not found when you
> ran:
>
> $ python scons/scons.py configure
>
> So Mapnik was built without Cairo support.
>
> You can confirm that this is the case by running these functions:
>
>>>> import mapnik
>>>> mapnik.has_cairo()
> True

I had False so I was in this case.

>>>> mapnik.has_pycairo()
> True
>
> You need both of those to report True for the ability to render Cairo
> contexts/surfaces via the Mapnik Python bindings.
>
> So, try reconfiguring Mapnik and rebuilding.
>
> python scons/scons.py CAIRO=True
>
> On Ubuntu Karmic there is a bug in the cairomm package
> (https://bugs.launchpad.net/ubuntu/+source/cairomm/+bug/452733)  that make
> pkg-config fail to configure propertly and in turn tells Mapnik that Cairo
> support is not available. See my notes here for a solution:
>
> http://trac.mapnik.org/wiki/UbuntuInstallation#InstallMapnikfromsource

Many thanks for the documentation. After installing the needed
packages (libsigc++-dev libsigc++0c2 libsigx-2.0-2 libsigx-2.0-dev)
and recompiling Mapnik with CAIRO=True it works like a charm.

Many thanks!

Best regards,
d.
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to