./waf configure --check-c-compiler=gcc --check-cxx-compiler=g++ --with-brite=/Users/XXX/BRITE --enable-examples
./waf
Failed configuration and buildiing:
./waf configure --check-c-compiler=gcc --check-cxx-compiler=g++ --with-brite=/Users/XXX/BRITE --enable-examples --enable-tests
./waf
the failure I encountered is :
[1540/2528] Compiling src/brite/test/brite-test-topology.cc
[2412/2528] Linking build/libns3.25-brite-test-debug.dylib
Undefined symbols for architecture x86_64:
"ns3::OnOffHelper::OnOffHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, ns3::Address)", referenced from:
BriteTopologyFunctionTestCase::DoRun() in brite-test-topology.cc.3.o
"ns3::PacketSinkHelper::PacketSinkHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, ns3::Address)", referenced from:
BriteTopologyFunctionTestCase::DoRun() in brite-test-topology.cc.3.o
"ns3::OnOffHelper::Install(ns3::Ptr<ns3::Node>) const", referenced from:
BriteTopologyFunctionTestCase::DoRun() in brite-test-topology.cc.3.o
"ns3::PacketSinkHelper::Install(ns3::Ptr<ns3::Node>) const", referenced from:
BriteTopologyFunctionTestCase::DoRun() in brite-test-topology.cc.3.o
"typeinfo for ns3::PacketSink", referenced from:
ns3::Ptr<ns3::PacketSink> ns3::DynamicCast<ns3::PacketSink, ns3::Application>(ns3::Ptr<ns3::Application> const&) in brite-test-topology.cc.3.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
I guess the problem is somehow related to dynamic library. But I don't know how this happened and how to solve it. If it is problem of building the module BRITE, examples of BRITE should also not functional. But the test failed to compile, however examples compile well.
$ CXX=... waf configure ...
That alone probably won't fix your issue, however.
Peter
Peter