wxhaskell on freebsd?

Has anyone ever got wxhaskell to work on freebsd? With ghc-6.12.2 binaries I get a very useless message if I try to install with cabal: % cabal install wx Resolving dependencies... [1 of 1] Compiling Main ( /tmp/wxcore-0.12.1.42775/wxcore-0.12.1.4/Setup.hs, /tmp/wxcore-0.12.1.42775/wxcore-0.12.1.4/dist/setup/Main.o ) Linking /tmp/wxcore-0.12.1.42775/wxcore-0.12.1.4/dist/setup/setup ... generating: src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs reading class definitions: parsing: src/include/wxc.h parsing: src/include/wxc_types.h parsing: src/include/wxc_glue.h parsing: src/include/db.h parsing: src/include/dragimage.h parsing: src/include/graphicscontext.h parsing: src/include/sound.h parsing: src/include/managed.h parsing: src/include/mediactrl.h parsing: src/include/previewframe.h parsing: src/include/printout.h parsing: src/include/textstream.h parsing: src/include/stc.h parsing: src/include/stc_gen.h generated 539 class definitions. ok. generating: src/haskell/Graphics/UI/WXCore/WxcClassInfo.hs reading class definitions: parsing: src/include/wxc.h parsing: src/include/wxc_types.h parsing: src/include/wxc_glue.h parsing: src/include/db.h parsing: src/include/dragimage.h parsing: src/include/graphicscontext.h parsing: src/include/sound.h parsing: src/include/managed.h parsing: src/include/mediactrl.h parsing: src/include/previewframe.h parsing: src/include/printout.h parsing: src/include/textstream.h parsing: src/include/stc.h parsing: src/include/stc_gen.h generated 381 class info definitions ok. parsing: src/include/wxc.h parsing: src/include/wxc_types.h parsing: src/include/wxc_glue.h parsing: src/include/db.h parsing: src/include/dragimage.h parsing: src/include/graphicscontext.h parsing: src/include/sound.h parsing: src/include/managed.h parsing: src/include/mediactrl.h parsing: src/include/previewframe.h parsing: src/include/printout.h parsing: src/include/textstream.h parsing: src/include/stc.h parsing: src/include/stc_gen.h ignore: parse error : //WXCOLORREF wxColour_GetPixel( TSelf(wxColour) _obj ); generating: src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs reading class definitions: parsing: src/include/wxc.h parsing: src/include/wxc_types.h parsing: src/include/wxc_glue.h parsing: src/include/db.h parsing: src/include/dragimage.h parsing: src/include/graphicscontext.h parsing: src/include/sound.h parsing: src/include/managed.h parsing: src/include/mediactrl.h parsing: src/include/previewframe.h parsing: src/include/printout.h parsing: src/include/textstream.h parsing: src/include/stc.h parsing: src/include/stc_gen.h generated 1560 methods for 120 classes. generating: src/haskell/Graphics/UI/WXCore/WxcClassesMZ.hs generated 2184 methods for 123 classes. generating: src/haskell/Graphics/UI/WXCore/WxcClasses.hs generated 3744 total methods for 243 total classes. ok. parsing: src/eiffel/wxc_defs.e parsing: src/eiffel/wx_defs.e parsing: src/eiffel/stc.e generating: src/haskell/Graphics/UI/WXCore/WxcDefs.hs generated 2439 constant definitions ok. setup: failed cabal: Error: some packages failed to install: wx-0.12.1.4 depends on wxcore-0.12.1.4 which failed to install. wxcore-0.12.1.4 failed during the configure step. The exception was: ExitFailure 1 I would like to try this on freebsd and before I look into it in any depth I was wondering if anyone has already ported it to save any dupe efforts. Thanks.

On Wed, May 19, 2010 at 6:11 AM, Tim Matthews
Has anyone ever got wxhaskell to work on freebsd?
Yep, I have used it with 6.10.4 back then in February. I added GHC 6.10.4 (lang/ghc) and wxGTK 2.8.10 (x11-toolkits/wxgtk28-unicode) together with their dependencies from the Ports Collection, installed a fresh cabal-install (0.8.0) manually from sources, added ~/.cabal/bin to my PATH (having wxdirect), removed the latest Cabal library (1.8.0.2) from my ~/.cabal directory with `ghc-pkg unregister Cabal` (since it will not build wxHaskell) then issued `cabal update && cabal install wx` (though it requires a symbolic link from wx-config to wxgtk2u-2.8-config). After then, I managed to compile and run the example sources (Hello.hs and BouncingBalls.hs) from the wxHaskell Wiki without any problems. I do not know whether it works with GHC 6.12.2 though. Cheers, :g

On Wed, May 19, 2010 at 7:09 PM, Gabor PALI
On Wed, May 19, 2010 at 6:11 AM, Tim Matthews
wrote: Has anyone ever got wxhaskell to work on freebsd?
Yep, I have used it with 6.10.4 back then in February.
I added GHC 6.10.4 (lang/ghc) and wxGTK 2.8.10 (x11-toolkits/wxgtk28-unicode) together with their dependencies from the Ports Collection, installed a fresh cabal-install (0.8.0) manually from sources, added ~/.cabal/bin to my PATH (having wxdirect), removed the latest Cabal library (1.8.0.2) from my ~/.cabal directory with `ghc-pkg unregister Cabal` (since it will not build wxHaskell) then issued `cabal update && cabal install wx` (though it requires a symbolic link from wx-config to wxgtk2u-2.8-config).
After then, I managed to compile and run the example sources (Hello.hs and BouncingBalls.hs) from the wxHaskell Wiki without any problems.
I do not know whether it works with GHC 6.12.2 though.
Cheers, :g
I assumed wx would be required to install and the only additional thing I had to do to get 'cabal install wx' and wxhaskell 'hello world' sample to work was 'ln -s /usr/local/bin/wxgtk2-2.8-config /usr/local/bin/wx-config'. I will probably ask the port maintainer to create this sym link by default. Thanks a lot.
participants (2)
-
Gabor PALI
-
Tim Matthews