Project

General

Profile

Installing Wt on Mac OS X Tiger » History » Revision 2

Revision 1 (Pieter Libin, 10/29/2009 01:13 PM) → Revision 2/5 (Pieter Libin, 10/29/2009 01:14 PM)

h1. Installing Wt on Mac OS X Tiger 

 {{toc}} 

 h2. Boost 

 <pre> 
  $ cd ~/downloads 
  $ tar -xzvf boostt_1_38_0.tar.gz 
  $ cd boost_1_38_0 
  $ bjam debug release --toolset=darwin --with-test \ 
  --with-filesystem --with-program_options \ 
  --with-iostreams --with-thread --with-regex \ 
  --with-date_time --with-signals --with-python \ 
  --architecture=combined --layout=system \ 
  link=shared,static macosx-version=10.4 \ 
  -sHAVE_ICU=1 -sICU_PATH=/usr/local/icu/4.0 \ 
  --prefix=$HOME/usr/local/boost \ 
  --exec-prefix=$HOME/usr/local/boost install 
 </pre> 

 Screen output 

 <pre> 
  Note: Building Boost.Regex with Unicode/ICU support enabled 
     Using ICU in    /usr/local/icu/4.0/include 
  ...patience... 
  ...patience... 
  ...found 17426 targets... 
  ...updating 7843 targets... 
  common.mkdir /Users/khinester/usr/local/boost 
  common.mkdir /Users/khinester/usr/local/boost/lib 
  common.mkdir bin.v2 
  .. 
 </pre> 

 h2. Install Wt 

 <pre> 
  $ cd ~/sandboxes 
  $ git clone http://www.webtoolkit.eu/git/wt.git 
  Initialized empty Git repository in /Users/khinester/sandboxes/wt/.git/ 
 </pre> 

 Screen output 

 <pre> 
  Getting alternates list for http://www.webtoolkit.eu/git/wt.git 
  Getting pack list for http://www.webtoolkit.eu/git/wt.git 
  Getting index for pack 3b61ebee7d05f78b397214f02614d02ca38aea30 
  Getting pack 3b61ebee7d05f78b397214f02614d02ca38aea30 
   which contains 0b0a674bcef46351b3517de9f45d58941c9c8982 
  .. 
 </pre> 

 h2. Build Wt 

 <pre> 
  $ cd wt 
  $ mkdir build 
  $ cd build 
  $ cmake \ 
   -DBOOST_DIR=$HOME/usr/local/boost \ 
   -DBOOST_VERSION=1_38    \ 
   -DBOOST_COMPILER=xgcc40 \ 
   -DMYSQL_INCLUDE=/usr/local/mysql \ 
   -DDEPLOYROOT=$HOME/Sites/wt \ 
   -DWEBUSER=apache \ 
   -DWEBGROUP=apache \ 
   ../ 
 </pre> 

 Here is the output 

 <pre> 
  -- The C compiler identification is GNU 
  -- The CXX compiler identification is GNU 
  -- Check for working C compiler: /usr/bin/gcc 
  -- Check for working C compiler: /usr/bin/gcc -- works 
  -- Detecting C compiler ABI info 
  -- Detecting C compiler ABI info - done 
  -- Check for working CXX compiler: /usr/bin/c++ 
  -- Check for working CXX compiler: /usr/bin/c++ -- works 
  -- Detecting CXX compiler ABI info 
  -- Detecting CXX compiler ABI info - done 
  ** Using supplied mxml library.  
  -- Looking for include files CMAKE_HAVE_PTHREAD_H 
  -- Looking for include files CMAKE_HAVE_PTHREAD_H - found 
  -- Looking for pthread_create in pthreads 
  -- Looking for pthread_create in pthreads - not found 
  -- Looking for pthread_create in pthread 
  -- Looking for pthread_create in pthread - found 
  -- Found Threads: TRUE 
  ** Enabling multi threading. 
  ** Disabling FastCGI. 
  ** Enabling built-in httpd. 
  -- ** Wt/Qt interopability example (wtwithqt) needs Qt4 and threading support... Skipping. 
  -- Configuring done 
  -- Generating done 
  -- Build files have been written to: /Users/khinester/sandboxes/wt/build 
 </pre> 

 h2. Next we make 

 <pre> 
  $ make 
 </pre> 
 !make.jpg!