You will need to find nf for your installed GHC by running Unfortunately, to build any libraries depending on Gtk2Hs, such as Chart, you need to edit one more file. Right now you should be able to run the demos. configure -with-pkgconf=/Users/$USER/.ghc/i386-darwin-6.10.4/nf -prefix=/Users/$USER/Library/Haskell/packages/gtk2hs -disable-split-objs -disable-gio
XQUARTZ 2.7.5 MAC OS X
configure -disable-split-objs -disable-gioĪlternatively, if you wish to follow the Mac OS X style of directory layout, you can use this configure command instead: Go to the directory where gtk2hs is untarred and run.from MacPorts like this (note that the +universal is needed if you already installed gtk or one of its dependencies, it is recommended you reinstall those as detailed in the NB at the end of this section).
XQUARTZ 2.7.5 DOWNLOAD
XQUARTZ 2.7.5 HOW TO
This explains how to install Gtk2Hs-0.10.1 on Mac OS X 10.6 Snow Leopard, in combination with GTK+ from MacPorts.
XQUARTZ 2.7.5 UPDATE
HomeBrew (32 bit, last checked 2011-08) brew update Building (as cited in gtk2hs mac instructions) with Accepting the XCode 4.4 command line tool's license:Įxport PKG_CONFIG_PATH=~/Source/gtk/source/libpng-1.4.8/:/opt/X11/lib/pkgconfigĤ.4. In the above step 3 (cabal install gtk) I had errors that were resolved by:Ĥ.1 Fixing any detail reported by "brew doctor"Ĥ.2. This OS release uses xquartz project X11 implementation, that may yield errors while building the package. configure -prefix /usr/local/stow/freetype-2.4.8 These instructions come from a gist by Carter Schonwaldġ. However, it will not work with gcc versions <= 4.2.Įxport PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig Install Haskell GTK with gcc 4.8, it might work with other versions of gcc that you already have installed. If the window does not open you might have forgotten to logout and login.Ĥ. Verify whether gtk installed correctly by executing gtk-demo. Install the gtk library and dependenciesīrew install glib cairo gtk gettext fontconfig Install XQuartz ( download) at the time these instruction were written version 2.7.5 worked.Ģ. Unfortunately, if you have an older 32bit version these instructions will work but all the programs using gtk will fail to compile.ġ. Make sure that the system you are using has the 64bit version of the Haskell platform installed. These instructions are an update of the HomeBrew installation shown below (2008) for Mavericks.
![xquartz 2.7.5 xquartz 2.7.5](https://i.imgur.com/Uzqpe0X.png)
HomeBrew OS X Mavericks (64 bit, last checked 2014-05) Otherwise compiling gtk will fail.Īt the time of writing, the versions installed with these commands are alex-3.1.7, happy-1.19.5, gtk2hs-buildtools-0.13.2.1, glib-0.13.4.0, gtk-0.14.5. Make sure you install the gtk package with the flag -f have_quartz-gtk. If they are not installed separately, compiling them fails. The same goes for glib with respect to gtk. For some reason, they must be installed separately prior to installing gtk2hs-buildtools. The packages alex and happy are dependencies of dependencies of ghk2hs-buildtools. Set an environment variable to allow pkg-config to find the file gtk+-2.0.pc (mine is located at /usr/local/lib/pkgconfig):Įxport PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:Ĥ. Install GTK and the required librariesīrew install glib cairo gtk gettext fontconfig freetypeģ. Install XQuartz (version 2.7.9 at the time of writing):Ģ.
![xquartz 2.7.5 xquartz 2.7.5](https://polynew.weebly.com/uploads/1/2/5/1/125186745/808175637.jpg)
HomeBrew OS X El Capitan (64 bit, last checked 2016-08)ġ. 3 HomeBrew OS X Mavericks (64 bit, last checked 2014-05).2 HomeBrew OS X El Capitan (64 bit, last checked 2016-08).