on master help sign in
Update README with instructions for Windows
commitc17baeb16e6fac2afa4a12d231991f83ebaeec43 authorPaulo Tanimoto <ptanimoto@gmail.com> dateSat 21 May 2011, 22:23 (15 years ago) parent300fb2a
1 file changed+42−2
README+42−2
README+42−2
@@ -1,4 +1,7 @@
1−Turn WAI applications into standalone GUIs using QT Webkit.
1+Turn WAI applications into standalone GUIs using Qt WebKit.
2+
3+Linux
4+=====
25
36You'll need the appropriate system libraries, on Ubuntu:
47
@@ -6,4 +9,41 @@ You'll need the appropriate system libraries, on Ubuntu:
69
710On Lucid, this required adding a PPA:
811
9− sudo add-apt-repository ppa:kubuntu-ppa/backports
12+ sudo add-apt-repository ppa:kubuntu-ppa/backports
13+
14+
15+Windows
16+=======
17+
18+* Install the Qt SDK from <http://qt.nokia.com/downloads/>
19+
20+* Your application's Cabal file will require certain options for
21+ Windows, shown below. In particular, we need to link with `g++`, so
22+ make sure it's in your `PATH`. The option `-optl-mwindows` ensures
23+ that the application does not open a terminal.
24+
25+ if os(windows)
26+ ghc-options: -Wall -threaded -pgml g++ -optl-static -optl-mwindows
27+ else
28+ ghc-options: -Wall
29+
30+* Run `cabal-install` with the Qt `include` and `lib` directories.
31+
32+ export QT_PATH=c:/QtSDK/Desktop/Qt/4.7.3/mingw
33+
34+ cabal-dev install \
35+ --extra-include-dirs=$QT_PATH/include \
36+ --extra-include-dirs=$QT_PATH/include/QtCore \
37+ --extra-include-dirs=$QT_PATH/include/QtNetwork \
38+ --extra-include-dirs=$QT_PATH/include/QtGui \
39+ --extra-include-dirs=$QT_PATH/include/QtWebKit \
40+ --extra-lib-dirs=$QT_PATH/lib
41+
42+* You'll need to include these DLLs with your application:
43+
44+ phonon4.dll
45+ libgcc_s_dw2-1.dll
46+ QtCore4.dll
47+ QtGui4.dll
48+ QtNetwork4.dll
49+ QtWebKit4.dll