[Update Build Instruction Document for GHC 6.6.x, GHC 6.8.x and latest darcs sources
shelarcy If you want to use Visual C++ Express Edition, you must install Microsoft Platform SDK before building wxWidgets or wxHaskell. If you want to use database access and openGL canvas, you must edit After configuration, first go the After configuration, first run Make will stop by following error. Then go Build/Set active configuration
" and select "wxWidgets - win32 release
" to build the (static) library. After compilation, you can also select "wxWidgets - win32 debug
" to build
+Select menu "Build/Set active configuration
" and select "wxWidgets - win32 release unicode
" to build the (static) library. After compilation, you can also select "wxWidgets - win32 debug unicode
" to build
hunk ./homepage/building-msc.html 68
-$wxwin/build/msw/wx.dsw
workspace. Select
+$wxwin/build/msw/wx.dsw
workspace. Select
hunk ./homepage/building-msc.html 70
-when you click a marker, all configurations are deselected. Next you manually select the "Release" and "Debug" versions of all projects and press "Build". Afterwards, press "Save All" to save all your mouse clicking work :-)$wxwin/include/msw/setup.h
's #define wxUSE_*
(* is target feature name) from 0 to 1. $wxhaskell/wxc
directory. Here, you need to adapt the wxc-version.dsp
project to reference the correct wxWidgets directory. Open the .dsp
file in an editor and replace all occurrences of "..\..\wxWindows-2.4.2
" (or "..\..\wxWindows-2.5.1
") or by the installed wxWidgets directory, i.e. $wxwin
.
+make
command to generate stc_gen.* files.
+> make
+
+
+
+> make: *** No rule to make target `out/wxc/wxc-msw2.6.4-0.10.1.dll', needed by `wxc'. Stop.
+
+
+$wxhaskell/wxc
directory. Here, you need to adapt the wxc-version.dsp
project to reference the correct wxWidgets directory. Open the .dsp
file in an editor and replace all occurrences of "..\..\wxWindows-2.4.2
" (or "..\..\wxWindows-2.6.4
") or by the installed wxWidgets directory, i.e. $wxwin
.
hunk ./homepage/building-msc.html 100
-and build the release and debug versions of the C wrapper library.
Ensure you have a recent GHC compiler – version 6.4 is recommended (but any version >= 5.04.3 will work). In principle, any Haskell98 compiler that supports the standard FFI libraries will also work.
+Ensure you have a recent GHC compiler – version 6.8.1 is recommended (but any version >= 5.04.3 will work). In principle, any Haskell98 compiler that supports the standard FFI libraries will also work.
hunk ./homepage/building.html 98 -Next, you should install the latest stable version (currently 2.6.0) of wxWidgets
-for your platform. We assume in this guide that the variable $wxwin
points to your
-wxWidgets installation directory, for example: ~/dev/wxGTK-2.6.0
.
Next, you should install the previous stable version (2.6.4) of wxWidgets
+for your platform. (wxHaskell doesn't support latest stable version (currently 2.8.4) now.) We assume in this guide that the variable $wxwin
points to your
+wxWidgets installation directory, for example: ~/dev/wxGTK-2.6.4
.
If you do not have a source release of wxHaskell, you need to check it out from the cvs repository. CVS creates a +
(Note: GHC 6.6.x or higher can't build old source releases. So you must get source from darcs by below command.)
+ +If you do not have a source release of wxHaskell, you need to check it out from the darcs repository. Darcs creates a hunk ./homepage/building.html 124 -> cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/wxhaskell login -> cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/wxhaskell co -P wxhaskell +> darcs get --partial --set-scripts-executable http://darcs.haskell.org/wxhaskell/ hunk ./homepage/building.html 126 - -
You can check out a specific release version using the -r
flag:
--disable-shared
to build a static library (recommended for wxHaskell version >= 0.7).--enable-unicode
to build a unicode library (recommended for latest darcs repository version).--disable-shared
to build a static library (recommended for wxHaskell version >= 0.7).--enable-mediactrl
to enable the media control. (recommended for wxWidgets version >= 2.6.x)--with-stc
option to configure
if you also installed contrib's stc library after building
+wxWidgets (or you will get link errors).