Bug 1542 - adapt waf to find bake-built libraries
adapt waf to find bake-built libraries
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
pre-release
PC Linux
: P3 normal
Assigned To: Mitch Watrous
:
Depends on: 1540 1541
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-30 16:31 EST by Tom Henderson
Modified: 2013-04-26 17:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2012-11-30 16:31:19 EST
waf guesses the location of some libraries (nsc, openflow).  It does not guess on click.

It guesses one level up in the directory hierarchy, based on how ns-3-allinone build.py builds things.

Now that we have bake, ns-3 will be used more in this mode of operation:

hg clone http://code.nsnam.org/bake
cd bake
./bake.py configure -e ns-3-allinone
./bake.py install
cd source/ns-3-dev
./waf configure --enable-examples --enable-tests

The above will not autodetect NSC, Openflow, or Click at the moment.  This bug is to request adapting waf to find the right components in build/lib.  I would like to see waf first search ../../build/, and then ../nsc (to look for nsc), and likewise search first ../../build/ before searching ../openflow or ../click.  As a second place to search, we can retain ../nsc, ../openflow, etc.

To close this bug, I'd like to see this work:

hg clone http://code.nsnam.org/bake
cd bake
./bake.py configure -e ns-3-allinone
./bake.py install
cd source
rm -rf nsc openflow click
cd ns-3-dev
./waf configure --enable-examples --enable-tests

and then have all three modules detected automatically.

This bug depends on 1540 and 1541 to be fixed first.
Comment 1 Tom Henderson 2012-12-10 00:16:46 EST
downgrading for post-release fix
Comment 2 Tom Henderson 2013-04-26 17:41:29 EDT
duplicate of recently closed bug 1632