Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Re: wxHaskell install errors (Gregory Guthrie) 2. Re: flatten comma operator (Brandon Allbery) 3. Re: wxHaskell path (Miguel Negrao) 4. Re: wxHaskell path (Henry Lockyer) 5. Re: wxHaskell install errors (carlos gomez) ---------------------------------------------------------------------- Message: 1 Date: Wed, 6 Jun 2012 15:15:20 -0500 From: Gregory Guthrie <guth...@mum.edu> Subject: Re: [Haskell-beginners] wxHaskell install errors To: carlos gomez <carliro...@gmail.com> Cc: "beginners@haskell.org" <beginners@haskell.org> Message-ID: <08ef9da445c4b5439c4733e1f35705ba01a2767cb...@mail.cs.mum.edu> Content-Type: text/plain; charset="us-ascii" >> First, you should make sure for yourself that wxWidgets 2.9 is well >> installed, for that you can try to build the wxwidgets' examples >> cd c:\wx\samples\minimal >> mingw32-make -f makefile.gcc BUILD=debug Thanks, good test, it fails. /e/plang/libraries/wxWidgets2.9/samples/minimal > $ mingw32-make -f makefile.gcc BUILD=debug if not exist gcc_mswuddll mkdir gcc_mswuddll windres --use-temp-file -i../../samples/sample.rc -ogcc_mswuddll\minimal_sample_rc.o --define __WXMSW__ --define _UNICODE -- include-dir .\..\..\lib\gc c_dll\mswud --include-dir ./../../include --include-dir . --define WXUSINGDLL --include-dir ./../../samples --define NOPCH g++ -c -o gcc_mswuddll\minimal_minimal.o -g -O0 -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -I.\..\..\lib\gcc_dll\mswud -I.\..\..\include -W -Wall -I. -DWXUSINGDLL -I.\..\..\samples -DNOPCH -Wno-ctor-dtor-privacy -MTgcc_mswuddll\minimal_minimal.o -MFgcc_mswuddll\minimal_minimal.o.d -MD -MP minimal.cpp In file included from .\..\..\include/wx/defs.h:28:0, from .\..\..\include/wx/wxprec.h:13, from minimal.cpp:21: .\..\..\include/wx/platform.h:181:22: fatal error: wx/setup.h: No such file or directory compilation terminated. mingw32-make: *** [gcc_mswuddll\minimal_minimal.o] Error 1 (I did have to start a mingw shell to do this, it won't run from a cmd line.) Not sure what to make of it... I still wish I could just get a binary to install like was available from wxPack for 2.8! :-) ---- > Then, I can think that it is just a problem of configuring and installing > wxhaskell. > > For the paths you have to set, probably the wxc is not installed on your pc > yet, and probably that's why you couldn't find. > But you should follow the way setting those paths and put the right versions > of the libraries you are installing. Yes, probably wxc is not installed, but that is the problem I am stuck at I think. ------------------------------ Message: 2 Date: Wed, 6 Jun 2012 17:17:27 -0400 From: Brandon Allbery <allber...@gmail.com> Subject: Re: [Haskell-beginners] flatten comma operator To: Arlen Cuss <a...@unnali.com> Cc: beginners@haskell.org Message-ID: <CAKFCL4U=g1_bSPPk=0qjw+g7oauwoc2nokor8bavokuagko...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" On Wed, Jun 6, 2012 at 7:06 AM, Arlen Cuss <a...@unnali.com> wrote: > And as Brent pointed out also, it is. :) By the way, so is > (,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,)! > I suspect GHC allows any number. The > Maybe not any number; more than 127 elements in a tuple used to cause core dumps.... -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20120606/eb1313f2/attachment-0001.htm> ------------------------------ Message: 3 Date: Wed, 6 Jun 2012 22:18:49 +0100 From: Miguel Negrao <miguel.negrao-li...@friendlyvirus.org> Subject: Re: [Haskell-beginners] wxHaskell path To: beginners@haskell.org Message-ID: <e5654eb9-0f84-46ac-8f59-99e795c19...@friendlyvirus.org> Content-Type: text/plain; charset=windows-1252 Hi Henry, A 06/06/2012, ?s 12:31, Henry Lockyer escreveu: > Thanks a lot Miguel. I recently discovered your posts about 'reactive > banana' and wxHaskell and started looking through them. > > Unfortunately I am a c/c++ compilation/make/etc. and general unix newbie, or > oldbie in my case, (amongst many other areas of deep ignorance ;-) > so I am finding some of the information/instructions a little hard to follow. Well, that?s exactly why I use homebrew and you should too . :-) It?s designed to make installing stuff easier, it will also download and install for you any dependencies of what you are trying to install. It?s quite easy to install homebrew just type in the terminal: /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)? Don?t use sudo. If you can?t install to /usr/local then make sure you own that directory, since homebrew wants to make sure you don?t need to sudo to install stuff. > How did you establish that your wxWidgets was installed and working as > expected, Well, when I had wxHaskell working I compiled a wxHaskell program and it worked but I didn?t test wxWidgets independently. > and can I ask how you removed the pre-loaded mac os version of widgets (if > you had this) ? No need for that, the pre-installed ones are older versions. best, Miguel ------------------------------ Message: 4 Date: Thu, 7 Jun 2012 01:17:23 +0100 From: Henry Lockyer <henry.lock...@ntlworld.com> Subject: Re: [Haskell-beginners] wxHaskell path To: Miguel Negrao <miguel.negrao-li...@friendlyvirus.org> Cc: beginners@haskell.org Message-ID: <450e96ff-89d2-4bd8-ab1b-b13d6a6d2...@ntlworld.com> Content-Type: text/plain; charset="windows-1252" Hi Miguel As you say, the pre-loaded mac os version is older than 2.9 (mine is 2.8). I was not very clear - it was not really 'removing' the old one that I meant to ask about, but how did you perform the instruction (at http://www.haskell.org/haskellwiki/WxHaskell/MacOS_X which says: "3. Check your path to make sure you are using your wxWidgets and not the default Mac one" I have installed and built wxWidgets 2.9 but not made any changes to path variables (whichever may be involved). If I type command "wx-config --release" it tells me the widgets version is 2.8. If I type command "wx-config --prefix it tells me it is in "/usr" If I type command "wx-config --static it says there is no config to match this. So I conclude (if I interpret it right...) that I have a dll version of widgets 2.8 in my path at /usr Does homebrew take care of this somehow when it loads 2.9? I am not sure if anything else is using this 2.8 dll, and/or how to best set the path up so I can use 2.9 with wxHaskell. Sounds like I should definitely take a look at homebrew, so thanks for the recommendation. I'd also be interested to know what you get in response to wx-config (with parameters as above) if you have not made any manual changes to path variables etc. yourself. I also just saw this posted by Gregory Guthrie in another wxHaskell thread ("wxHaskell install errors"): "If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are." This makes me think that the 'instruction 3' in the wxHaskell macosx instructions I quoted above is perhaps not necessary, or at least there is an alternative when it comes to the cabal step. This may solve one of my problems/questions at least, but needs more investigation. Cheers/ Henry On 6 Jun 2012, at 22:18, Miguel Negrao wrote: > Hi Henry, > > A 06/06/2012, ?s 12:31, Henry Lockyer escreveu: > >> Thanks a lot Miguel. I recently discovered your posts about 'reactive >> banana' and wxHaskell and started looking through them. >> >> Unfortunately I am a c/c++ compilation/make/etc. and general unix newbie, or >> oldbie in my case, (amongst many other areas of deep ignorance ;-) >> so I am finding some of the information/instructions a little hard to follow. > > Well, that?s exactly why I use homebrew and you should too . :-) It?s > designed to make installing stuff easier, it will also download and install > for you any dependencies of what you are trying to install. It?s quite easy > to install homebrew just type in the terminal: > > /usr/bin/ruby -e "$(/usr/bin/curl -fsSL > https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)? > > Don?t use sudo. If you can?t install to /usr/local then make sure you own > that directory, since homebrew wants to make sure you don?t need to sudo to > install stuff. > >> How did you establish that your wxWidgets was installed and working as >> expected, > > Well, when I had wxHaskell working I compiled a wxHaskell program and it > worked but I didn?t test wxWidgets independently. > >> and can I ask how you removed the pre-loaded mac os version of widgets (if >> you had this) ? > > > No need for that, the pre-installed ones are older versions. > > best, > Miguel > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20120607/880373c5/attachment-0001.htm> ------------------------------ Message: 5 Date: Wed, 6 Jun 2012 20:24:33 -0430 From: carlos gomez <carliro...@gmail.com> Subject: Re: [Haskell-beginners] wxHaskell install errors To: Gregory Guthrie <guth...@mum.edu> Cc: "beginners@haskell.org" <beginners@haskell.org> Message-ID: <CAHg7deQnLxy0zFBZG8WMPM-1O=H=iztkfphtc8ofszpwkhk...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" To install wxWidgets you can find how in the 'Readme' as I did, or you can use what I have used on windows 7: cd c:\wx\build\msw mingw32-make -f makefile.gcc BUILD=debug I'm not sure if the 'BUILD=debug' is really needed, but it worked for me. Hope it helps, Carlos Gomez On 6 June 2012 15:45, Gregory Guthrie <guth...@mum.edu> wrote: > >> First, you should make sure for yourself that wxWidgets 2.9 is well > installed, for that you can try to build the wxwidgets' examples > > >> cd c:\wx\samples\minimal > >> mingw32-make -f makefile.gcc BUILD=debug > > Thanks, good test, it fails. > > /e/plang/libraries/wxWidgets2.9/samples/minimal > > $ mingw32-make -f makefile.gcc BUILD=debug > if not exist gcc_mswuddll mkdir gcc_mswuddll > windres --use-temp-file -i../../samples/sample.rc > -ogcc_mswuddll\minimal_sample_rc.o --define __WXMSW__ --define > _UNICODE -- include-dir .\..\..\lib\gc > c_dll\mswud --include-dir ./../../include --include-dir . --define > WXUSINGDLL --include-dir ./../../samples --define NOPCH > g++ -c -o gcc_mswuddll\minimal_minimal.o -g -O0 -mthreads > -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -I.\..\..\lib\gcc_dll\mswud > -I.\..\..\include -W -Wall > -I. -DWXUSINGDLL -I.\..\..\samples -DNOPCH -Wno-ctor-dtor-privacy > -MTgcc_mswuddll\minimal_minimal.o -MFgcc_mswuddll\minimal_minimal.o.d > -MD -MP minimal.cpp > > In file included from .\..\..\include/wx/defs.h:28:0, > from .\..\..\include/wx/wxprec.h:13, > from minimal.cpp:21: > .\..\..\include/wx/platform.h:181:22: fatal error: wx/setup.h: No such > file or directory > compilation terminated. > mingw32-make: *** [gcc_mswuddll\minimal_minimal.o] Error 1 > > (I did have to start a mingw shell to do this, it won't run from a cmd > line.) > Not sure what to make of it... > > I still wish I could just get a binary to install like was available from > wxPack for 2.8! :-) > > ---- > > Then, I can think that it is just a problem of configuring and > installing wxhaskell. > > > > For the paths you have to set, probably the wxc is not installed on your > pc yet, and probably that's why you couldn't find. > > But you should follow the way setting those paths and put the right > versions of the libraries you are installing. > > Yes, probably wxc is not installed, but that is the problem I am stuck at > I think. > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20120606/c3432820/attachment.htm> ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 48, Issue 11 *****************************************