on wai-handler-fastcgi/1.2.0.2 help sign in
53 lines 1.4 kB history raw
1wai-handler-webkit
2==================
4Turn WAI applications into standalone GUIs using Qt WebKit.
7Linux
8-----
10You'll need the appropriate system libraries, on Ubuntu:
12 apt-get install libqtwebkit-dev
14On Lucid, this required adding a PPA:
16 sudo add-apt-repository ppa:kubuntu-ppa/backports
19Windows
20-------
22Install the Qt SDK from <http://qt.nokia.com/downloads/>
24Your application's Cabal file will require certain options for Windows,
25shown below. In particular, we need to link with `g++`, so make sure
26it's in your `PATH`. The option `-optl-mwindows` ensures that the
27application does not open a terminal.
29 if os(windows)
30 ghc-options: -Wall -threaded -pgml g++ -optl-static -optl-mwindows
31 else
32 ghc-options: -Wall
34Run `cabal-install` with the Qt `include` and `lib` directories.
36 export QT_PATH=c:/QtSDK/Desktop/Qt/4.7.3/mingw
38 cabal-dev install \
39 --extra-include-dirs=$QT_PATH/include \
40 --extra-include-dirs=$QT_PATH/include/QtCore \
41 --extra-include-dirs=$QT_PATH/include/QtNetwork \
42 --extra-include-dirs=$QT_PATH/include/QtGui \
43 --extra-include-dirs=$QT_PATH/include/QtWebKit \
44 --extra-lib-dirs=$QT_PATH/lib
46You'll need to include these DLLs with your application:
48 phonon4.dll
49 libgcc_s_dw2-1.dll
50 QtCore4.dll
51 QtGui4.dll
52 QtNetwork4.dll
53 QtWebKit4.dll