-
Notifications
You must be signed in to change notification settings - Fork 7
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
Enable cairo python bindings? #9
Comments
Browsing the code, looks like I need to make sure HAVE_PYCAIRO is defined aswell - I suppose this will not be enough though, because So I'm thinking I need to install pycairo, then ensure that my python\include directory where pycairo.h is hopefully gonna turn up is in my list of includes for mapnik-gyp... |
Any info on this? I suspect I am simply not correctly defining library paths in the gyp file, but there isn't much to go on to figure it out.... |
Adding Easy when you know how - this could really do with documenting. |
Mapnik built with pycairo, but attempting to render to a pycairo context causes the python interpreter to hang. Clearly there is something not right in the build... |
I think you are on the right track. I've never tried to get pycairo working on windows, so thanks for helping with this. Can you describe how to installed pycairo exactly? |
Here is what I've done (evidently it is wrong as mapnik won't render with cairo, but mapnik does build happily) Ok..the version of pycairo I had installed when building was py2cairo-1.10.0 and I just downloaded the installer from gohlke (http://www.lfd.uci.edu/~gohlke/pythonlibs/) and ran it. That gave me a In the gyp & bat file, I made sure that the python version being used was the one to which I had installed pycairo. In the This was it. Mapnik builds and tests pass. Then I tried to run python with mapnik/cairo. First it complained about missing dll's and I followed a tutorial in issue #22 to fill in the missing deps. Cairo then works from python, but attempting to call There is obv. something bad happening at some point, but I am at a loss as to where. Do we need to build our own pycairo bindings?. I'll put up a step-by-step of what I changed in the build files a little later... |
How to enable cairo python bindings in the mapnik build?
HAVE_CAIRO
is defined and mapnik builds with cairo support. Butmapnik.have_pycairo()
returns false.The text was updated successfully, but these errors were encountered: