[Haskell-beginners] problems with wxHaskell installation
Miguel Negrao
miguel.negrao-lists at friendlyvirus.org
Mon May 28 19:31:08 CEST 2012
Hi Heinrich,
Thanks for helping out. Seems I’m really unlucky with cabal and wxHaskell...
A 28/05/2012, às 12:57, Heinrich Apfelmus escreveu:
> 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.
When I try to install wx after updating cabal it is failing on version 0.90.0.1:
miguelnegrao at Mac-Miguel:~$ cabal install wx
Resolving dependencies...
Configuring wx-0.90.0.1...
Preprocessing library wx-0.90.0.1...
Building wx-0.90.0.1...
[ 1 of 16] Compiling Graphics.UI.WX.Types ( src/Graphics/UI/WX/Types.hs, dist/build/Graphics/UI/WX/Types.o )
[ 2 of 16] Compiling Graphics.UI.WX.Attributes ( src/Graphics/UI/WX/Attributes.hs, dist/build/Graphics/UI/WX/Attributes.o )
[ 3 of 16] Compiling Graphics.UI.WX.Layout ( src/Graphics/UI/WX/Layout.hs, dist/build/Graphics/UI/WX/Layout.o )
[ 4 of 16] Compiling Graphics.UI.WX.Classes ( src/Graphics/UI/WX/Classes.hs, dist/build/Graphics/UI/WX/Classes.o )
[ 5 of 16] Compiling Graphics.UI.WX.Media ( src/Graphics/UI/WX/Media.hs, dist/build/Graphics/UI/WX/Media.o )
[ 6 of 16] Compiling Graphics.UI.WX.Events ( src/Graphics/UI/WX/Events.hs, dist/build/Graphics/UI/WX/Events.o )
[ 7 of 16] Compiling Graphics.UI.WX.Window ( src/Graphics/UI/WX/Window.hs, dist/build/Graphics/UI/WX/Window.o )
src/Graphics/UI/WX/Window.hs:134:52:
Not in scope: `textCtrlChangeValue'
cabal: Error: some packages failed to install:
wx-0.90.0.1 failed during the building phase. The exception was:
ExitFailure 1
Does this mean that the package that was pushed to cabal has an actual error ? How do I "use the latest patch level releases” of the packages ?
>
> * Your wxWidgets (wxmax) version is reported both as 2.8.12 and 2.9.3.1
right. But that is because the current stable version is 2.8.12 and to use the latest version in homebrew I have to use the switch --devel which will install 2.9.3.1. I followed the instructions here :http://www.haskell.org/haskellwiki/WxHaskell/MacOS_X
best,
Miguel
More information about the Beginners
mailing list