[Update Build Instruction Document for GHC 6.6.x, GHC 6.8.x and latest darcs sources shelarcy **20071121130520] { hunk ./homepage/building-msc.html 61 +

If you want to use Visual C++ Express Edition, you must install Microsoft Platform SDK before building wxWidgets or wxHaskell.

+ hunk ./homepage/building-msc.html 66 -Select menu "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 -
  • wxWidgets 2.5: Open the $wxwin/build/msw/wx.dsw workspace. Select +
  • wxWidgets 2.6: Open the $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 :-)
  • +when you click a marker, all configurations are deselected. Next you manually select the "Unicode Release" and "Unicode Debug" versions of all projects and press "Build". Afterwards, press "Save All" to save all your mouse clicking work :-) hunk ./homepage/building-msc.html 73 +

    If you want to use database access and openGL canvas, you must edit $wxwin/include/msw/setup.h's #define wxUSE_* (* is target feature name) from 0 to 1.

    + hunk ./homepage/building-msc.html 86 -

    After configuration, first go the $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. +

    After configuration, first run make command to generate stc_gen.* files.

    +
    +> make
    +
    + +

    Make will stop by following error.

    +
    +> make: *** No rule to make target `out/wxc/wxc-msw2.6.4-0.10.1.dll', needed by `wxc'.  Stop.
    +
    + +

    Then go $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.

    +and build the release and debug versions of the C wrapper library (if you use wxWidgets 2.6.4, you must choose +"Unicode Release" or "Unicode Debug" instead of choosing just "Release" or "Debug").

    hunk ./homepage/building-msc.html 109 +> make wx +> make wx-install hunk ./homepage/building-msc.html 116 -toplast update: "Apr 1 2004". +toplast update: "Aug 18 2007". hunk ./homepage/building.html 64 - the Microsoft Visual C++ compiler version 6 and 7 (windows-msc) and building with the + the Microsoft Visual C++ compiler version 6, 7 and 8 (windows-msc) and building with the hunk ./homepage/building.html 81 -

    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.

    hunk ./homepage/building.html 106 -
  • macosx: MacOS X works best with wxWidgets 2.5.4. The latest stable release (currently wxMAC-2.6.0) does not display menus properly. +
  • macosx: MacOS X works best with wxWidgets 2.5.4. The previous stable release (wxMAC-2.6.4) does not display menus properly. hunk ./homepage/building.html 117 -

    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:

    + hunk ./homepage/building.html 146 -> ../configure --disable-shared +> ../configure --enable-unicode --disable-shared +> make +> make install +> cd contrib/src hunk ./homepage/building.html 157 -