Boost logo

Boost Users :

Subject: [Boost-users] BGL Python lib compilation error.
From: vy (v.yegyanathan_at_[hidden])
Date: 2012-06-24 23:19:15


Hi,
I am new to BGL as well as python and need to install BGL support for
Python.

I followed the following steps for the installation.

1. downloaded Boost current : 1.49.0: & bootstrap with
--with-python=/usr/bin/python
2. downloaded bgl-python from 'svn co
https://svn.osl.iu.edu/svn/projects/viz/bgl-python'
3. set the environ variable BOOST_ROOT to "dir head of Boost1_49_0 src
code"
4. run bjam in bgl-python. dir

I get 2 compilation errors.

...failed gcc.compile.c++ bin.v2/gcc-4.6/release/graphml.o...
...skipped <pbin.v2/gcc-4.6/release>_graph.so for lack of
<pbin.v2/gcc-4.6/release>graphviz.o...
...failed updating 2 targets...
...skipped 1 target...
===

The errors are related to read/write_graphviz() read/write_graphml() in
files graphviz.cpp and graphml.cpp : Anyone who have fixes are work
around, kindly please let know.

Thanks a lot, in advance.

Example error output given below:
[1]
In file included from src/graphviz.cpp:11:0:
 17 boost-python/boost_1_49_0/boost/graph/graphviz.hpp: In function ‘void
boost::write_graphviz(std::ostream&, con st Graph&,
VertexPropertiesWriter, EdgePropertiesWriter, GraphPropertiesWriter,
VertexID, typename boost::enable_if_c<boost::i
s_base_and_derived<boost::vertex_list_graph_tag, typename
boost::graph_traits<Graph>::traversal_category>::value, boost::graph
::detail::no_parameter>::type) [with Graph =
boost::graph::python::basic_graph<boost::undirectedS>,
VertexPropertiesWriter = b oost::dynamic_properties,
EdgePropertiesWriter = std::basic_string<char>, GraphPropertiesWriter =
boost::graph::python::object
_as_string_property_map<boost::graph::python::basic_descriptor<void*,
boost::undirectedS> >, VertexID = boost::graph::python::
basic_index_map<boost::graph::python::basic_descriptor<void*,
boost::undirectedS>, boost::adj_list_vertex_property_map<boost::
adjacency_list<boost::listS, boost::listS, boost::undirectedS,
boost::property<boost::vertex_index_t, unsigned int>, boost::pr
operty<boost::edge_index_t, unsigned int>, boost::no_property,
boost::listS>, unsigned int, const unsigned int&, boost::vertex
_index_t> >, std::ostream = std::basic_ostream<char>, typename
boost::enable_if_c<boost::is_base_and_derived<boost::vertex_lis
t_graph_tag, typename
boost::graph_traits<Graph>::traversal_category>::value,
boost::graph::detail::no_parameter>::type = boos
t::graph::detail::no_parameter]’:
 18 boost-python/boost_1_49_0/boost/graph/graphviz.hpp:286:5:
instantiated from ‘void boost::write_graphviz(std: :ostream&, const
Graph&, VertexPropertiesWriter, EdgePropertiesWriter,
GraphPropertiesWriter, typename boost::enable_if_c<boos
t::is_base_and_derived<boost::vertex_list_graph_tag, typename
boost::graph_traits<Graph>::traversal_category>::value, boost::g
raph::detail::no_parameter>::type) [with Graph =
boost::graph::python::basic_graph<boost::undirectedS>,
VertexPropertiesWriter = boost::dynamic_properties,
EdgePropertiesWriter = std::basic_string<char>, GraphPropertiesWriter =
boost::graph::python::ob
ject_as_string_property_map<boost::graph::python::basic_descriptor<void*,
boost::undirectedS> >, std::ostream = std::basic_ost ream<char>,
typename
boost::enable_if_c<boost::is_base_and_derived<boost::vertex_list_graph_tag,
typename boost::graph_traits< Graph>::traversal_category>::value,
boost::graph::detail::no_parameter>::type =
boost::graph::detail::no_parameter]’
 19 src/graphviz.cpp:105:5: instantiated from ‘void
boost::graph::python::write_graphviz(const Graph&, const string&, const
stri ng&) [with Graph =
boost::graph::python::basic_graph<boost::undirectedS>, std::string =
std::basic_string<char>]’
 20 src/graphs.hpp:28:1: instantiated from here
 21 boost-python/boost_1_49_0/boost/graph/graphviz.hpp:260:5: error: no
match for call to ‘(boost::graph::python::
object_as_string_property_map<boost::graph::python::basic_descriptor<void*,
boost::undirectedS> >) (std::ostream&)’



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