Project

General

Profile

Installing Wt on Mac OS X Leopard » History » Revision 16

Revision 15 (Jake Petroules, 07/13/2012 02:37 PM) → Revision 16/17 (Jake Petroules, 07/16/2012 11:50 PM)

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: 

 <pre> 
 $ cd boost* 
 $ ./bootstrap.sh 
 $ sudo ./b2 install 
 </pre> 

 If you would like to install in a different directory, you should run @./bootstrap.sh --prefix=/custom/directory@ instead, and instead. 

 You will get warnings that not all features will be built, but Wt doesn't require those. 

 If you used the --prefix option when building Boost, you will need to modify your dynamic library path: 

 <pre> 
 $ export DYLD_LIBRARY_PATH=/custom/directory/lib:$DYLD_LIBRARY_PATH 
 </pre> 


 h2. Building Wt  

 Get the "latest Wt version":http://sourceforge.net/projects/witty/files/wt/.  

 To build Wt, do the following: 

 <pre> 
 $ cd wt-3* 
 $ mkdir build 
 $ cd build 
 $ cmake ../ 
 $ make 
 $ make -C examples # to build the examples 
 </pre> 

 _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.