Installing Wt on FreeBSD » History » Version 7
Davis Peterson, 07/05/2010 05:27 AM
1 | 4 | Pieter Libin | h1. Installing Wt on FreeBSD |
---|---|---|---|
2 | |||
3 | Just a few notes to help FreeBSD users to build Wt. I tested those tips on FreeBSD 7.2. |
||
4 | |||
5 | * For the cmake options : |
||
6 | |||
7 | <pre> |
||
8 | cmake -DBOOST_DIR=/usr/local -DBOOST_FS_LIB_MT=/usr/local -DBOOST_FS_LIB_MT=/usr/local/lib/libboost_filesystem.so ../ |
||
9 | </pre> |
||
10 | |||
11 | 7 | Davis Peterson | * This will build a non-threaded version of Wt, which is fine for playing around with the features, but a multi-threaded Wt build is to be preferred. Although boost for FreeBSD is multi-threaded, they do not have the signature -mt- in their library names, which is taken by the Wt build process as an indication that the boost libraries are multi-threaded. To force Wt to make a multi-threaded build, you need to edit your CMakeCache.txt though <a href="http://customwritingservices.org/" style="color:#000000; text-decoration:none">writing service</a> and copy the value of each BOOST_xx_LIB variable to BOOST_xx_LIB_MT, specify the BOOST_THREAD_LIB_MT library, and add -lpthread to the WtFindBoost.txt cmake script (lines 223 - 229): |
12 | 4 | Pieter Libin | |
13 | <pre> |
||
14 | SET(BOOST_WT_LIBRARIES |
||
15 | ${BOOST_THREAD_LIB_MT} |
||
16 | ${BOOST_REGEX_LIB_MT} |
||
17 | ${BOOST_SIGNALS_LIB_MT} |
||
18 | ${BOOST_SYSTEM_LIB_MT} |
||
19 | ${BOOST_PO_LIB_MT} |
||
20 | ${BOOST_DT_LIB_MT} -lpthread) |
||
21 | </pre> |
||
22 | |||
23 | When running make, you should then get a line that says: |
||
24 | |||
25 | <pre> |
||
26 | ** Enabling multi threading. |
||
27 | </pre> |
||
28 | |||
29 | * Be sure to specify "www" for the WEBUSER and WEBGROUP configuration variables. Otherwise Wt will use "apache" user/group which doesn't exist by default on FreeBSD. |
||
30 | |||
31 | * To compile some examples, you need to replace "png12" by "png" because the PNG libray is simply named "libpng.so" on FreeBSD. |
||
32 | |||
33 | I hope those simple tips will help FreeBSD users to install and try Wt. |