Project

General

Profile

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

Amine Chadly, 04/14/2013 01:36 AM
Fix link to generic installation instructions page.

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 16 Jake Petroules
If you would like to install in a different directory, you should run @./bootstrap.sh --prefix=/custom/directory@ instead, and you will need to modify your dynamic library path:
28 5 Pieter Libin
29
<pre>
30 15 Jake Petroules
$ export DYLD_LIBRARY_PATH=/custom/directory/lib:$DYLD_LIBRARY_PATH
31 1 Pieter Libin
</pre>
32 5 Pieter Libin
33
34
h2. Building Wt 
35
36 15 Jake Petroules
Get the "latest Wt version":http://sourceforge.net/projects/witty/files/wt/. 
37 5 Pieter Libin
38
To build Wt, do the following:
39
40
<pre>
41 15 Jake Petroules
$ cd wt-3*
42 5 Pieter Libin
$ mkdir build
43
$ cd build
44 15 Jake Petroules
$ cmake ../
45 1 Pieter Libin
$ make
46
$ make -C examples # to build the examples
47 5 Pieter Libin
</pre>
48 15 Jake Petroules
49 5 Pieter Libin
_NOTE: If you used the --prefix option when compiling Boost, you must run @cmake -DBOOST_DIR=/custom/directory@ instead of just @cmake@._
50 16 Jake Petroules
51
You may receive warnings that not all features will be built, but Wt doesn't require those.
52 15 Jake Petroules
53 17 Amine Chadly
To run the examples, please see the "generic installation instructions":http://www.webtoolkit.eu/wt/doc/reference/html/InstallationUnix.html#examples.