Boost logo

Boost Users :

Subject: [Boost-users] Trying to compile boost 1.40
From: Mathieu Malaterre (mathieu.malaterre_at_[hidden])
Date: 2009-08-21 06:08:55


Hi there,

  I am trying to compile boost 1.40 to start playing with the PBGL.
  I tried using bjam and followed the basic instructions but it fails
to inspect my system and leads to:

$ ./bjam install
Note: Building Boost.Regex with Unicode/ICU support enabled
    Using ICU in /usr/include
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user_config.jam
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.

I would think I need mpi to get PBGL working, so I decided to switch to cmake.
But again it is failing:

$ mkdir bin && cmake .. && make modularize && make && make install

leads to:
/usr/bin/cmake -E cmake_progress_report
/home/mathieu/Software/boost_1_40_0_beta1/bin/CMakeFiles
[ 97%] Building CXX object
tools/inspect/CMakeFiles/inspect.dir/license_check.cpp.o
cd /home/mathieu/Software/boost_1_40_0_beta1/bin/tools/inspect &&
/usr/bin/c++ -DBOOST_ALL_NO_LIB=1
-I/home/mathieu/Software/boost_1_40_0_beta1
-I/home/mathieu/Software/boost_1_40_0_beta1/libs/inspect/include
-O3 -DNDEBUG -pthread -D_REENTRANT -o
CMakeFiles/inspect.dir/license_check.cpp.o -c
/home/mathieu/Software/boost_1_40_0_beta1/tools/inspect/license_check.cpp
/home/mathieu/Software/boost_1_40_0_beta1/tools/inspect/license_check.cpp:8:27:
error: boost/regex.hpp: No such file or directory
/home/mathieu/Software/boost_1_40_0_beta1/tools/inspect/license_check.cpp:13:
error: ‘regex’ in namespace ‘boost’ does not name a type
/home/mathieu/Software/boost_1_40_0_beta1/tools/inspect/license_check.cpp:
In member function ‘virtual void
boost::inspect::license_check::inspect(const std::string&, const
boost::filesystem::path&, const std::string&)’:
/home/mathieu/Software/boost_1_40_0_beta1/tools/inspect/license_check.cpp:39:
error: ‘regex_search’ is not a member of ‘boost’
/home/mathieu/Software/boost_1_40_0_beta1/tools/inspect/license_check.cpp:39:
error: ‘license_regex’ was not declared in this scope
make[2]: *** [tools/inspect/CMakeFiles/inspect.dir/license_check.cpp.o] Error 1
make[2]: Leaving directory `/home/mathieu/Software/boost_1_40_0_beta1/bin'
make[1]: *** [tools/inspect/CMakeFiles/inspect.dir/all] Error 2
make[1]: Leaving directory `/home/mathieu/Software/boost_1_40_0_beta1/bin'
make: *** [all] Error 2

Finally I tried using boost trunk (r55688), but it leads to:

[ 17%] Building CXX object
libs/spirit/example/qi/CMakeFiles/spirit-calc6.dir/calc6/calc6.cpp.o
/home/mathieu/Software/boost-trunk/libs/spirit/example/karma/printf_style_double_format.cpp:
In member function ‘int format_policies<T>::floatfield(T) const’:
/home/mathieu/Software/boost-trunk/libs/spirit/example/karma/printf_style_double_format.cpp:141:
error: ‘base_type’ has not been declared
/home/mathieu/Software/boost-trunk/libs/spirit/example/karma/printf_style_double_format.cpp:144:
error: ‘base_type’ has not been declared
/home/mathieu/Software/boost-trunk/libs/spirit/example/karma/printf_style_double_format.cpp:
In member function ‘bool format_policies<T>::exponent(OutputIterator&,
long int) const’:
/home/mathieu/Software/boost-trunk/libs/spirit/example/karma/printf_style_double_format.cpp:181:
error: expected primary-expression before ‘,’ token
/home/mathieu/Software/boost-trunk/libs/spirit/example/karma/printf_style_double_format.cpp:181:
error: expected primary-expression before ‘>’ token
/home/mathieu/Software/boost-trunk/libs/spirit/example/karma/printf_style_double_format.cpp:183:
error: expected primary-expression before ‘,’ token
/home/mathieu/Software/boost-trunk/libs/spirit/example/karma/printf_style_double_format.cpp:183:
error: expected primary-expression before ‘>’ token

System: Debian 5.0, gcc --version 4.3.4

Thanks for hints,

-- 
Mathieu

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net