[Haskell-beginners] problems with wxHaskell installation

Heinrich Apfelmus apfelmus at quantentunnel.de
Mon May 28 13:57:37 CEST 2012


Miguel Negrao wrote:
> I had wxHaskell working but since I installed the gtk2hs, which updated some packages I’m having some trouble. I’ve installed wxWidgets  and wxHaskell again following the instructions in it’s webpage.  When I compile a simple wxHaskell program* I get this error:
> 
> dyld: Symbol not found: _wxTheAssertHandler
>   Referenced from: /Users/miguelnegrao/Library/Haskell/ghc-7.0.4/lib/wxc-0.90.0.3/lib/libwxc.dylib
>   Expected in: /usr/local/lib/libwx_baseu-2.9.3.0.0.dylib
>  in /Users/miguelnegrao/Library/Haskell/ghc-7.0.4/lib/wxc-0.90.0.3/lib/libwxc.dylib
> Trace/BPT trap: 5
> 
> How can I fix this ?
> 
> thank you,
> Miguel Negrão
> 
> I’m on OSX 10.7.3 
> haskell platform with ghc 7.0.4
> brew info wxmac
> wxmac 2.8.12
> http://www.wxwidgets.org
> /usr/local/Cellar/wxmac/2.9.3.1 (764 files, 26M) *
>   Installed with: --devel
> https://github.com/mxcl/homebrew/commits/master/Library/Formula/wxmac.rb
> cabal info wx
> * wx               (library)
>     Synopsis:      wxHaskell
>     Versions available: 0.11.1.0, 0.11.1.2, 0.12.1.4, 0.12.1.5, 0.12.1.6,
>                         0.13.2, 0.13.2.1, 0.90, 0.90.0.1 (and 10 others)
>     Versions installed: 0.13.1, 0.90

I don't really know what's going on, but there seem to be two potential 
issues:

* Your wx package has version 0.90 while your wxc package has version 
0.90.0.3. I recommend to use the latest patch level releases of all 
three: wx, wxcore and wxc.

* Your wxWidgets (wxmax) version is reported both as 2.8.12 and 2.9.3.1



Best regards,
Heinrich Apfelmus

--
http://apfelmus.nfshost.com




More information about the Beginners mailing list