Hi, this is my first exp about using mailling list. Try a post, uh:) Here I describe my successfully steps to install wxHaskell on Mac OS X Panther. Donot hesitate to contact me: [EMAIL PROTECTED] if you've any problems/suggestions about this short description.
System Description Machine: Apple Inc. iBook G3 800 MHz http://www.apple.com OS: Mac OS X Panther 10.3.8 http://www.apple.com/macosx/ Haskell: ghc 6.4 binary http://www.haskell.org/ghc/ wxWidgets: wxMac-2.5.4 source http://www.wxwidgets.org wxHaskell: wxhaskell-src-0.9 source http://wxhaskell.sourceforge.net Pre-step. ghc 6.4 Installation Download GHC-6.4.pkg.zip and install it. Step 1. wxWidgets Installation > Download wxMac-2.5.4.tar.gz $ tar xvfz wxMac-2.5.4.tar.gz $ cd wxMac-2.5.4 $ ./configure --enable-opengl --disable-shared --with-odbc --with-opengl --enable-sound $ make $ sudo make install Step 2. wxHaskell Installation (Don't try to install binary package wxhaskell-bin-mac2.5.4-ghc6.2-0.9-0.dmg. error.) > Download wxhaskell-src-0.9.zip, and extract to wxhaskell-0.9 $ sudo rm -rf /usr/local/wxhaskell (clean old installations if any) $ cd wxhaskell-0.9 $ ./configure $ make wxc/src/db.cpp:1149: error: 'class wxDbColInf' has no member named 'columnSize' > Modify wxc/src/db.cpp, uncomment line 5: #define wxUSE_ODBC 0 $ make ghc -c wxdirect/src/MultiSet.hs -o out/wxdirect/MultiSet.o -ohi out/wxdirect/MultiSet.hi -odir out/wxdirect/ -package parsec -iout/wxdirect Could not find module `Map': use -v to see a list of the files searched for (imported from wxdirect/src/MultiSet.hs) $ make ghc -c wxdirect/src/HaskellNames.hs -o out/wxdirect/HaskellNames.o -ohi out/wxdirect/HaskellNames.hi -odir out/wxdirect/ -package parsec -iout/wxdirect Could not find module `Set': use -v to see a list of the files searched for (imported from wxdirect/src/HaskellNames.hs) > Continously restart make manually until no such error occurs > Modify config/wx.pkg and wxcore.pkg (Be careful of name WXCore! It shouldn't > be WXCORE in wxcore.pkg) to the following: --wx.pkg-- name:"wx" exposed:True exposed-modules:Graphics.UI.WX,Graphics.UI.WX.Attributes,Graphics.UI.WX.Classes,Graphics.UI.WX.Controls,Graphics.UI.WX.Dialogs,Graphics.UI.WX.Draw,Graphics.UI.WX.Events,Graphics.UI.WXFrame,Graphics.UI.WX.Layout,Graphics.UI.WX.Media,Graphics.UI.WX.Menu,Graphics.UI.WX.Timer,Graphics.UI.WX.Types,Graphics.UI.WX.Variable,Graphics.UI.WX.Window import-dirs:/usr/local/wxhaskell/lib/imports library-dirs:/usr/local/wxhaskell/lib hs-libraries:"wx" depends:"wxcore" --wxcore.pkg-- name:"wxcore" exposed:True exposed-modules:Graphics.UI.WXCore,Graphics.UI.WXCore.Controls,Graphics.UI.WXCore.Frame,Graphics.UI.WXCore.Process,Graphics.UI.WXCore.WxcClassesMZ,Graphics.UI.WXCore.Db,Graphics.UI.WXCore.Image,Graphics.UI.WXCore.Types,Graphics.UI.WXCore.WxcDefs,Graphics.UI.WXCore.Defines,Graphics.UI.WXCore.IntMap,Graphics.UI.WXCore.WxcClassInfo,Graphics.UI.WXCore.WxcObject,Graphics.UI.WXCore.Dialogs,Graphics.UI.WXCore.Layout,Graphics.UI.WXCore.WxcClassTypes,Graphics.UI.WXCore.WxcTypes,Graphics.UI.WXCore.Draw,Graphics.UI.WXCore.OpenGL,Graphics.UI.WXCore.WxcClasses,Graphics.UI.WXCore.Events,Graphics.UI.WXCore.Print,Graphics.UI.WXCore.WxcClassesAL import-dirs:/usr/local/wxhaskell/lib/imports library-dirs:/usr/local/wxhaskell/lib hs-libraries:"wxcore","wxcore0","wxcore1","wxcore2" extra-libraries:"wxc-mac2.5.4-0.9" depends: "base","lang","haskell98","concurrent" $ sudo make install $ cd samples/wx $ ghc -v -package wx -o helloworld HelloWorld.hs $ /usr/local/wxhaskell/bin/macosx-app helloworld $ open helloworld.app > You must succeed! Enjoy! Updated: 2005-03-24 _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell