I tried to build graph-tool from the latest source on Ubuntu 12.04 server
(x64) and after getting packages required by ./configure --enable-openmp
I've run into a compile error
make all-recursive
make[1]: Entering directory `/home/val/graph_tool_mp'
Making all in src
make[2]: Entering directory `/home/val/graph_tool_mp/src'
Making all in graph
make[3]: Entering directory `/home/val/graph_tool_mp/src/graph'
Making all in centrality
make[4]: Entering directory `/home/val/graph_tool_mp/src/graph/centrality'
CXX graph_betweenness.lo
In file included from ./../graph_filtering.hh:51:0,
from graph_betweenness.cc:18:
./../graph_adaptor.hh:139:13: error: 'transform_iterator' does not name a
type
./../graph_adaptor.hh:171:13: error: 'transform_iterator' does not name a
type
./../graph_adaptor.hh:179:13: error: 'transform_iterator' does not name a
type
./../graph_adaptor.hh: In instantiation of
'boost::transformed_out_range<boost::adjacency_list<boost::vecS,
boost::vecS, boost::bidirectionalS, boost::no_property,
boost::property<boost::edge_index_t, long unsigned int> > >':
and about 5MB worth of error messages follow
I could not find an exact match for this error on Google, except a possible
need for some forward includes.
If there is a suitable package with OpenMP support available somewhere for
12.04 that would be a great alternative to compiling oneself.
The Precise repo for 12.04 (from http://downloads.skewed.de/apt/precise/)
works great, but as far as I can tell, does not include OpenMP
support(running algorithms only utilize one core).
The problem is that this version of Boost is now too old to compile
graph-tool. It would require some annoying backflips to support this,
together with the newer versions.
However, you can install a compatible Boost version from here:
val(a)machine:~$ sudo apt-get install graph-tool
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
* graph-tool : Depends: libboost1.46-dev but it is not going to be
installed*
E: Unable to correct problems, you have held broken packages.
It seems to request even an older version than before. I am on 1.49 now