views:

16

answers:

0

I'm having difficulties building the pangocairo bindings on my OSX 10.6 machine and would like to know how to proceed.

To sketch the background, I'm writing a wxwindows application in Python with wxpython that draws on a cairo canvas. I have been able to compile all dependencies for this with the extra difficulty that I need 32bit (instead of the native 10.6 64 bit) binaries because of wxpython. For this, I followed the steps from this post:http://stackoverflow.com/questions/1500866/how-to-install-pycairo-on-osx I added '-m32' to the CFLAGS for 32bit compatibility and that works.

To be able to do some decent font rendering, I want to use pangocairo, but it seems that pango is deeply rooted into GTK, which has no native OSX support.

I installed GTK 2.8.5-X11 from the R package (http://r.research.att.com/), hoping I could then compile pygtk against that one, but that does not work either.

Also, as an added difficulty, I don't want (cannot) use X11, so macports or fink is out of the question and I believe the R GTK version as well. However, as I only want to use pango, I believe I can get away with it...

In the end I want a native OSX app, written in python using wxwindows, cairo and pango ;-)