Bug 1542

Summary: adapt waf to find bake-built libraries
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: build systemAssignee: Mitch Watrous <watrous>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, vedran
Priority: P3    
Version: pre-release   
Hardware: PC   
OS: Linux   
Bug Depends on: 1540, 1541    
Bug Blocks:    

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