Project

General

Profile

Installing Wt on Mac OS X Leopard » History » Version 15

Jake Petroules, 07/13/2012 02:37 PM
Brought article more up to date

1 15 Jake Petroules
h1. Installing Wt on OS X
2 5 Pieter Libin
3
{{toc}}
4
5 15 Jake Petroules
The following are generic installation instructions for installing Wt (from source) on OS X 10.5 "Leopard" and above.
6 5 Pieter Libin
7
_Only support for the built-in httpd server is listed here. While this is most convenient for development, and also useful for deployment, we probably should expand these instructions to include support for the FastCGI connector._
8
9 1 Pieter Libin
h2. Requirements 
10 5 Pieter Libin
11 1 Pieter Libin
* Get "Xcode":http://developer.apple.com/tools/xcode/ to get the compilers and basic libraries.
12 15 Jake Petroules
* Get "CMake":http://www.cmake.org/cmake/resources/software.html.
13
* Download "Boost 1.41.0":http://www.boost.org/users/download/ (or later).
14 5 Pieter Libin
15 1 Pieter Libin
h2. Preparation 
16 5 Pieter Libin
17 15 Jake Petroules
h3. Build Boost
18 1 Pieter Libin
19 15 Jake Petroules
The following builds and installs Boost in /usr/local:
20 1 Pieter Libin
21 5 Pieter Libin
<pre>
22 15 Jake Petroules
$ cd boost*
23
$ ./bootstrap.sh
24
$ sudo ./b2 install
25 1 Pieter Libin
</pre>
26 5 Pieter Libin
27 15 Jake Petroules
If you would like to install in a different directory, you should run @./bootstrap.sh --prefix=/custom/directory@ instead.
28
29 1 Pieter Libin
You will get warnings that not all features will be built, but Wt doesn't require those.
30 5 Pieter Libin
31 15 Jake Petroules
If you used the --prefix option when building Boost, you will need to modify your dynamic library path:
32 5 Pieter Libin
33
<pre>
34 15 Jake Petroules
$ export DYLD_LIBRARY_PATH=/custom/directory/lib:$DYLD_LIBRARY_PATH
35 1 Pieter Libin
</pre>
36 5 Pieter Libin
37
38
h2. Building Wt 
39
40 15 Jake Petroules
Get the "latest Wt version":http://sourceforge.net/projects/witty/files/wt/. 
41 5 Pieter Libin
42
To build Wt, do the following:
43
44
<pre>
45 15 Jake Petroules
$ cd wt-3*
46 5 Pieter Libin
$ mkdir build
47
$ cd build
48 15 Jake Petroules
$ cmake ../
49 5 Pieter Libin
$ make
50 15 Jake Petroules
$ make -C examples # to build the examples
51 5 Pieter Libin
</pre>
52 15 Jake Petroules
53
_NOTE: If you used the --prefix option when compiling Boost, you must run @cmake -DBOOST_DIR=/custom/directory@ instead of just @cmake@._
54
55 9 Wim Dumon
To run the examples, please see the "generic installation instructions":http://www.webtoolkit.eu/wt/doc/reference/html/Installation.html#examples-wthttpd.