Hi,
I have just tried to build wxhaskell on my Intel MacBook Pro, with OSX
10.4 and ghc-6.6.1.
This is how it went:
Here are some notes on my attempt to compile wx-0.10.2 with ghc 6.6 on
an Intel MacOS X 10.4 platform.
Download wxMac-2.6.4.tar.gz from wx official home page.
carried out the following steps:
less INSTALL-MAC.txt
mkdir osx-build
cd osx-build/
../configure --with-opengl
make -j3
sudo make install
then I tested some of the demo apps in-place, and that seemed to work
well. 'bombs', 'life', etc: all seem to work well.
then wxcore:
cd wxcore-0.10.2
./configure
make
sudo make install
the I tried to build wx and discovered I needed a newer version of cabal.
(slight detour while I install cabal 1.2.3)
cd ../wx-0.10.2
runhaskell Setup.lhs configure
runhaskell Setup.lhs build
sudo runhaskell Setup.lhs install
Then I copied the "hello" example from
http://wxhaskell.sourceforge.net/quickstart.html, and it compiled fine!
(Remembering the magic OSX incantation, it looks like this:
ghc --make wxhello.hs
/usr/local/wxhaskell/bin/macosx-app -v wxhello
open wxhello.app/
)
But, it doesn't quite run fine. Where the button is supposed to be
labelled 'Quit', it's labelled 'Q', and where the window itself is
supposed to be labelled "Hello!", it's just labelled 'H'.
So I tried some of the more complex demo apps, like 'ImageViewer.hs'
from samples in the wxcore distribution. Similar weird behaviour. The
window is called "I" not "ImageViewer". The error message dialog says "I
Error" not "ImageViewer Error". The menus are titled "ImageViewer", "&",
and "&". The first item in the ImageViewer menu, which should be "About
ImageViewer" is just "&". If you select it you get a dialog box
containing the two lines "A" and "T".
If you run "Paint.hs", the "rotated text" which is suposed to be drawn
just shows up as "r".
Very very peculiar! Any pointers or suggestions?
Jules
|