From: Eric Y. K. <eri...@gm...> - 2011-07-17 09:19:05
|
Hi everybody, I've had some difficulty installing wxHaskell on Windows 7, but I eventually got there, so I thought I should report (and edit the wiki). In a nutshell: the secret is to use wxPack (precompiled wxWidgets including MinGW Unicode version) [1] and avoid trying to build wxWidgets yourself. Credit goes to SkyTreeBird23 for suggesting wxPack in his guide [2]. (Say hello if you're reading this mailing list!) This is not a complete how-to. I'll edit the wiki when I have a spare moment. But I hope this list of pitfalls helps somebody in the meantime. My setup -------------------------------------------------- - VM running in Parallels 6 allocated 1 GiB of RAM - Windows 7 Professional - WxPack 2.8.12.01 - wxcore 0.12.1.7 - wx-config.exe Things I have tried - Mingw (32 bit) installer version 20110530 (have also tried 20110316) - TDM GCC 4.5.2 Documentation -------------------------------------------------- 1. wxHaskell on Haskell wiki (Building) http://haskell.org/haskellwiki/WxHaskell/Building 2. wxWidgets MingW page http://wiki.wxwidgets.org/Installing_WxWin_MinGW Issues I've run into ---------------------------------------------------------------------- 1. ld.exe: out of memory allocating N bytes Solution: use the TDM version of GCC, not the MinGW. See wxWidgets wiki page above; it might be some sort of MinGW bug. 2. ld returned 5 exit status Solution: clean your source tree (after hitting #1). Just typing mingw32-make -f makefile.gcc clean was apparently not enough, so I ended up unzipping a fresh one 3. wxHaskell builds fine, but when running any GUI app: The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll Solution: (stumped - I think this has may have something to do with building Haskell stuff with the HP-built-in GCC and wxWidgets with the TDM GCC, but I don't really understand enough about libraries to say) At this point, I stumbled on SkyTreeBird's guide who informed me of the existence of 4. wxWidgets hasn't been found installed at 'C:\wxWidgets-2.8.12' The wxPack installer unfortunately does not include a dash by default in the path it offers you. I think it wants to put wxWidgets in something like 'C:\Source Code\wxWidgets2.8' I got rid of the 'Source Code', but did not notice the missing hyphen. 5. (Hello world) The program can't start because wxmsw28u_gcc.dll is missing from your computer Solution: make sure C:\wxWidgets-2.8.12\lib\gcc_dll (substitute your wxWidgets path accordingly) is in your PATH [1] http://wxpack.sourceforge.net/ [2] http://www.scribd.com/doc/38034374/20100923-WxHaskell-Setup -- Eric Kow <http://erickow.com> |
From: Eric Y. K. <eri...@gm...> - 2011-07-17 09:58:06
|
On Sun, Jul 17, 2011 at 10:18:53 +0100, Eric Y. Kow wrote: > 3. wxHaskell builds fine, but when running any GUI app: > The procedure entry point __gxx_personality_v0 could not be > located in the dynamic link library libstdc++-6.dll Oh, that's odd. I just noticed that I can run my program fine from the MSYS shell, but if I run it from the DOS prompt or by double-clicking I get error message above. -- Eric Kow <http://erickow.com> |
From: Eric Y. K. <eri...@gm...> - 2011-07-17 10:16:56
|
On Sun, Jul 17, 2011 at 10:57:55 +0100, Eric Y. Kow wrote: > On Sun, Jul 17, 2011 at 10:18:53 +0100, Eric Y. Kow wrote: > > 3. wxHaskell builds fine, but when running any GUI app: > > The procedure entry point __gxx_personality_v0 could not be > > located in the dynamic link library libstdc++-6.dll > > Oh, that's odd. I just noticed that I can run my program fine > from the MSYS shell, but if I run it from the DOS prompt or by > double-clicking I get error message above. OK, sorry for being noisy. What worked for me is to uninstall the TDM GCC I had installed earlier and to make sure that MinGW/bin was in my PATH. I think the active ingredient in these steps is making sure we're using the mingw libstdc++ and not the tdm one. This makes me think that maybe my self-built wxWidgets might have worked (although I think I *was* working from the MSYS shell then) if I had done the same. After all, the wxPack version was built with the same. -- Eric Kow <http://erickow.com> |
From: carlos g. <car...@gm...> - 2011-07-17 10:28:46
|
So, does that work? On 17 July 2011 06:16, Eric Y. Kow <eri...@gm...> wrote: > On Sun, Jul 17, 2011 at 10:57:55 +0100, Eric Y. Kow wrote: > > On Sun, Jul 17, 2011 at 10:18:53 +0100, Eric Y. Kow wrote: > > > 3. wxHaskell builds fine, but when running any GUI app: > > > The procedure entry point __gxx_personality_v0 could not be > > > located in the dynamic link library libstdc++-6.dll > > > > Oh, that's odd. I just noticed that I can run my program fine > > from the MSYS shell, but if I run it from the DOS prompt or by > > double-clicking I get error message above. > > OK, sorry for being noisy. What worked for me is to uninstall > the TDM GCC I had installed earlier and to make sure that > MinGW/bin was in my PATH. > > I think the active ingredient in these steps is making sure we're using > the mingw libstdc++ and not the tdm one. > > This makes me think that maybe my self-built wxWidgets might have worked > (although I think I *was* working from the MSYS shell then) if I had > done the same. After all, the wxPack version was built with the same. > > -- > Eric Kow <http://erickow.com> > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > |
From: Eric Y. K. <eri...@gm...> - 2011-07-19 12:02:10
|
On Sun, Jul 17, 2011 at 06:28:39 -0400, carlos gomez wrote: > > This makes me think that maybe my self-built wxWidgets might have worked > > (although I think I *was* working from the MSYS shell then) if I had > > done the same. After all, the wxPack version was built with the same. > So, does that work? Does what work? My original self-built wxWidgets? I think so! I tested by first moving the wxPack location away, confirming that my application *stops* working; and moving my TDM self-build in its place and having it work again. Thanks, -- Eric Kow <http://erickow.com> |
From: Andrew B. <and...@cs...> - 2011-07-18 10:29:25
|
How does it work with GHCi ? (Which version of Haskell were you building against ?) On 17 Jul 2011, at 11:28, carlos gomez wrote: > So, does that work? > > > On 17 July 2011 06:16, Eric Y. Kow <eri...@gm...> wrote: > On Sun, Jul 17, 2011 at 10:57:55 +0100, Eric Y. Kow wrote: > > On Sun, Jul 17, 2011 at 10:18:53 +0100, Eric Y. Kow wrote: > > > 3. wxHaskell builds fine, but when running any GUI app: > > > The procedure entry point __gxx_personality_v0 could not be > > > located in the dynamic link library libstdc++-6.dll > > > > Oh, that's odd. I just noticed that I can run my program fine > > from the MSYS shell, but if I run it from the DOS prompt or by > > double-clicking I get error message above. > > OK, sorry for being noisy. What worked for me is to uninstall > the TDM GCC I had installed earlier and to make sure that > MinGW/bin was in my PATH. > > I think the active ingredient in these steps is making sure we're using > the mingw libstdc++ and not the tdm one. > > This makes me think that maybe my self-built wxWidgets might have worked > (although I think I *was* working from the MSYS shell then) if I had > done the same. After all, the wxPack version was built with the same. > > -- > Eric Kow <http://erickow.com> > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev_______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users -------------------------------------------------------------------- Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204 Lero@TCD, Head of Foundations & Methods Research Group Director of Teaching and Learning - Undergraduate, School of Computer Science and Statistics, Room F.13, O'Reilly Institute, Trinity College, University of Dublin http://www.scss.tcd.ie/Andrew.Butterfield/ -------------------------------------------------------------------- |
From: Eric Y. K. <eri...@gm...> - 2011-07-19 12:06:09
|
On Mon, Jul 18, 2011 at 11:30:39 +0100, Andrew Butterfield wrote: > How does it work with GHCi ? I'm having that complaint about stdc++ which I believe has been discussed in another thread on this list. > (Which version of Haskell were you building against ?) Argh, I thought I made a point of listing versions for everything :-) It's Haskell Platform 2011.2.0.1 -- Eric Kow <http://erickow.com> |