Project

General

Profile

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

Revision 10 (Louis Thiers, 03/22/2011 10:24 AM) → Revision 11/17 (Nadian Kabsch, 04/18/2011 05:49 PM)

h1. Installing Wt on Mac OS X Leopard 

 {{toc}} 

 The following are generic installation instructions for installing Wt (from source) on Mac OS X. 

 _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 2.4.8":http://www.cmake.org/files/v2.4/cmake-2.4.8-Darwin-universal.dmg (the recently released 2.6.0 gives some warnings but also works fine). 
 * Download "Boost 1.35.0":http://downloads.sourceforge.net/boost/boost_1_35_0.tar.bz2 (or later). 


 h2. Preparation  


 h3. Build boost  

 I preferred to install boost in my home directory (since I only need it for Wt). The following builds and installs boost in a "$HOME/Installed" folder: 

 <pre> 
 $ cd boost_1_35_0 
 $ ./configure --prefix=$HOME/Installed 
 $ make 
 $ make install 
 </pre> 

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

 To build Wt using the this custom build path, you will need to modify your dynamic library path: 

 <pre> 
 $ export DYLD_LIBRARY_PATH=~/installed/lib:$DYLD_LIBRARY_PATH 
 </pre> 


 h2. Building Wt  

 Get the "latest Wt version":http://sourceforge.net/project/showfiles.php?group_id=153710#files (wt-2.1.3 or later).  

 To build Wt, do the following: 

 <pre> 
 $ cd wt-2.1.3 
 $ mkdir build 
 $ cd build 
 $ cmake -DBOOST_DIR=$HOME/Installed -DBOOST_VERSION=1_35 -DBOOST_COMPILER=xgcc40 ../ 
 $ make 
 $ make -C examples $ to build the examples 
 </pre> 
 "cash advances loans":http://www.cashadvance-loans.net/ 
 

 To run the examples, please see the "generic installation instructions":http://www.webtoolkit.eu/wt/doc/reference/html/Installation.html#examples-wthttpd. 

 "writing services.":http://customwritingservices.org/index.php