Compiling graph-tool with boost 1.42, missing buffer_concepts.hpp

Hi there,

I have problems compiling the new version of graph-tool (2.2.17) on ubuntu
11.04. Previous version 2.2.15 worked fine. The compilation error says

In file included from graph_minimum_cut.cc:22:0:
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:15:43: fatal
error: boost/graph/buffer_concepts.hpp: No such file or directory
compilation terminated.

and, indeed, I cannot find that file (buffer_concepts.hpp) in the
boost-directories. I have installed boost 1.42 (ubuntu repositories). Is a
newer version of boost required?

Cheers,
Steffen

Yes, I still need to "fix" the min_cut code to work properly with older
boost versions. As of now, you will need a newer boost version to
compile graph-tool.

Cheers,
Tiago

I updated to Boost v 1.51 and now i'm getting compilation errors when
compiling graph_minimum_cut. I'm getting a lot of lines of

In file included from
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:15:0,
                 from graph_minimum_cut.cc:22:
/usr/local/include/boost/graph/buffer_concepts.hpp:18:1: error: redefinition
of 'struct boost::concepts::BufferConcept'
/usr/local/include/boost/graph/graph_concepts.hpp:495:1: error: previous
definition of 'struct boost::concepts::BufferConcept'
In file included from graph_minimum_cut.cc:22:0:
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp: In function
'typename boost::property_traits<WeightMap>::value_type
boost::stoer_wagner_min_cut(const UndirectedGraph&, WeightMap, const
boost::bgl_named_params<P, T, R>&)':
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:221:5: error:
'make_priority_queue_from_arg_pack_gen' is not a member of 'boost::detail'
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:221:5: error:
'max_priority_queue' is not a member of 'boost::graph::keywords::tag'
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:221:5: error:
'make_priority_queue_from_arg_pack_gen' is not a member of 'boost::detail'
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:221:5: error:
'max_priority_queue' is not a member of 'boost::graph::keywords::tag'
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:221:5: error:
expected primary-expression before ',' token
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:221:5: error:
expected primary-expression before ',' token
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:221:5: error:
expected primary-expression before '>' token
In file included from graph_minimum_cut.cc:22:0:
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:225:40: error:
'parity_map_t' is not a member of 'boost'
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:226:9: error:
'make_property_map_from_arg_pack_gen' is not a member of 'boost::detail'
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:226:60: error:
'vertex_assignment_map' is not a member of 'boost::graph::keywords::tag'
./../../boost-workaround/boost/graph/stoer_wagner_min_cut.hpp:226:129:
error: expected primary-expression before '>' token

.....

.....

graph_minimum_cut.cc:59:78: instantiated from here
graph_minimum_cut.cc:35:13: error: 'parity_map' was not declared in this
scope

Hi,

I deleted the file and remaked the project. It's still occuring. Do you have
any other suggestions? Thank you.

Well, it seems it is some incompatibility with boost 1.51. I'll
investigate this when I find some time.

Cheers,
Tiago