File: README.Debian

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (58 lines) | stat: -rw-r--r-- 2,278 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
* Wt 3.x packages: split packages, static libraries

  In the Wt 2.x package series, you had to install all the development libraries
  or none of them. In the Wt 3.x packages, libraries are split in
  several packages: 
   - libwt-dev (core)
   - libwthttp-dev (HTTP connector, the application is its own web server)
   - libwtfcgi-dev (FastCGI connector, the  application will be served through 
     a web server such as Apache)
   - libwtext-dev (additional widgets using ExtJS)
   - libwtdbo-dev (Wt::Dbo ORM)
   - libwtdbosqlite-dev (Wt::Dbo sqlite3 backend)

  For Wt 2.x, the Debian packages installed only shared libraries. 
  Since Wt 3.x, there are packages for shared and for static libraries.

* Building the examples

  To build the examples, call CMake this way:

    $ cmake -DWT_SOURCE_DIR=/usr/share/doc/libwt-doc/ \
       -DEXAMPLES_CONNECTOR="wt;wthttp" -DCMAKE_BUILD_TYPE=Release \
       /usr/share/doc/libwt-doc/examples
    $ make

  Then go to /usr/share/doc/libwt-doc/examples and enter the directory of the 
  example you want to run. When running the example, set the docroot to "." 

  For instance, if you compiled the examples in /home/user/dev/wtexamples, you would do:

    $ mkdir /home/user/dev/wtexamples
    $ cd /home/user/dev/wtexamples
    $ cmake -DWT_SOURCE_DIR=/usr/share/doc/libwt-doc/ \
       -DEXAMPLES_CONNECTOR="wt;wthttp" -DCMAKE_BUILD_TYPE=Release \
       /usr/share/doc/libwt-doc/examples
    $ make
    $ cd /usr/share/doc/libwt-doc/examples/gitmodel
    $ /home/user/dev/wtexamples/gitmodel/gitview.wt --http-port 10000 \
      --http-addr 0.0.0.0 --docroot .

  Important:
    - The wt-homepage example will not run properly unless you download
      ExtJS 2.0 and extract it the proper place. See 
      /usr/share/doc/libwt-doc/reference/html/group__ext.html#_details to find
      out where to download ExtJS 2.0 from.

    - Take a look at the console output, particularly to the 404 errors: those 
      are files which the webapp did not find (resources, icons, etc) 

    - The wtwithqt example needs Qt 4.x to run

* Building the tests

  To build the tests, call CMake this way:

    $ cmake -DWT_SOURCE_DIR=/usr/share/doc/libwt-doc/ \ 
      -DCMAKE_BUILD_TYPE=Release /usr/share/doc/libwt-doc/test/
    $ make