[Haskell-beginners] problems with wxHaskell installation
Miguel Negrao
miguel.negrao-lists at friendlyvirus.org
Sat May 26 22:08:21 CEST 2012
Hi
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
Program :
module Main where
import Graphics.UI.WX
main :: IO()
main = start gui
gui :: IO()
gui = do
f <- frame [text := "window"]
txt <- staticText f [text:= "test 123"]
but <- button f [text:="button", on command:=set txt [text:="clicked"]]
check <- checkBox f [text:="test"]
rbox <- radioBox f Vertical ["hello","wold"] []
set f [layout:=
boxed "all" (row 0 [
column 0 [widget check, widget rbox],
boxed "second2" $ column 0 [widget txt, widget but]
])
]
return ()
More information about the Beginners
mailing list