Questions tagged [waf]

Waf is a Python-based framework for configuring, compiling and installing applications. It derives from the concepts of other build tools such as Scons, Autotools, CMake or Ant. If your question is about AWS WAF, use [amazon-waf] instead. If your question is about web application firewall, use [web-application-firewall] instead.

More information about the Waf project can be found at the following locations.

Help is also available:

  • on the waf-users mailing list
  • on IRC (#waf on freenode, with searchable, archived logs here).
309 questions
0
votes
1 answer

Trying to understand waf options

I'm a noob to waf. I need to configure, build & install samba-4.1.4 on my RHL 6.5 system. Trying to understand waf options specifically I've noted a lot of "with-xxxxx" options, and a few "without-xxxxx" options. My question is: can I specify…
Guy Rich
  • 451
  • 3
  • 8
  • 18
0
votes
1 answer

How to configure Eclipse CDT to use WAF for ns3 build?

I'm trying to build ns3 on windows, and I'm using eclipse. I have a problem to configure Eclipse to trigger the external builder tool "waf" Each time I adjust the build command I get an error, as eclipse seems not to be able to trigger the waf…
Fouda
  • 291
  • 1
  • 4
  • 14
0
votes
1 answer

Use waf to link boost on ubuntu

I'm using waf to build a C++ project on ubuntu 13.10. I try conf.load(boost) in configuration function in wscript, but the result shows it cannot find boost in /lib64. I use apt-get to install libboost. It was installed on /usr/lib/x86_64-gnu-linux.…
chenatu
  • 827
  • 2
  • 10
  • 22
0
votes
1 answer

Unused variable warning when optimization is set

When I compile the following piece of code with optimizations enabled double bitrate = 8 * m_totBytes / (Simulator::Now() - m_startTime).GetSeconds(); double instBitrate = 8 * message.GetSize() / (Simulator::Now() -…
user000001
  • 32,226
  • 12
  • 81
  • 108
0
votes
1 answer

waf: nested projects and _cache.py: not supported?

I am converting a project from autotools to waf with the hope that it can be easily compiled in windows as well. I am using a super project with two children folders that are 2 projects. One of them is a library, the other, a program, like…
Germán Diago
  • 7,473
  • 1
  • 36
  • 59
0
votes
2 answers

waf: how to use extra tools and how to distribute project?

I am using waf in windows and I cannot figure out how to use the boost tool. I tried waf update, but it says the following: Could not find the tool in the remote repository 'update' finished successfully (0.597s) How can I use the boost tool (or…
Germán Diago
  • 7,473
  • 1
  • 36
  • 59
0
votes
1 answer

get value of export_includes for target

I have a target in waf defined like this: bld(..., target='asdf', export_includes='.' ) I want to get the value of the export_includes for that target (for use in some custom commands). How do I get it?
user
  • 4,920
  • 3
  • 25
  • 38
0
votes
2 answers

cmake vs waf: mainly for c++ windows/linux and android

After searching a lot and reading a lot of information, I cannot decide which tool I should use for compiling my code. My codebase is mainly c++. I use primarily linux as my development machine. Based on opinions I read before, my final candidates…
Germán Diago
  • 7,473
  • 1
  • 36
  • 59
0
votes
1 answer

Allowing a build target to fail in Waf

How do I mark a rule in Waf such that the build doesn't stop on that rule's failure? ex. bld(rule="magicalcommand {SRC} {TGT}", source="somefile", target="othersuchfile") where magicalcommand may somehow fail (but it's okay for that command to…
user
  • 4,920
  • 3
  • 25
  • 38
0
votes
0 answers

KeyError 'MACOSX_DEPLOYMENT_TARGET' in waf on kubuntu

I'm trying to install pycairo on kubuntu 13.04, and it's giving me an error complaining about MACOSX_DEPLOYMENT_TARGET: (virtualenv-3)naught101@naught101-chronos:/tmp/pycairo-1.10.0$ python waf configure ./options() Setting top to …
naught101
  • 18,687
  • 19
  • 90
  • 138
0
votes
1 answer

WAF linker error issue

I have 2 files 1) simple1.cu 2) test.cpp. I am trying to compile and link these files using WAF.. The wscript file looks as below. def options(opt): opt.load('compiler_cxx') def configure(cnf): cnf.load('compiler_cxx') def build(bld): …
Sagar Masuti
  • 1,271
  • 2
  • 11
  • 30
0
votes
1 answer

check size of C type at build time

I want to establish build-time cross-language ABI compatibility with Waf. How would I go about checking the size of a type (or any arbitrary type-like checks), and recording it into the build configuration?
user
  • 4,920
  • 3
  • 25
  • 38
0
votes
1 answer

How to prevent execution of a waf task if nothing changes from the last successful execution?

I have a waf task that is running a msbuild in order to build a project but I do want to run this only if last execution was not successful. How should I do this?
sorin
  • 161,544
  • 178
  • 535
  • 806
0
votes
1 answer

Waf configuration in ns-3

I am using the waf script in order to build the ns-3 simulator. I also installed (I mean I have downloaded and built the openflow module of the ns-3 simulator.) However when I want to include a header file of the openflow module (which is located in…
mecid
  • 407
  • 4
  • 12
0
votes
1 answer

Check_cxx() not working with cuda

I am new to the waf framework of compiling and building a project. Basically I am trying to load the compiler and the library for compiling the .cu files. and I have the following line of code taken from cuda.py file written by Thomas Nagy…
Sagar Masuti
  • 1,271
  • 2
  • 11
  • 30
1 2 3
20
21