|
Boost : |
From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-08-14 21:27:27
On 08/14/2007 04:38 PM, Larry Evans wrote:
> On 08/14/2007 03:02 PM, Doug Gregor wrote:
>> On Aug 14, 2007, at 3:48 PM, Larry Evans wrote:
>>
>>> On 08/14/2007 12:32 PM, Doug Gregor wrote:
>>>> You don't have a C++ compiler in your path? Interesting.
>>>>
>>> Yeah, I probably should. I *must* have had some
>>> reason for calling it g++-4.1 instead of just g++; however,
>>> I can't remember now.
>> Okay. This is the kind of thing I wouldn't put on the introductory
>> tutorial for getting Boost to build with CMake, because it's rather
>> uncommon and would be clutter for most readers.
>
> Understandable.
>
>>> Now, on another problem. I tried cd to the build/libs/mpl and noticed
>>> a Makefile but no test subdirectory; so I tried invoking make, but
>>> nothing was compiled. I guess this directory has not yet been
>>> converted
>>> to use CMake. Is there one that has so I could test it out?
>>> the src/libs/mpl/
>> Most users don't want to run tests, so testing must be enabled
>> manually. See:
>>
>> http://svn.boost.org/trac/boost/wiki/CMakeTesting
>>
> I tried just enabling the Metaprogramming test ( build/CMakeCache.txt
> contained:
>
> //Enable testing of Boost.Metaprogramming
> TEST_BOOST_METAPROGRAMMING:BOOL=ON
>
> ), then I did `make -i` (as suggested by wiki/CMakeTesting), then
> `ctest`; however, all tests failed:
>
> cd ~/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/build/
> ctest
> Start processing tests
> Test project
> /home/evansl/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/build
> 1/ 83 Testing metaprogramming::largest_int ***Failed
> 2/ 83 Testing metaprogramming::msvc_is_class***Failed
> 3/ 83 Testing metaprogramming::template_arit***Failed
> ...
> 82/ 83 Testing metaprogramming::vector_c ***Failed
> 83/ 83 Testing metaprogramming::zip_view ***Failed
>
> 0% tests passed, 83 tests failed out of 83
>
>
> Doug, do you have any idea what I should do to get these
> tests to run?
>
Apparently ctest doesn't use the CMakeCache.txt because I just
symlinked /usr/bin/g++ -> /usr/bin/g++-4.1 and ctest is now running
the tests and they're passing.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk