Installing Wt on Mac OS X Leopard » History » Revision 16
« Previous |
Revision 16/17
(diff)
| Next »
Jake Petroules, 07/16/2012 11:50 PM
Move some things around to the right places
h1. Installing Wt on OS X
{{toc}}
The following are generic installation instructions for installing Wt (from source) on OS X 10.5 "Leopard" and above.
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.
h2. Requirements
- Get "Xcode":http://developer.apple.com/tools/xcode/ to get the compilers and basic libraries.
- Get "CMake":http://www.cmake.org/cmake/resources/software.html.
- Download "Boost 1.41.0":http://www.boost.org/users/download/ (or later).
h2. Preparation
h3. Build Boost
The following builds and installs Boost in /usr/local:
$ cd boost*
$ ./bootstrap.sh
$ sudo ./b2 install
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:
$ export DYLD_LIBRARY_PATH=/custom/directory/lib:$DYLD_LIBRARY_PATH
h2. Building Wt
Get the "latest Wt version":http://sourceforge.net/projects/witty/files/wt/.
To build Wt, do the following:
$ cd wt-3*
$ mkdir build
$ cd build
$ cmake ../
$ make
$ make -C examples # to build the examples
NOTE: If you used the --prefix option when compiling Boost, you must run @cmake -DBOOST_DIR=/custom/directory@ instead of just @cmake@.
You may receive warnings that not all features will be built, but Wt doesn't require those.
To run the examples, please see the "generic installation instructions":http://www.webtoolkit.eu/wt/doc/reference/html/Installation.html#examples-wthttpd.
Updated by Jake Petroules over 12 years ago · 16 revisions