Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Haskell
Wiki community
Recent changes
Random page
HaskellWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
WxHaskell/Building
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Building wxHaskell === Since wxHaskell 0.12.1.1, we only support building using Cabal. For all platforms installation is straightforward, provided that: # wx-config is somewhere in the path # The WXWIN environment variable points to the root of your wxWidgets installation # WINDOWS PLATFORMS ONLY: You may also need to set WXCFG=gcc_dll\mswu You can then install wxhaskell as follows (''in a Windows cmd.exe shell, not an MSys shell''): > cabal update > cabal install wx Note that on Windows 7 machines, your command window must be running as Administrator. Note that on Unix systems, you may prefer something like > sudo cabal install --global wx Windows developers who don't update environment variables can do something like this in an MS-DOS shell: > Set CPLUS_INCLUDE_PATH=C:\MinGW\include\c++\3.4.5;C:\MinGW\include\c++\3.4.5\mingw32\ > Set WXWIN=C:\path\to\wxWidgets-2.8.10 > Set WXCFG=gcc_dll\mswu > cabal install wx The Windows installation is global by default. ==== Out of memory errors ==== There have been reports of out of memory errors when compiling wxcore on some machines, notably 64 bit Linux hosts. Wxcore contains some very large auto-generated source files, and increasing the memory available to the GHC runtime can help. Try something like: > export GHCRTS='-M512m' to allocate 512 MB to the GHC RTS. This has been reported to be sufficient.
Summary:
Please note that all contributions to HaskellWiki are considered to be released under simple permissive license (see
HaskellWiki:Copyrights
for details). If you don't want your writing to be edited mercilessly and redistributed at will, then don't submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!
Cancel
Editing help
(opens in new window)
Toggle limited content width