Graphics with XDarwin on Mac OS X
Alastair Reid
reid@cs.utah.edu
13 Jun 2002 01:42:17 +0100
In case anyone thinks my instructions for using HGL on Darwin sound a
bit tricky, I've put together a current CVS snapshot and a patched
copy of the HGL.
You can get them from:
http://haskell.org/graphics-darwin/
To install (assuming you put them in $HOME)
cd $HOME
mkdir local # or wherever you like to do this
cd local
tar zxvf ../hugs98-120602.tgz
cd hugs98/src/unix
./configure --prefix=$HOME/local --with-readline
cd ..
make
make install
cd ../..
tar zxvf ../graphics-2.0.4.a.src.tar.gz
cd graphics-2.0.4/lib/x11
make system=MacOSX CC=cc LD=cc
cd ../../demos
$HOME/local/bin/hugs -P$HOME/local/graphics-2.0.4/lib/x11: HelloWorld.hs
main
(On the machine I tested this on, readline wasn't installed. The
install continued anyway but it'd be best to install readline and
reinstall.)
Enjoy!
--
Alastair Reid Reid Consulting (UK) Ltd