Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
20100923 WxHaskell Setup

20100923 WxHaskell Setup

Ratings: (0)|Views: 1,957|Likes:
Published by skytreebird

More info:

Published by: skytreebird on Sep 23, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





InstallingwxHaskellon Windows XP
by SkyTreeBird 23-Sept-2010 
1 Introduction
After having no luck following thewxHaskell/Building wiki, I decided to take slightlydifferent approach. What follows is the process I went through to get wxHaskell workingon Windows XP. It worked for me, hope it helps others.
2 Process
2.1 Install MinGW- Optional 
a) Download MinGW 
– Note: MinGW is a ‘free’ compiler. Because we are going to be using 
, which comes with pre-built binaries (ie pre-compiled files) you can skip this section. However, in my experience it is wise to have it installed.
 b) Run the downloaded executable -Figure 1shows the recommended setup options.
Figure 1 - MinGW Setup
Page 1 of 4
2.2 Setup wx-config
a) Download wx-config. This is a standalone executable, no install required. b) Create a folder eg
’ and drop the
into it.
2.3 Set Environment Variables
2.3.1 New Variables
a) Left click on
.b) Right click on
My Computer
.c) Left click on
Advanced Tab
Environment Variables
d) Add the two environment variables shown circled in red inFigure 2by clicking on
Note: The value for 
should correspond the actual location where you installed 
on your computer.
Figure 2 – Create the WXWIN & WXCFG Environment Variables2.3.2 Modifications to Existing ‘PATH’ Variable
a) Whilst still in the
Environment Variables
window, double click on the
 variable.b) Make the following appends, making sure everything is separated by a semi-colon(oh, and be careful not to delete any existing text):
(ignore if you didn’t install MinGW)
(location of wx-config.exe)
Page 2 of 4
2.4 Install wxPack
a) Download wxPack  b) Run the
executable.c) From the setup menu, select
MinGW Gcc Only
(seeFigure 3).
Figure 3 - wxPack Setup
d) Append the
variable as you did in section2.3.2with the following text so thatyour executables can find the
(location of your gcc_dll folder)
2.5 Install wxHaskell
a) Open up a
Command Prompt
and enter the following commands:
> cabal update> cabal install wx
Page 3 of 4

Activity (6)

You've already reviewed this. Edit your review.
John Atwood added this note
Thanks for creating this guide, but it didn't work for me. I know how hard it is to keep things working. Here's the error I got: C:\Users\user2013>cabal install wx Resolving dependencies... [1 of 1] Compiling Main ( C:\Users\user2013\AppData\Local\Temp\wxc-0. 90.0.4-9348\wxc-\Setup.hs, C:\Users\user2013\AppData\Local\Temp\wxc-0.90. 0.4-9348\wxc-\dist\setup\Main.o ) Lin
1 thousand reads
1 hundred reads
Andrew Butterfield added this note
Tried this using above guide on 64-bit windows 7. First - we are asked to set PATH for wxWidgets *before* we install it (it comes with wxPack) So I installed MinGW, wx-config, wxPack, and then installed haskell 2011.2.01 cabal install set up wxCore/wxDirect (is this right?) however I get the "stdc++ tantrum" with both ghci and ghc - what do I do now ?
Eric Kow added this note
Using %WXWIN% in the PATH is probably a bit better than repeating the info. Also, how about just putting your guide on the wiki, eg http://www.haskell.org/haskellwiki/Wx... ?
azhai_liu liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->