Installing Wt on Ubuntu » History » Revision 61
« Previous |
Revision 61/62
(diff)
| Next »
Wim Dumon, 12/17/2018 11:30 AM
Pau is no longer maintaining ubuntu packages for Wt
h1. Installing Wt on Ubuntu
{{toc}}
For installation of Wt on Ubuntu, you have to install Wt from source.
h2. Installing from Sources
h3. Installing System Dependencies
Minimal dependencies:
Optional dependencies (among others):
Get Wt:
Go to http://www.webtoolkit.eu/wt/download or download using wget:
h3. Build Wt from sources
See also http://www.webtoolkit.eu/wt/doc/reference/html/InstallationUnix.html
To install wt in /usr/local:
h2. Try the Examples
h4. From the Prebuilt Packages
- To build the examples, call CMake this way:
cmake -DWT_SOURCE_DIR=/usr/share/doc/witty-doc/ -DEXAMPLES_CONNECTOR="wt;wthttp" /usr/share/doc/witty-doc/examples
-
Then go to /usr/share/doc/witty-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/witty-doc/ -DEXAMPLES_CONNECTOR="wt;wthttp" /usr/share/doc/witty-doc/examples $ make $ cd /usr/share/doc/witty-doc/examples/charts $ /home/user/dev/wtexamples/charts/charts.wt --http-port 10000 --http-addr 0.0.0.0 --docroot .
h4. From the Sources
- 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.
h4. Special Cases
-
Please note the widget gallery example will not run properly unless you download tinymce and extract it the proper place.
-
Please note the wtwithqt example needs Qt 4.x to run
h2. Using 'ccmake' to Edit Build Options
This is an easy, graphical way to edit the build options
Updated by Wim Dumon over 7 years ago · 62 revisions