waf

How to access config variables in exec_command()s?

How to access config variables in exec_command()s? Question: I have a configuration function in my wscript: def configure(ctx): ctx.env.V1 = 123 def build(ctx): def myfun(task): return task.exec_command(‘echo VAR=${V1}’) ctx.exec_command(‘echo VAR=${V1}’) ctx.add_post_fun(myfun) But in build and in myfun (both) V1 is not available (it’s substituted to an empty string). I can store and load my own …

Total answers: 2

NS-3 Simulation takes too long

NS-3 Simulation takes too long Question: I’m using Ubuntu 16.40 with 4GB of RAM. ./waf –pyrun wifi-olsr-flowmonitor.py When I run the wifi-olsr-flowmonitor.py file in NS-3 for 9 nodes, it took 17 hours to complete the simulation. Why did it take that long? And what can I do to prevent this from hapenning again? Asked By: …

Total answers: 1

Is it possible to compile library with waf using make install?

Is it possible to compile library with waf using make install? Question: I’m trying to compile a library with waf when I configure and build my project. To be more exact the library is Cryptopp. The thing is that I have added the source code like a git-submodule and I would like to compile and …

Total answers: 1