GTK-Framework for Mac OS X (as well as cairo, pango, ….)

Posted February 19th @ 3:07 by Werner

There is no official GTK framework for Mac OS X available. They are working hard on it, but in the moment you are forced to compile the framework on your own, though the instructions don’t look that complicated. You could also use macports or fink, but when I use them I always encounter some problems, if a package doesn’t compile. I found an easy and fast solution to install the GTK framework for Mac OS X (using X11) and you also get cairo, pango and other libraries of the GTK project. Actually it’s done in two simple steps:

  1. Download the GTK_2.18.5-X11.pkg package from http://r.research.att.com/ and install it
  2. Add to your .profile file in the home directory:
  3. export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:$PATH
    

Start Terminal.app and pkg-config is available, which is needed for configure or cmake. That’s it. I actually needed only the cairo and pango library to test the cairo drivers of PLplot on Mac OS X and so far this works without problems. Next I’ll try to compile Gnuplot and and see if this works.

1 Trackbacks/Pingbacks

  1. Pingback: Install Gnuplot 4.4.0 on Mac OS X | miscellaneous.debris on April 22, 2010

Leave a comment

OpenID Login

Standard Login

Options:

Size

Colors