[graph] running test leda_graph_cc.cpp fails - header not found

Hi all, I tried to run the tests for the LEDA adapter in the Boost Graph library. I checked out the latest trunk from SVN. I made the Boost.Build v2, works fine. When running ./../../tools/build/v2/bjam in libs/graph/test, all tests run fine. I installed LEDA (free version) in /home/jens/devel/leda-free/LEDA-6.3-free-fedora-core-8-64-g++-4.1.2-mt After successfully running all other tests, the one for LEDA fails: $ ../../../tools/build/v2/bjam -s LEDA=/home/jens/devel/leda-free/LEDA-6.3-free-fedora-core-8-64-g++-4.1.2-mt/ Performing configuration checks - has_icu builds : yes ...patience... ...patience... ...patience... ...found 6503 targets... ...updating 2 targets... gcc.compile.c++ ../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.o In file included from leda_graph_cc.cpp:10:0: ../../../boost/graph/leda_graph.hpp:20:30: fatal error: LEDA/graph/graph.h: No such file or directory compilation terminated. "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -I"../../.." -c -o "../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.o" "leda_graph_cc.cpp" ...failed gcc.compile.c++ ../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.o... ...failed updating 1 target... ...skipped 1 target... Note that I edited boost/graph/leda_graph.hpp, fixing a syntax error and making it point to the now location of the LEDA header files (which contains an additional "graph" sub-directory). But the problem seems to be that the include directory is not at all passed to the compiler. What is going wrong here? Best, Jens

Am 14.12.2011 05:07, schrieb Jens Müller:
Note that I edited boost/graph/leda_graph.hpp, fixing a syntax error and making it point to the now location of the LEDA header files (which contains an additional "graph" sub-directory).
But the problem seems to be that the include directory is not at all passed to the compiler. What is going wrong here?
OK, with help from the Boost.Build mailing list, I got this fixed. Diff is attached. The following changes have been made (might be useful for the commit message): * defined LEDA in the Jamfile module (thanks to Steven Watanabe for spotting this) * added missing colon (thanks to Vladimir Prus) * changed name of LEDA library, according to http://www.algorithmic-solutions.info/leda_manual/Object_Code_on.html Can someone please check this in? Best regards, Jens

AMDG On 12/15/2011 02:28 PM, Jens Müller wrote:
Am 14.12.2011 05:07, schrieb Jens Müller:
But the problem seems to be that the include directory is not at all passed to the compiler. What is going wrong here?
OK, with help from the Boost.Build mailing list, I got this fixed. Diff is attached.
The following changes have been made (might be useful for the commit message):
* defined LEDA in the Jamfile module (thanks to Steven Watanabe for spotting this) * added missing colon (thanks to Vladimir Prus)
Fixed in r75970.
* changed name of LEDA library, according to http://www.algorithmic-solutions.info/leda_manual/Object_Code_on.html
The library isn't used at all, since this is a compile-only test. I removed it in r75974.
Can someone please check this in?
In Christ, Steven Watanabe
participants (2)
-
Jens Müller
-
Steven Watanabe