From: Neil B. <njb...@gm...> - 2007-12-03 10:43:40
|
Thanks shelarcy. I have followed these suggestions but I get exactly the same error when building wxHaskell from darcs. Should I use the patched wxHaskell 0.9.4 from Riftor's site? If so, will that patch be merged back into the darcs repository? Incidentally I tried to use 2.6.4, but then wxWidgets itself does not build. I think due to some changes in the Carbon APIs in Mac OS X Leopard. Many thanks, Neil On 3 Dec 2007, at 04:49, shelarcy wrote: > Hi Neil, > > On Mon, 03 Dec 2007 06:21:01 +0900, Neil Bartlett <njb...@gm... > > wrote: >> Could somebody confirm the correct version of wxWidgets to compile >> against for >> Mac OS X? The website states that wxMAC 2.5.1 is required, but >> several parts of >> the website appear to be out of date, and also 2.5.1 is more than >> three years >> old now. > > wxHaskell uses deprecated wxWidgets 2.4 API. > So you must use previous stable version - wxWidgets 2.6.x - or > wxWidets 2.8.x > with compatiblily mode for wxWidgets 2.4 API. > >> I have tried compiling a recent checkout of wxHaskell with wxMAC >> 2.8.7 and GHC 6.8, >> but the following error occurs: > > Because you don't use compatiblity mode. > You must add --enable-compat24 option in configuration phase. > > ./configure --enable-unicode --disable-shared --enable-compat24 > > And after installing wxWidgets, you must set > #define WXWIN_COMPATIBILITY_2_4 1 to your wxHaskell's setup.h. > > http://riftor.g615.co.uk/content.php?view=53&type=2 > http://www.haskell.org/pipermail/libraries/2007-June/007653.html > > > And Jeremy is working on supporting wxWidget 2.8 API now. > See below thread. > http://www.mail-archive.com/wxh...@li.../msg00180.html > > > Best Regards, > > -- > shelarcy <shelarcy hotmail.co.jp> > http://page.freett.com/shelarcy/ |