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 _graph.so for lack of
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::value, boost::graph
::detail::no_parameter>::type) [with Graph =
boost::graph::python::basic_graphboost::undirectedS,
VertexPropertiesWriter = b oost::dynamic_properties,
EdgePropertiesWriter = std::basic_string<char>, GraphPropertiesWriter =
boost::graph::python::object
_as_string_property_map >, VertexID = boost::graph::python::
basic_index_map, boost::adj_list_vertex_property_map, boost::pr
operty, 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::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::value, boost::g
raph::detail::no_parameter>::type) [with Graph =
boost::graph::python::basic_graphboost::undirectedS,
VertexPropertiesWriter = boost::dynamic_properties,
EdgePropertiesWriter = std::basic_string<char>, GraphPropertiesWriter =
boost::graph::python::ob
ject_as_string_property_map >, std::ostream = std::basic_ost ream<char>,
typename
boost::enable_if_c::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_graphboost::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 >) (std::ostream&)’