
A 28/04/2012, às 15:50, Heinrich Apfelmus escreveu:
Miguel Negrao wrote:
I had a try again at running the examples of reactive-banana-wx. I unpacked reactive-banana-wx-0.5.0.0. I have installed wx and wxcore version 0.13.1, that’s what I managed to install at some point (I think there were some issue with OSX Lion on previous versions). So I changed the cabal setup of reactive-banana-wx-0.5.0.0 to wx==0.13.1, wxcore==0.13.1 and then did 'cabal install -fbuildExamples’ and everything builds. Most of the examples run fine, although the resize of the window is completely hacky, all the widgets assume strange proportion and become almost unusable (http://img440.imageshack.us/img440/1149/capturadeecr20120428s14.png) . The asteroids app (which was the one I wanted to have look at) the window becomes just a couple pixels, so I can’t see anything (http://img33.imageshack.us/img33/1149/capturadeecr20120428s14.png). Is there a problem in using wx 0.13.1 ? Btw, wx 0.90 "Builds and runs cleanly on 64 bit platforms (particularly MacOS X Lion)”. Would reactive-banana-wx work with wx0.9.0 ?
Ah, it looks like your version of wx got linked with wxWidgets 2.9.3 instead of wxWidgets 2.8 . This introduces various issues, in particular the ones you ran into.
Ah, ok, I did that by mistake, must have installed the wrong version of wxWidgets.
If you just want to try a few examples with wxWidgets 2.9.3, you can install reactive-banana-0.6.0.0 and the corresponding -wx packages from the master branch at
https://github.com/HeinrichApfelmus/reactive-banana
This should work with wx-0.90 (though some examples crash), but I can't give any guarantees whether the official 0.6 version that I'm going to release on hackage will have the exact same API.
That said, I'm basically just waiting for Jeremy to release a small patch to wx on hackage that fixes some of these issues (for instance the strangely minimized text entries and the crashes). After that, I'm going to release reactive-banana-0.6.0.0 that depends on wx-0.90.
Since I have wxWidgets 2.9.3 installed already I might as well give it a try with reactive-banana-0.6. I installed wx-0.90 and wxcore-0.90 and reactive-banana-0.6.0 (from git) without issues. I couldn’t install reactive-banana-wx though, I get this error: Configuring MissingH-1.1.1.0... Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package regex-base-0.93.2 requires mtl-2.0.1.0 package parsec-3.1.1 requires mtl-2.0.1.0 package parsec-3.1.1 requires mtl-2.1 package hslogger-1.1.5 requires mtl-2.1 package MissingH-1.1.1.0 requires mtl-2.1 package MissingH-1.1.1.0 requires parsec-3.1.1 package network-2.3.0.5 requires parsec-3.1.1 package mtl-2.0.1.0 requires transformers-0.2.2.0 package mtl-2.1 requires transformers-0.3.0.0 Preprocessing library MissingH-1.1.1.0... Preprocessing executables for MissingH-1.1.1.0... Building MissingH-1.1.1.0... <command line>: cannot satisfy -package-id parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e: parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e is shadowed by package parsec-3.1.1-fb91ea6e6c1f9c50292782ec985e5f9a (use -v for more information) Updating documentation index /Users/miguelnegrao/Library/Haskell/doc/index.html cabal: Error: some packages failed to install: MissingH-1.1.1.0 failed during the building phase. The exception was: ExitFailure 1 cabal-macosx-0.2 depends on MissingH-1.1.1.0 which failed to install. reactive-banana-wx-0.6.0.0 depends on MissingH-1.1.1.0 which failed to install. Thanks ! Miguel Negrão ps: Does reactive-banana also have time functions like it is described in conal’s papers ? i.e. can I just animate something with a function like cos (t) or do I have to explicitly create timers myself ? ps2: Sorry yet again for mailing you personally... I just can’t seem to remember that this list operates via cc and not reply...