< WxHaskell(Difference between revisions)
|
|
| (4 intermediate revisions not shown.) |
| Line 1: |
Line 1: |
| - | === Prerequisites ===
| + | This page no longer exists. Please refer to your platform instead. |
| | | | |
| - | Ensure you have a recent [http://www.haskell.org/ghc GHC] compiler – version 7.0 or higher is recommended.
| + | * [[WxHaskell/Linux]] |
| - | | + | * [[WxHaskell/Mac]] |
| - | * '''Windows''': You will need wx-config for Windows, MinGW 5.1.6 and MSYS 0.1.11 (these are the latest versions at the time of writing). You must select the C++ compiler option when installing MinGW. | + | * [[WxHaskell/Windows]] |
| - | ** MinGW 5.1.6 can be downloaded from [http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer MinGW]
| + | |
| - | ** MSYS 0.1.11 can be downloaded from [http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe MSYS]
| + | |
| - | ** wx-config can be downloaded from [http://wxconfig.googlepages.com/ wx-config] | + | |
| - | * '''Mac OS X''': you need to install the <tt>gcc</tt> compiler, which is part of the Apple Developer Tools. | + | |
| - | | + | |
| - | At the time of writing, there are few pre-packaged wxWidgets 2.9.x libraries, so you are best just downloading the latest version from [[http://wxwidgets.org The wxWidgets website]].
| + | |
| - | | + | |
| - | We assume in this guide that the variable <tt>$wxwin</tt> points to your wxWidgets installation directory, for example: <tt>~/dev/wxGTK-2.8.10</tt>.
| + | |
| - | | + | |
| - | === Building wxWidgets ===
| + | |
| - | | + | |
| - | '''MacOS X Lion''': I built wxWidgets with most of the optional libraries as follows:
| + | |
| - | | + | |
| - | ./configure --enable-unicode --disable-debug --with-osx_cocoa
| + | |
| - | --prefix=/usr/local --enable-stc --enable-aui
| + | |
| - | --enable-propgrid --enable-xrc --enable-ribbon
| + | |
| - | --enable-richtext --enable-webkit --with-opengl
| + | |
| - | make && make install
| + | |
| - | | + | |
| - | '''Windows 7''': I built wxWidgets as follows:
| + | |
| - | | + | |
| - | Edit <tt>wxwidgets-src-dir\build\msw\config.gcc</tt> so that the following values are set:
| + | |
| - | | + | |
| - | SHARED ?= 1
| + | |
| - | BUILD ?= release
| + | |
| - | | + | |
| - | Then (in cmd.exe, ''not'' bash):
| + | |
| - | | + | |
| - | cd wxwidgets-src-dir\build\msw
| + | |
| - | mingw32-make -f makefile.gcc
| + | |
| - | | + | |
| - | The required wx-config for building on Windows with wxWidgets 2.9.x is currently hosted on http://code.haskell.org/wxhaskell, and only obtainable if you pull the complete repository. This is not very satisfactory, and I am looking for a better solution - probably hosting at Sourceforge. The version of wx-config at code.google.com will not work (it is only suitable for wxWidgets 2.8.x)
| + | |
This page no longer exists. Please refer to your platform instead.