Re: Lablgtk2 and Mac OS X
Pascal Cuoq <[email protected]> Tue, 27 Jan 2009 08:53:26 +0100
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
On Jan 26, 2009, at 9:41 PM, Mike Spivey wrote: > On searching online, I wasn't able to find out in advance whether it > would be possible to build lablgtk2 under Mac OS X using the native > "Quartz" port of GTK+. The good news is that it is possible, and in > fact completely straightforward. You just need to install the package > that you can find at http://www.gtk-osx.org, then set PKG_CONFIG_PATH > like this ... Thanks for noting it. It became straightforward in the last release, before that, it was only easy. > export PKG_CONFIG_PATH=\ > /Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig:\ > /Library/Frameworks/GLib.framework/Resources/dev/lib/pkgconfig:\ > /Library/Frameworks/Gtk.framework/Resources/dev/lib/pkgconfig This is a good way for programmers who are only interested in the packages provided in these frameworks. If you need additional gtk+/gnome libraries, an alternative is to use MacPorts to install the quartz variant of gtk+. I usually go back to the InkScape help page for Mac OS X compilation when I forget how to do it: http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX It contains a lot of useful information. Pascal