Re: [Haskell-cafe] OpenAL bindings?
Hi, On Sun, 08 Jan 2012 16:49:40 +0900, Jason Dagit dag...@gmail.com wrote: I see that the following darcs repositories are available on the community server: http://code.haskell.org/OpenAL/OpenAL http://code.haskell.org/OpenAL/ALUT Hope this helps, Thank you so much! Someone (I guess that's me) should update the wiki. I updated link in OpenAL page now. Best Regards, On Sat, Jan 7, 2012 at 1:26 PM, Yitzchak Gale g...@sefer.org wrote: Jason Dagit wrote: Looks like the repo [1] for the OpenAL bindings that Sven Panne created [2] is no longer available. I assume this is a result of The Great Server Outage of 2011 [3]. [1] http://darcs.haskell.org/packages/OpenAL/ [2] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/OpenAL [3] http://www.haskell.org/pipermail/haskell-cafe/2011-February/088829.html No, darcs.haskell.org is not the community server. It is a separate server that seems to be located at Galois. Ah yes, I always forget which servers are where. -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Congrats. to wxHaskell
On Tue, 14 Oct 2008 18:54:45 +0900, shelarcy [EMAIL PROTECTED] wrote: wxHaskell requires to use cygwin when building on Windows currently. Because Cabal doesn't support binary distribution yet. And there is a lot of incompatibility between cygwin and MSYS. We don't care about that now. If you want to build wxHaskell yourself on Windows, you must install cygwin. http://www.haskell.org/haskellwiki/WxHaskell/Cygwin -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Congrats. to wxHaskell
Hi Henk-Jan, On Tue, 14 Oct 2008 07:53:57 +0900, Henk-Jan van Tuyl [EMAIL PROTECTED] wrote: I downloaded wxWindows 2.8.9 and tried to build it with the supplied makefile as suggested in the installation manual (I have MinGW and MSSY installed): (snip) Trying to install wxHaskell: cabal install --global wx [...] install: /usr/local/lib/wxcore.o install directory: /usr/local/lib/ install: /usr/local/lib/wxcore.pkg cat config/wxcore.pkg | sed -e s|\${wxhlibdir}|/usr/local/lib| | ghc-pkg update - Reading package info from stdin ... done. ghc-pkg.exe: /usr/local/lib/imports doesn't exist or isn't a directory (use --force to override) make: *** [wxcore-register] Error 1 cabal: Error: some packages failed to install: wx-0.10.5 depends on wxcore-0.10.5 which failed to install. wxcore-0.10.5 failed during the final install step. The exception was: exit: ExitFailure 2 wxHaskell requires to use cygwin when building on Windows currently. Because Cabal doesn't support binary distribution yet. If you want to build wxHaskell yourself on Windows, you must install cygwin. http://www.haskell.org/haskellwiki/WxHaskell/Cygwin And I'm finding where causes this problem now. Best Regards, -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell Beginner] Compiling wxhaskell fails for me
Hi, On Wed, 30 Jul 2008 16:02:22 +0900, Jason Dusek [EMAIL PROTECTED] wrote: Maybe you could try building it with 2.8 and let us know how it goes? We are discussing his problem in wxhaskell-users mailing-list now. http://www.mail-archive.com/[EMAIL PROTECTED]/msg00488.html I send patch to fix that. And patch is already pushed in latest darcs repository. http://www.mail-archive.com/[EMAIL PROTECTED]/msg00224.html I'm waiting for his answer now. Best Regards, -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] wxhaskell package for ubuntu feisty, amd64
Hi Iván, On Fri, 14 Sep 2007 20:16:29 +0900, Iván Pérez Domínguez [EMAIL PROTECTED] wrote: Already had. Didn't work. This is what it reported: wxc/src/ewxw/eljcursor.cpp: In function ‘void* Cursor_CreateLoad(const wxString*, long int, int, int)’: wxc/src/ewxw/eljcursor.cpp:18: error: no matching function for call to ‘wxCursor::wxCursor(const wxString, long int, int, int)’ /usr/include/wx-2.6/wx/gtk/cursor.h:42: note: candidates are: wxCursor::wxCursor(const char*, int, int, int, int, const char*, wxColour*, wxColour*) /usr/include/wx-2.6/wx/gtk/cursor.h:38: note: wxCursor::wxCursor(const wxImage) /usr/include/wx-2.6/wx/gtk/cursor.h:36: note: wxCursor::wxCursor(const wxCursor) /usr/include/wx-2.6/wx/gtk/cursor.h:35: note: wxCursor::wxCursor(int) /usr/include/wx-2.6/wx/gtk/cursor.h:34: note: wxCursor::wxCursor() make: *** [out/wxc/ewxw/eljcursor.o] Erro 1 I googled it and couldn't find the solution. Mad fixed this problem. http://www.mail-archive.com/[EMAIL PROTECTED]/msg00254.html So you must get newer darcs version, and build wxhaskell again. Best Regards, -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Fwd: Re: Re[4]: [Haskell-cafe] i need wxHaskell compiled for ghc 6.6.1 on Windows
Oops, I made mistake to send this mail only for Bulat. --- Forwarded message --- From: shelarcy [EMAIL PROTECTED] To: Bulat Ziganshin [EMAIL PROTECTED] Subject: Re: Re[4]: [Haskell-cafe] i need wxHaskell compiled for ghc 6.6.1 on Windows Date: Wed, 01 Aug 2007 09:03:52 +0900 Hello Bulat, On Wed, 25 Jul 2007 22:18:58 +0900, Bulat Ziganshin [EMAIL PROTECTED] wrote: Tuesday, July 24, 2007, 2:32:01 AM, you wrote: So I put newer Windows binary on my project's file space. http://sourceforge.net/project/showfiles.php?group_id=168626 thank you very much!!! now i'm really happy - it works without any problems. the only question that remains - does this version supports unicode? Yes. Current darcs repository version support only unicode enabled version. http://article.gmane.org/gmane.comp.lang.haskell.wxhaskell.general/198 So you can use UTF-8 string in your program. Best Regards, -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: Re[2]: [Haskell-cafe] i need wxHaskell compiled for ghc 6.6.1 on Windows
Hello Eric, I found that wxc Visual Studio Project File for wxWidgets-2.4.2 is broken now. And I think that I forgot to notice some awkward point for Windows So I put newer Windows binary on my project's file space. http://sourceforge.net/project/showfiles.php?group_id=168626 On Sun, 22 Jul 2007 23:20:44 +0900, Eric Kow [EMAIL PROTECTED] wrote: Please try the darcs version darcs get http://darcs.haskell.org/wxhaskell thanks. should i follow building instructions from homepage/ directory or there are another one? -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ fix_broken-2.4.dpatch Description: Binary data ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: Re[2]: [Haskell-cafe] i need wxHaskell compiled for ghc 6.6.1 on Windows
Hellow Bulat, On Sun, 22 Jul 2007 23:20:44 +0900, Eric Kow [EMAIL PROTECTED] wrote: Please try the darcs version darcs get http://darcs.haskell.org/wxhaskell thanks. should i follow building instructions from homepage/ directory or there are another one? I don't remember if this is documented anywhere, sadly: It's ./configure make make install make wx make wx-install This instruction isn't perfect when you want to build on Windows with Visual Studio. You must add --with-msc option to ./configure command, if you want to use Visual Studio's dll. http://wxhaskell.sourceforge.net/building-msc.html If you want to use GLCanvas or ODBC support, you must modify wxWidgets' include\wx\msw\setup.h file to enable Option. To use GLCanvas, we must set #define wxUSE_GLCANVAS 1 ODBC support is simillar, And ODBC support isn't work with Unicode support. wxWidgets 2.4.2 doesn't support ODBC with Unicode. I think 2.6.4 or greater can use ODBC support with Unicode. But I can't where is bug now. wxWidgets 2.4.2's project file is broken. I point out and attched patch for this problem in previous mail, so you can build that with patch. http://www.haskell.org/pipermail/haskell-cafe/2007-July/029438.html I think wxc-2.6.3 project file depends on wxSTC. So you must build wxSTC before building wxc on Windows, if you want to build wxc with wxWidgets 2.6.3, or modifying wxc-2.6.3 to support greater version (e.g. wxWidgets 2.6.4). This problem comes from merging wxStyledTextCntrl support. If we want to avoid it, we must add building option with STC support or not in project file, or add wxc-withSTC-* project file. http://sourceforge.net/mailarchive/forum.php?thread_name=d80c8a540701110913h3e28284aua137ef299f259ff6%40mail.gmail.comforum_name=wxhaskell-users Best Regards, -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Tools for Haskell and COM
Hello Darrell, On Tue, 26 Jun 2007 03:08:02 +0900, Lewis-Sandy, Darrell [EMAIL PROTECTED] wrote: Are there any currently maintained tools for interfacing Haskell with COM objects? It appears that both Haskell script and Haskell direct haven't been updated since the turn of the century, and have fallen out of step with recent library changes. You can download latest version of H/Direct from CVS, or hscom that is forked version of H/Direct's comlib from darcs. http://www.haskell.org/pipermail/libraries/2007-January/006737.html hscom breaks compatibility from H/Direct. Because developpers edit hscom by hand instead of to change generating code. So you must check and choice which is better to use your project. -- shelarcy shelarcyhotmail.co.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2
Good. That new .dll works, too. Best Regards, On Sat, 02 Dec 2006 16:13:01 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: Sorry. I was sleeping and I uploaded it to darcs.haskell.org instead to haskell.org. Try it now. On 12/2/06, shelarcy [EMAIL PROTECTED] wrote: On Sat, 02 Dec 2006 02:14:26 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: The zip file is updated with .dll that is with stripped debug symbols but with --optdll-s as it is recommended. Could some one try whether it works? It is about two times smaller than the non stripped version. http://www.haskell.org/visualhaskell/vs_haskell.zip Is this file updated one? I downloaded it from above url again. But file size is same. So, I checked hash. It noticed that current and previous files are same. -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2
Hi Krasimir, On Fri, 01 Dec 2006 16:56:02 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: http://www.cygwin.com/ml/cygwin/1998-04/msg00133.html I wonder whether this may cause the problem. I have uploaded a new vs_haskell.dll here: http://www.haskell.org/visualhaskell/vs_haskell.zip It is the same dll but without stripped debug symbols. Could you try to replace it in your installation? I tried to replace vs_haskell.dll after Windows Installer (MSI), no error occur during devenv.exe /Setup command or using Visual Haskell. I can make new Haskell project. On Fri, 01 Dec 2006 03:48:49 +0900, Justin Bailey [EMAIL PROTECTED] wrote: I am having similar problems with the Visual Haskell install, and the commands given did not help. When I open Visual Studios Help | About dialog, I get an error about the package failing to initialize. I am installing to an English copy, however. And I can open Studios Help | About dialog without any error. After exit Visual Haskell, Microsoft Development Environment opened error dialog about devenv.dll sometimes. Anyway, this error is harmless and I reported to Microsoft by form. Best Regards, -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANNOUNCE: Visual Haskell prerelease0.2
Hi Alistair, On Fri, 01 Dec 2006 18:13:45 +0900, Bayley, Alistair [EMAIL PROTECTED] wrote: It certainly is. Is it possible to configure VisualHaskell so that it uses the existing ghc-6.6 installation, rather than it's own? I think you can install extra libraries by cabal (and sometime you also need MSYS and MSYS Developer Tool Kit (autotools) for configuration). cgi fgl GLUT (and GLUT_cbits) haskell-src html HUnit mtl network objectio OpenGL (and OpenGL_cbits) QuickCheck readline time xhtml And I proposed to bundle OpenAL and ALUT packages. http://www.haskell.org/pipermail/glasgow-haskell-users/2006-October/011283.html These packages are in extra libraries. And I think that - OpenAL library is LGPL and OpenAL package is BSD3, so there is no reason avoiding to include this package. OpenAL site notices that OpenAL can become Creative's licese when using on Creative Device. http://www.openal.org/platforms.html But if you look at Creative's OpenAL SDK header files, you can find al.h and eft.h are LGPL. So I think we can use OpenAL library under LGPL on Windows, if we don't use Creative specific extentions. http://opensource.creative.com/pipermail/openal/2004-March/007309.html Best Reagrds, -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2
Hi Krasimir, On Sat, 02 Dec 2006 02:14:26 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: The zip file is updated with .dll that is with stripped debug symbols but with --optdll-s as it is recommended. Could some one try whether it works? It is about two times smaller than the non stripped version. http://www.haskell.org/visualhaskell/vs_haskell.zip Is this file updated one? I downloaded it from above url again. But file size is same. So, I checked hash. It noticed that current and previous files are same. $ md5sum vs_haskell.dll \a968ac130932a9b38bd0da50e9ae865a *C:\\Documents and Settings\\ Administrator\\My Documents\\vs_haskell\\vs_haskell.dll $ md5sum C:\Doc\Haskell\vs_haskell\vs_haskell.dll \a968ac130932a9b38bd0da50e9ae865a *C:\\Doc\\Haskell\\vs_haskell\\ vs_haskell.dll Best Regards, -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2
Hi Krasimir, On Fri, 01 Dec 2006 02:18:19 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: Could you check whether you have this registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\InstallDir and tell me its value? HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\InstallDir value is C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\. Typically its value should be such that the following script to work. Set shell = CreateObject(WScript.Shell) vstudioPath = shell.RegRead (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\InstallDir) shell.Run ( vstudioPath devenv.exe /Setup,0,true) I saw your message, then I checked vshaskell darcs repository and I saw vs_haskell_setup/setup.vbs. Okay, I know I forgot to tell popup message what made by VBScript. I saw just one popup message. It says Failed to setup VStudio. On 11/30/06, shelarcy [EMAIL PROTECTED] wrote: Hi Krasimir, On 11/30/06, shelarcy [EMAIL PROTECTED] wrote: But ... I can't install Visual Haskell prerelease 0.2. Near the end of install process, Microsoft Development Environment cause error. On Thu, 30 Nov 2006 17:03:22 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: Could you tell me what error message you see during the installation? If it is in Japan then translate it in English ;-). It's not good error message. Anyway, I translate it. Best Regards, -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2
Hi Krasimir, On 11/30/06, Krasimir Angelov [EMAIL PROTECTED] wrote: You can try to setup it manually using the following commands: $ regsvr32 /i:8.0 /n vs_haskell.dll $ regsvr32 /i:8.0 /n vs_haskell_babel.dll $ regsvr32 /i:8.0 /n vs_haskell_dlg.dll $ devenv.exe /Setup Why you always show 8.0 instead of 7.1? On Fri, 01 Dec 2006 03:48:49 +0900, Justin Bailey [EMAIL PROTECTED] wrote: I am having similar problems with the Visual Haskell install, and the commands given did not help. When I open Visual Studios Help | About dialog, I get an error about the package failing to initialize. I am installing to an English copy, however. Their commands didn't help for my environment too. I saw same error dialog that I sent previous mail. On 11/30/06, shelarcy [EMAIL PROTECTED] wrote: It's not good error message. Anyway, I translate it. Near the end of install process, error dialog opened and says: --- The problem happende, so exit Microsoft Development Environment. I'm sorry for causing inconvenience to you. (under its message, error dialog has form that send error report for Microsoft or shows error detail. These messages are not important, so I don't translate that.) --- And click form that shows error detail, another dialog opened. It shows: --- :Error ditail: An unhandled exception has been caught by the VSW exception filter. :Error Signature: AppName: devenv.exe AppVer: 7.10.6030.0 ModName: unknown ModVer: 0.0.0.0 Offset: 00bbbacc :Report Detail: (Below meassage attetion to user that error report send what. So these messages are not important, too.) --- Best Regards, -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Fwd: [GHC] #939: Possible bug building wxhaskell
Hi Jason, Jun Mukai aka. jmuk already tried and successed to build wxhaskell on GHC 6.6. Here is his install log. http://sequence.complete.org/node/214 And I made patch for ghc 6.6 from it. Attached solves a few problem ... but you must be careful to your permission. This patch solve package's interface problem with separated build and install process support. And make (make all) depend on installing wxcore. So you have to use sudo other than Windows. I don't know what is the best approach. But advantage is We can make binary (easy install) package for Windows and Mac OS X user. http://www.haskell.org/pipermail/glasgow-haskell-users/2006-September/011043.html You can build binary package following command. make make before-dist make bindist Note that attached fix only GHC 6.6 problem, doesn't fix other - no GHC 6.6 reason - problems. If you will failure to build from other problems, you must see this page first. http://www.haskell.org/haskellwiki/WxHaskell/Install Best Regards, On Sat, 14 Oct 2006 09:29:45 +0900, Jason Dagit [EMAIL PROTECTED] wrote: I reported the following bug and received the response below. Any wxhaskell hackers up to the challenge? I'd really love to see the makefiles go away and see wxhaskell just use cabal but I don't know if that's possible given the wxhaskell build requirements. Any help is much appreciated. Thanks Jason -- Forwarded message -- From: GHC [EMAIL PROTECTED] Date: Oct 13, 2006 5:21 PM Subject: Re: [GHC] #939: Possible bug building wxhaskell To: [EMAIL PROTECTED] #939: Possible bug building wxhaskell -+-- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status: closed Priority: normal|Milestone: Component: Compiler | Version: 6.6 Severity: normal| Resolution: invalid Keywords:| Difficulty: Unknown Architecture: x86 | Os: Unknown -+-- Changes (by duncan): * resolution: = invalid * status: new = closed Comment: It's not a GHC bug. It's a problem with the way wxHaskell is built. Admitidedly this is due to a slight change in the way GHC manages packages but it's not a bug as such, wxHaskell just needs fixing. What needs to happen is that the packages must be registered locally before they get used in other packages. Also, instead of importing the modules from the other package directly from the directory with -i foo/, it must be via -package foo. So you'll need to get in contact with someone who knows enough about wxHaskell's build system to fix it. Try asking on the ghc-users or haskell-cafe mailing lists. The bug report: I appologize if this isn't a GHC bug but since it started happening after a GHC upgrade I suspect it's a GHC bug. After upgrading to ghc6.6 on windows (using the release binary) I tried to install the current wxhaskell release found here: http://wxhaskell.sourceforge.net/download.html (version wxhaskell-src-0.9.4-1.zip) I have used wxhaskell on this machine before with older version of ghc (including ghc6.5, specifically visual haskell) so my environment for building the wxhaskell source was already setup. When I first got the error below I thought maybe my version of wxhaskell was messed up so I redownloaded the above zip file and unzipped a fresh copy. I unziped the source then I typed: configure make Things went along fairly smoothly for a while then suddenly I got this error message: ghc -c wx/src/Graphics/UI/WX/Types.hs -o out/wx/imports/Graphics/UI/WX/Types.o -iout/wx/imports -odir out/wx/imports -hidir out/wx/imports -fvia-C -package-name wx -iout/wx/imports wx/src/Graphics/UI/WX/Types.hs:94:0: Bad interface file: out/wx/imports/Graphics/UI/WXCore/Types.hi Something is amiss; requested module wx:Graphics.UI.WXCore.Types differs from name found in the interface file wxcore:Graphics.UI.WXCore.Types make: *** [out/wx/imports/Graphics/UI/WX/Types.o] Error 1 -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ fix_building_ghc-6.6.diff Description: Binary data ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] wxFruit with OpenGL and IO action
Hello. Sometimes, a few people are interested in wxFruit. http://zoo.cs.yale.edu/classes/cs490/03-04b/bartholomew.robinson/ But nobady knows current status of wxFruit. Over one and half year ago, I heard that students working on that ... . http://www.haskell.org/pipermail/haskell-cafe/2005-January/008765.html http://www.haskell.org/pipermail/haskell-cafe/2006-March/014998.html So, I'm working on that for subproject of Kamiariduki ... but progress is very slowly. I uploaded current (initial) version on Kamiariduki's file space. File name is YaPan-initial.tgz. Because this file includes YaPan - Yet another implementation, and reimplementation of Panic (http://www.cse.unsw.edu.au/~sseefried/pan/index.html) using Yampa (and wxFruit). http://sourceforge.net/project/showfiles.php?group_id=168626 I didn't think current verion is good enough to announse [Haskell] list, so I didn't announce that and repraced YaPan.tgz file sometimes ... but I know that a few people downloaded my file already. So, I decide to upload initial file on that space. Of cource, YaPan-initial.tgz has other wxFuit example. paddle.hs is almost same as original example, except that use menu istead of button. And CFK_GL* is a OpenGL sample code. But current version has some faults. Cabal file support to build and install only YaPan, doesn't support wxFruit. Code is very messy, and YaPan doesn't support all of Panic's features. And I should notice additonal things for older version's user. Now YaPan depends on AutoForms (not for wxFruit now). http://autoforms.sourceforge.net/ And YaPan can't save static one picture, YaPan can save animation by consecutive number files only. Current version, I tested on only Windows with my build of wxWidgets 2.4.2's wxHaskell (I uplaoded Kamiariduki's file space) and afrp-0.4 environment. So I don't know wxFruit and YaPan can works well other environments. Finally, I show current problem of wxFruit with IO action. I extend that button menu allow to regist extra IO action like this. pan pixels = hBox $ proc _ - do let start = False rec v - boxSF $ iPre 0 - 1 + v ev - getEvent - () vTrans - boxSF $ iPre (0,0,1) - (keyboardEvent 0.1 vTrans) ev panedPixels - boxSF $ pictureEvent - (pixels, vTrans, (circle v), v, gameBox) _ - glpicture (glpsizeWithAttributes gameBox [WXCore.GL_RGBA, WXCore.GL_DOUBLEBUFFER]) - glppic $ paintGL gameBox panedPixels _ - menu (mtextWithDialog SaveImage) - mcommandWithDialog $ (\v f - saveImageHandler (animToDisplayFun (circle)) circle (WX.sizeW gameBox, WX.sizeH gameBox) vTrans 1 v f) v returnA - () This design is suitable for button and menu's command. But if I want to use IO action out of these control event, modualiry is broken. Because I want to do that action out of control's event, but I have to change control's action. And I must choose using what kind of event handler. (Is interval the best?) So I tried to implement command function that intend to use IO action on reative loop wihtout control in wxFruit.hs ... but action doesn't do registered action or program is not work on my apporoach. (I commented out current command function that occur action.) If anyone have good idea how to use IO action on wxFuit, please tell me that idea. Thanks. -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trouble compiling wxhaskell
On 7/31/06, David F. Place [EMAIL PROTECTED] wrote: Hi: I'm having trouble compiling wxhaskell 0.9.4 under both ghc 6.4.2 and ghc 6.5. Does anyone know where I should direct my queries? If you use ghc 6,4,2 under Windows platform, you can use my patched version of wxHaskell. And you can get my patch from Kamiariduki's source. http://www.haskell.org/pipermail/haskell/2006-June/018043.html https://sourceforge.net/project/showfiles.php?group_id=168626 I also know Eric Y. Kow's unicode patch doesn't include db problems fix. These problems has not only wxWidgets 2.6.x change, but also unicode change. I try to fix latter case, use attached after unicode patch, this fixes compile problem ... but it has another problem that can't use non-ascii characters correctly. So, if want to accesss DB by wxHaskell's ODBC, data is garbled and cause problems. I don't know how to fix that. Attached is already sent wxhaskell-user's list, but you can't get this file. So I send again. http://sourceforge.net/mailarchive/message.php?msg_id=16222530 My patch where I put Kamiariduki's project page doesn't include unicode support that I noticed above Mailng-List's log. Don't worry about this. You can use both my patch and unicode patch, if you want. These cause conflict message but this is not problem. On Tue, 01 Aug 2006 08:18:27 +0900, Jason Dagit [EMAIL PROTECTED] wrote: I've done this recently. I put my notes on the wiki: http://www.haskell.org/haskellwiki/WxHaskell/Install#Windows I don't know this problem when I made patch. So, my patch doesn't fix this problem. -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ bugfix_for_08.tgz Description: GNU Zip compressed data ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Windows Haskell GUI
On Thu, 06 Jul 2006 07:56:49 +0900, Neil Mitchell [EMAIL PROTECTED] wrote: I want to develop a GUI using Haskell on Windows. As far as I can tell the options for a reasonably high level GUI toolkit are: * wxHaskell * Gtk2Hs Unfortunately I cannot find released packages for GHC 6.4.2 for either of them - Gtk supports only 6.4.1 and wx supports only 6.4.0. I'm already proviedding my modified version of wxHaskell released packages for GHC 6.4.2 on my project's page. Because, it seems that developping wxHaskell is stopped, and I'm not wxHaskell's developper now. http://www.haskell.org/pipermail/haskell/2006-June/018043.html https://sourceforge.net/project/showfiles.php?group_id=168626 -- shelarcy shelarcycapella.freemail.ne.jp http://page.freett.com/shelarcy/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-Cafe] FFI and foreign function returning a structure
I think this is relation to my problem. (B (BI wnant to write Haskell interface to FFmpeg. So first, I try to port (Boutput_example.c to Haskell. But output_example.c's wants to initialize (Bstructure like this, (B (B (Bvoid write_audio_frame(AVFormatContext *oc, AVStream *st) (B{ (B int out_size; (B AVCodecContext *c; (B AVPacket pkt; (B av_init_packet(pkt); (B (B c = st-codec; (B (B get_audio_frame(samples, audio_input_frame_size, c-channels); (B (B pkt.size= avcodec_encode_audio(c, audio_outbuf, audio_outbuf_size, (Bsamples); (B (B pkt.pts= c-coded_frame-pts; (B pkt.flags |= PKT_FLAG_KEY; (B pkt.stream_index= st-index; (B pkt.data= audio_outbuf; (B (B /* write the compressed frame in the media file */ (B if (av_write_frame(oc, pkt) != 0) { (B fprintf(stderr, "Error while writing audio frame\n"); (B exit(1); (B } (B} (B (Bthen I need to return a structure. (B (BBut I know that : (B (BOn Wed, 02 Mar 2005 14:45:54 +1100, Ben Lippmeier (B[EMAIL PROTECTED] wrote: (B No. The way data is organised in memory is dramatically different in (B Haskell when compared with C. You need to write functions to read in (B each field in turn and then "reconstruct" the structure on the Haskell (B side. (B (B It's a tedious process. My advice is that if you have a lot of (B structures to read, write a (simple) preprocessor to generate the (B marshalling code.. that's what I did. (B (B (Bso I wrote a code like this, (B(This use hsc2hs to write "read and write each field".) (B (B- (B-- -*- mode: haskell -*- (B{-# OPTIONS -fglasgow-exts #-} (B (B#include avformat.h (B#include avcodec.h (B (Bmodule FFmpeg (Bwhere (B (Bimport Foreign (B (Bdata CAVPacket = CAVPacket {pktPts :: !(#type int64_t), pktDts :: !(#type (Bint64_t), (B pktDatas :: !(Ptr (#type uint8_t)), pktSize :: (B!Int, pktStreamIndex :: !Int, (B pktFlags :: !Int, pktDuration :: !Int} (B deriving (Eq,Show) (B (Binstance Storable CAVPacket where (Bpeek p = do{ pts - (#peek AVPacket, pts) p; dts - (#peek AVPacket, (Bdts) p; (B datas - (#peek AVPacket, data) p; size - (#peek (BAVPacket, size) p; (B stream_index - (#peek AVPacket, stream_index) p; flags (B- (#peek AVPacket, flags) p; (B duration - (#peek AVPacket, duration) p; (B return $! CAVPacket pts dts datas size stream_index flags (Bduration } (Bpoke p (CAVPacket pts dts datas size stream_index flags duration) (B = do{(#poke AVPacket, pts) p pts; (#poke AVPacket, dts) p dts; (B (#poke AVPacket, data) p datas; (#poke AVPacket, size) p (Bsize; (B (#poke AVPacket, stream_index) p stream_index ; (#poke (BAVPacket, flags) p flags; (B (#poke AVPacket, duration) p duration} (BsizeOf _ = (#size AVPacket) (B-- I don't confident this value. (Balignment _ = 7 (B (B (Bav_init_packet :: IO (Ptr CAVPacket) (Bav_init_packet = (B alloca $ \pkt - do (B c_av_init_packet pkt (B return pkt (B (B (Bforeign import ccall unsafe "av_init_packet" (Bc_av_init_packet :: Ptr CAVPacket - IO () (B- (B (Bbut ghc-6.2.2 said : (B (BFFmpeg.o(.text+0x44):fake: undefined reference to `av_init_packet' . (B (BOf cource, this problem is only here, ghc can refers to other C function (Bby FFI. And if I don't pass the link option to ghc, then ghc's refer (Bproblem message is normaly, like this : (B (Bc:/ghc/ghc-6.2.2/libHSrts.a(Main.o)(.text+0x87):Main.c: undefined (Breference to `__stginit_ZCMain' (B (B (BWhere is a problem of my code? (B (B (B-- (Bshelarcy shelarcy capella.freemail.ne.jp (Bhttp://page.freett.com/shelarcy/ (B___ (BHaskell-Cafe mailing list (BHaskell-Cafe@haskell.org (Bhttp://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Problems with compiling wxFruit
You hace to add option --make, if you complie haskell program file with (Bsome files. (BAnd, you have to change WX.size to Wx.sz . (BBecause wxHaskell-0.8 changed some functions. (B (BOn Thu, 20 Jan 2005 15:50:29 +0100, Dmitri Pissarenko (B[EMAIL PROTECTED] wrote: (B I'm trying to compile wxFruit sample program paddleball (B (http://zoo.cs.yale.edu/classes/cs490/03-04b/bartholomew.robinson/). (B (B (B When I try to compile file paddle.hs (see below where it is availeble) (B using the call (B (B call (B ghc -fglasgow-exts -farrows -package wx (B -iC:\dapWork\haskell-learning\afrp-0.4 (B \src:C:\dapWork\haskell-learning paddle.hs (B /call (B (B I'm getting the error message (B (B error-message (B paddle.hs:10: (B Failed to load interface for `WXFruit': (B Could not find interface file for `WXFruit' (B (use -v to see a list of the files searched for) (B (B paddle.hs:11: (B Failed to load interface for `AFRP': (B Could not find interface file for `AFRP' (B (use -v to see a list of the files searched for) (B (B paddle.hs:12: (B Failed to load interface for `AFRPUtilities': (B Could not find interface file for `AFRPUtilities' (B (use -v to see a list of the files searched for) (B /error-message (B (B-- (Bshelarcy shelarcy capella.freemail.ne.jp (Bhttp://page.freett.com/shelarcy/ (B___ (BHaskell-Cafe mailing list (BHaskell-Cafe@haskell.org (Bhttp://www.haskell.org/mailman/listinfo/haskell-cafe
package readline unknown symbol problem on GHCi 6.2.2 Windows binary (Was: [Haskell-cafe] Problem with wxHaskell
On Wed, 12 Jan 2005 12:03:44 -0800, John Velman [EMAIL PROTECTED] wrote: (B Your code works fine on Linux. :-) (B (B Oh, by the way, I compiled my wxHaskell with GHC 6.2.2 (B On Wed, Jan 12, 2005 at 04:16:33PM +0100, Dmitri Pissarenko wrote: (B I've downloaded wxHaskell, ran the wxhaskell-register.bat file and now (B try to build a minimal wxHaskell program. (B (B For this purpose, I tried to start GHCi using following command (B (B ghci -package wx GuiTest.hs (B (BHmm. I think this problem is specially on Windows binary by using GHCi. (BIf you use GHC, programm may be compiled without following error message. (B (B GHCi crashed with following error messages: (B error-messages (B GHC Interactive, version 6.2.2, for Haskell 98. (B http://www.haskell.org/ghc/ (B Type :? for help. (B (B Loading package base ... linking ... done. (B Loading package haskell98 ... linking ... done. (B Loading package lang ... linking ... done. (B Loading package concurrent ... linking ... done. (B Loading package QuickCheck ... linking ... done. (B Loading package readline ... linking ... (B C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' (B ghc.exe: unable to load package `readline' (B /error-messages (B (BI saw this error message in other programs what GHCi on Windows call (Breadline (Bpackage automaticly. ex. HaXml program. (So I don't want to use HaXml (Bprogram (Bon windows.) (BThis is GHCi bug. (B (B (B-- (Bshelarcy shelarcy capella.freemail.ne.jp (Bhttp://page.freett.com/shelarcy/ (B___ (BHaskell-Cafe mailing list (BHaskell-Cafe@haskell.org (Bhttp://www.haskell.org/mailman/listinfo/haskell-cafe