Bugzilla – Bug 1772
python bindings toolchain installation
Last modified: 2013-12-15 12:51:56 EST
Gustavo recently fixed bug 1530, but we can automate this bindings capability by making a few enhancements to bake. The desired outcome is that user can download future release (ns-allinone-3.18.1 or ns-allinone-3.19), or current development version of bake, on a system that has neither gccxml nor pygccxml installed, and have bake install local versions of them (to bake build/) and waf will detect these prerequisites. While I already updated bakeconf.xml to the needed git changeset, there are still a few things to do: 1) pygccxml is not being installed in a way that waf is detecting it. I haven't debugged this yet. 2) we need to add prerequisite checking to (possibly) ./bake.py show to check for gcc-multilib support 3) we need to check compatibility with Xcode 5.0 (OS X) and clang.
(In reply to Tom Henderson from comment #0) > Gustavo recently fixed bug 1530, but we can automate this bindings > capability by making a few enhancements to bake. > > The desired outcome is that user can download future release > (ns-allinone-3.18.1 or ns-allinone-3.19), or current development version of > bake, on a system that has neither gccxml nor pygccxml installed, and have > bake install local versions of them (to bake build/) and waf will detect > these prerequisites. > > While I already updated bakeconf.xml to the needed git changeset, there are > still a few things to do: > > 1) pygccxml is not being installed in a way that waf is detecting it. I > haven't debugged this yet. For ns-3.19, I extended the recommended PATH extensions to cover the directories where pygccxml and gccxml are installed: + > export BAKE_HOME=`pwd` + > export PATH=$PATH:$BAKE_HOME:$BAKE_HOME/build/bin + > export PYTHONPATH=$PYTHONPATH:$BAKE_HOME:$BAKE_HOME/build/lib I recommend to extend ns-3-dev/bindings/python/wscript to add these bake install paths so that waf will not require these environment variables in the future. > > 2) we need to add prerequisite checking to (possibly) ./bake.py show to > check for gcc-multilib support This still needs to be done. > > 3) we need to check compatibility with Xcode 5.0 (OS X) and clang. This is still being looked into.