Project

General

Profile

Installing Wt on Mac OS X Tiger » History » Version 4

Wim Dumon, 05/18/2011 11:37 PM
remove spam

1 1 Pieter Libin
h1. Installing Wt on Mac OS X Tiger
2
3
{{toc}}
4
5 2 Pieter Libin
h2. Boost
6 1 Pieter Libin
7
<pre>
8
 $ cd ~/downloads
9
 $ tar -xzvf boostt_1_38_0.tar.gz
10
 $ cd boost_1_38_0
11
 $ bjam debug release --toolset=darwin --with-test \
12
 --with-filesystem --with-program_options \
13
 --with-iostreams --with-thread --with-regex \
14
 --with-date_time --with-signals --with-python \
15
 --architecture=combined --layout=system \
16
 link=shared,static macosx-version=10.4 \
17
 -sHAVE_ICU=1 -sICU_PATH=/usr/local/icu/4.0 \
18
 --prefix=$HOME/usr/local/boost \
19
 --exec-prefix=$HOME/usr/local/boost install
20
</pre>
21
22
Screen output
23
24
<pre>
25
 Note: Building Boost.Regex with Unicode/ICU support enabled
26
    Using ICU in  /usr/local/icu/4.0/include
27
 ...patience...
28
 ...patience...
29
 ...found 17426 targets...
30
 ...updating 7843 targets...
31
 common.mkdir /Users/khinester/usr/local/boost
32
 common.mkdir /Users/khinester/usr/local/boost/lib
33
 common.mkdir bin.v2
34
 ..
35
</pre>
36
37 2 Pieter Libin
h2. Install Wt
38 1 Pieter Libin
39
<pre>
40
 $ cd ~/sandboxes
41
 $ git clone http://www.webtoolkit.eu/git/wt.git
42
 Initialized empty Git repository in /Users/khinester/sandboxes/wt/.git/
43
</pre>
44
45
Screen output
46
47
<pre>
48
 Getting alternates list for http://www.webtoolkit.eu/git/wt.git
49
 Getting pack list for http://www.webtoolkit.eu/git/wt.git
50
 Getting index for pack 3b61ebee7d05f78b397214f02614d02ca38aea30
51
 Getting pack 3b61ebee7d05f78b397214f02614d02ca38aea30
52
  which contains 0b0a674bcef46351b3517de9f45d58941c9c8982
53
 ..
54
</pre>
55
56 2 Pieter Libin
h2. Build Wt
57 1 Pieter Libin
58
<pre>
59
 $ cd wt
60
 $ mkdir build
61
 $ cd build
62
 $ cmake \
63
  -DBOOST_DIR=$HOME/usr/local/boost \
64
  -DBOOST_VERSION=1_38  \
65
  -DBOOST_COMPILER=xgcc40 \
66
  -DMYSQL_INCLUDE=/usr/local/mysql \
67
  -DDEPLOYROOT=$HOME/Sites/wt \
68
  -DWEBUSER=apache \
69
  -DWEBGROUP=apache \
70
  ../
71
</pre>
72
73
Here is the output
74
75
<pre>
76
 -- The C compiler identification is GNU
77
 -- The CXX compiler identification is GNU
78
 -- Check for working C compiler: /usr/bin/gcc
79
 -- Check for working C compiler: /usr/bin/gcc -- works
80
 -- Detecting C compiler ABI info
81
 -- Detecting C compiler ABI info - done
82
 -- Check for working CXX compiler: /usr/bin/c++
83
 -- Check for working CXX compiler: /usr/bin/c++ -- works
84
 -- Detecting CXX compiler ABI info
85
 -- Detecting CXX compiler ABI info - done
86
 ** Using supplied mxml library. 
87
 -- Looking for include files CMAKE_HAVE_PTHREAD_H
88
 -- Looking for include files CMAKE_HAVE_PTHREAD_H - found
89
 -- Looking for pthread_create in pthreads
90
 -- Looking for pthread_create in pthreads - not found
91
 -- Looking for pthread_create in pthread
92
 -- Looking for pthread_create in pthread - found
93
 -- Found Threads: TRUE
94
 ** Enabling multi threading.
95
 ** Disabling FastCGI.
96
 ** Enabling built-in httpd.
97
 -- ** Wt/Qt interopability example (wtwithqt) needs Qt4 and threading support... Skipping.
98
 -- Configuring done
99
 -- Generating done
100
 -- Build files have been written to: /Users/khinester/sandboxes/wt/build
101
</pre>
102
103 2 Pieter Libin
h2. Next we make
104 1 Pieter Libin
105
<pre>
106
 $ make
107
</pre>
108
!make.jpg!