I have successfully build the graphviz I/O module for BGL, though not with bjam. There is a Makefile in graph/src that does the trick. Angus Leeming wrote:
Dear all,
I'm a bjam newbie trying to build the BGL in boost 1.30.0 on a DEC Alpha running linux. However, the build process is failing to generate the graphviz parser and lexer:
$ cd libs/graph/build $ bjam "-sTOOLS=gcc" ...found 437 targets... ...using 2 temp targets... ...updating 3 targets... ...using
graphviz_graph_lex.o... ...using graphviz_digraph_lex.o... gcc-C++-action ../../../libs/graph/build/bin/liblibbgl-viz.a/gcc/debug/inlining-on/runtime-link-dynamic/graphviz_graph_parser.o graphviz_parser.y:44:2: #error Need to define the GRAPHVIZ_GRAPH macro to either GraphvizGraph or GraphvizDigraph. graphviz_parser.y:61: error: `GRAPHVIZ_GRAPH' was not declared in this scope graphviz_parser.y:61: error: template argument 1 is invalid graphviz_parser.y:61: error: syntax error before `;' token graphviz_parser.y:62: error: `GRAPHVIZ_GRAPH' was not declared in this scope graphviz_parser.y:62: error: template argument 1 is invalid graphviz_parser.y:62: error: syntax error before `;' token graphviz_parser.y:63: error: syntax error before `;' token [snip] This all seems very reasonable, but I do not know how to resolve the problem. I see that Jamfile.v2 has explicit rules to build graphviz_graph_lex.o, graphviz_digraph_lex.o, setting GRAPHVIZ_GRAPH appropriately. However, my version of bjam (3.1.4) does not understand Jamfile.v2 and I lack the knowledge to do the equivalent in Jamfile.
I did try to append some rules to the Jamfile(see below), but unsurprisingly without success.
Could anyone provide me with pointers on how to proceed?
Kind regards, Angus
Lex graphviz_graph_lex.cpp : graphviz_lex.l : <define>GRAPHVIZ_DIRECTED=0 <dependency>graphviz_graph_parser ;
Yacc graphviz_graph_parser.cpp : graphviz_parser.y : <define>GRAPHVIZ_DIRECTED=0 ;
Lex graphviz_digraph_lex.cpp : graphviz_lex.l : <define>GRAPHVIZ_DIRECTED=1 <dependency>graphviz_digraph_parser ;
Yacc graphviz_digraph_parser.cpp : graphviz_parser.y : <define>GRAPHVIZ_DIRECTED=1 ;
Object graphviz_graph_lex.o : graphviz_graph_lex.cpp ; Object graphviz_graph_parser.o : graphviz_graph_parser.cpp ; Object graphviz_digraph_lex.o : graphviz_digraph_lex.cpp ; Object graphviz_digraph_parser.o : graphviz_digraph_parser.cpp ;
*Yahoo! Groups Sponsor* ADVERTISEMENT http://rd.yahoo.com/M=244522.3656190.4921519.1261774/D=egroupweb/S=1705006788:HM/A=1595056/R=0/SIG=124ps9ikp/*http://ashnin.com/clk/muryutaitakenattogyo?YH=3656190&yhad=1595056
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/.