Norman,
Wt does not support compiling against a boost source directory, like
you demonstrate with your gcc command. You must install boost
somewhere, by running bjam <--whateveropts> install.
Your -DBOOST_DIR=/usr/local/include/boost-1_38 suggests that you
installed boost in /usr/local, in which case your BOOST_DIR should
read -DBOOST_DIR=/usr/local
In that case, the header files should be located in
/usr/local/include/boost-1_38 (in a subdirectory named 'boost')
In /usr/local/lib, there should be files like libboost_regex-xgcc40-mt-1_38.a
The xgcc40 part of that file name must be equal to BOOST_COMPILER. If
it is different on your system, you may very well have to change
BOOST_COMPILER to something else.
BOOST_VERSION (1_38 in your case) is used both to construct the
include path and as part of the library name.
>From the cmake file: Wt searches boost headers in
${BOOST_DIR}/include
${BOOST_DIR}/include/${BOOST_VERSION}
${BOOST_DIR}/include/boost-${BOOST_VERSION} <-- Default on MacOS
${BOOST_DIR}
Wt searches boost libraries in
${BOOST_DIR}/lib
And the naming schemes for the libraries are
boost_regex-${BOOST_COMPILER}-mt-${BOOST_VERSION} <-- Default on MacOS
boost_regex-${BOOST_COMPILER}-mt
boost_regex-mt
(cmake adds file extensions and prefixes to these names, e.g. foobar
-> libfoobar.a)
The items indicated by 'default on MacOS' are the ones that will be
used when you do not specify special parameters during the boost
compilation process that will change installation location and naming
signatures of the library files.
Also, to be sure, erase your entire build directory whenever you are
changing the BOOST_* parameters. Cmake is very bad in forgetting
variables once they have been set.
Hope this helps,
Wim.
2009/4/2 norman <[email protected]>:
> hi,
> i tried as suggested, but get the same error:
>
> $ cmake -DBOOST_COMPILER=xgcc40 -DBOOST_DIR=/usr/local/include/boost-1_38
> -DBOOST_VERSION=1_38 ../
<snip>
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest