Installing Wt on Ubuntu » History » Version 61
Wim Dumon, 12/17/2018 11:30 AM
Pau is no longer maintaining ubuntu packages for Wt
1 | 1 | Pieter Libin | h1. Installing Wt on Ubuntu |
---|---|---|---|
2 | |||
3 | {{toc}} |
||
4 | |||
5 | 61 | Wim Dumon | For installation of Wt on Ubuntu, you have to install Wt from source. |
6 | 1 | Pieter Libin | |
7 | 4 | Pau Garcia i Quiles | h2. Installing from Sources |
8 | 1 | Pieter Libin | |
9 | h3. Installing System Dependencies |
||
10 | |||
11 | 42 | Wim Dumon | Minimal dependencies: |
12 | <pre> |
||
13 | 51 | Zhora Melezhko | sudo apt-get install gcc g++ libboost-all-dev cmake |
14 | 42 | Wim Dumon | </pre> |
15 | |||
16 | 51 | Zhora Melezhko | Optional dependencies (among others): |
17 | 1 | Pieter Libin | <pre> |
18 | 51 | Zhora Melezhko | sudo apt-get install doxygen libgraphicsmagick3 libssl-dev libpq-dev libssl-dev libfcgi-dev |
19 | 1 | Pieter Libin | </pre> |
20 | |||
21 | 51 | Zhora Melezhko | Get Wt: |
22 | 45 | Wim Dumon | |
23 | 46 | Wim Dumon | Go to http://www.webtoolkit.eu/wt/download or download using wget: |
24 | 1 | Pieter Libin | |
25 | 58 | Christian Meyer | <pre> |
26 | 60 | Wim Dumon | wget -c https://github.com/emweb/wt/archive/x.y.z.tar.gz |
27 | 1 | Pieter Libin | tar xvxf wt-x.y.z.tar.gz |
28 | 36 | Wim Dumon | </pre> |
29 | 1 | Pieter Libin | |
30 | h3. Build Wt from sources |
||
31 | 36 | Wim Dumon | |
32 | 44 | Wim Dumon | See also http://www.webtoolkit.eu/wt/doc/reference/html/InstallationUnix.html |
33 | |||
34 | <pre> |
||
35 | cd wt-x.y.z |
||
36 | 51 | Zhora Melezhko | mkdir build; cd build |
37 | cmake .. |
||
38 | 36 | Wim Dumon | make |
39 | make -C examples |
||
40 | 1 | Pieter Libin | </pre> |
41 | 36 | Wim Dumon | To install wt in /usr/local: |
42 | 1 | Pieter Libin | <pre> |
43 | sudo make install |
||
44 | sudo ldconfig |
||
45 | </pre> |
||
46 | |||
47 | 36 | Wim Dumon | h2. Try the Examples |
48 | 1 | Pieter Libin | |
49 | 24 | Charles Brockman | h4. From the Prebuilt Packages |
50 | 1 | Pieter Libin | |
51 | 24 | Charles Brockman | * To build the examples, call CMake this way: |
52 | 1 | Pieter Libin | |
53 | <pre> |
||
54 | cmake -DWT_SOURCE_DIR=/usr/share/doc/witty-doc/ -DEXAMPLES_CONNECTOR="wt;wthttp" /usr/share/doc/witty-doc/examples |
||
55 | </pre> |
||
56 | |||
57 | * Then go to */usr/share/doc/witty-doc/examples* and enter the directory of the example you want to run. |
||
58 | |||
59 | * When running the example, set the docroot to "." |
||
60 | |||
61 | * For instance, if you compiled the examples in /home/user/dev/wtexamples, you would do: |
||
62 | |||
63 | 9 | Koen Deforche | <pre> |
64 | 47 | Wim Dumon | $ mkdir /home/user/dev/wtexamples |
65 | 1 | Pieter Libin | $ cd /home/user/dev/wtexamples |
66 | 48 | Wim Dumon | $ cmake -DWT_SOURCE_DIR=/usr/share/doc/witty-doc/ -DEXAMPLES_CONNECTOR="wt;wthttp" /usr/share/doc/witty-doc/examples |
67 | $ make |
||
68 | $ cd /usr/share/doc/witty-doc/examples/charts |
||
69 | $ /home/user/dev/wtexamples/charts/charts.wt --http-port 10000 --http-addr 0.0.0.0 --docroot . |
||
70 | </pre> |
||
71 | |||
72 | h4. From the Sources |
||
73 | |||
74 | * If you installed Wt using the source packages (http://sourceforge.net/projects/witty/files/), then you can find instructions on how to run the examples in the file *INSTALL.html* that is included in the main directory of the respective source package. |
||
75 | |||
76 | 47 | Wim Dumon | h4. Special Cases |
77 | 33 | Anonymous | |
78 | * Please note the widget gallery example will not run properly unless you download tinymce and extract it the proper place. |
||
79 | 36 | Wim Dumon | |
80 | 35 | Anonymous | * Please note the wtwithqt example needs Qt 4.x to run |
81 | |||
82 | 54 | Pau Garcia i Quiles | h2. Using 'ccmake' to Edit Build Options |
83 | 51 | Zhora Melezhko | |
84 | 33 | Anonymous | This is an easy, graphical way to edit the build options |
85 | |||
86 | <pre> |
||
87 | 24 | Charles Brockman | cd build |
88 | 18 | darren sy | ccmake . |
89 | </pre> |