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
1
vote
1 answer

Unable to get WAF to run

I am trying to build the Monotooth library on Ubuntu and there is a native component which needs to be compiled. The distro from github has a wscript file and requires WAF to build. However, whenever I try to execute waf configure I get: Checking…
Chief A-G
  • 228
  • 2
  • 12
1
vote
2 answers

how to add '-include global.h' after '-I includedir'?

I'm trying to use -include preprocessor option. GCC Preprocessor Options I've failed to do that in my configure method as regular CXXFLAGS option def configure(conf): conf.load('compiler_cxx') conf.env.append_value('CXXFLAGS', ['-g',…
denys
  • 2,437
  • 6
  • 31
  • 55
1
vote
1 answer

waf - custom command tooltip

I create a custom command via def spawn_pot(ctx): ctx.recurse ('po') class spawnpot(BuildContext): cmd = 'spawnpot' fun = 'spawn_pot' and I would like to set a tooltip, but I could not find how to do that. Currently the waf --help…
drahnr
  • 6,782
  • 5
  • 48
  • 75
1
vote
1 answer

Waf - Source not found: None

I'm trying to compile a 64-bit application using Waf, but the wscript is returning the error: Source not found: None. I have heard that this can be due to improper indentation or mixed character encodings, which my wscript does not have. Any…
1
vote
4 answers

waf at linking time: "undefined reference" error

So I've been banging my head on this compiler error for the last 2 hours and thought I would post the code here to see if anyone can shed any light on my mistake. I have stripped out all the irrelevant bits to leave a bare minimal program (shown…
user784376
1
vote
1 answer

How to use yaml-cpp in NS3

Does anyone know how to use the yaml-cpp lib in NS3 module? I have finished the source code, but I have a hard time figuring out how to link it as it got the undefined reference to error when building with waf.
user1875337
  • 143
  • 1
  • 7
1
vote
1 answer

Using a non standard c compiler with Waf

I have a non standard c compiler, for the example lets call it comp. How can I use it with Waf? I see that in all the examples: def options(ctx): ctx.load('compiler_c') def configure(ctx): ctx.load('compiler_c') And I want to load my own…
Alex
  • 131
  • 1
  • 11
1
vote
2 answers

Having autotools targets being built by WAF

We're trying to incrementally move away from autotools to WAF. Most of our sub-projects are autotools and we don't really want to convert them to WAF at once. Do you have any tips or things to keep in mind when mixing up WAF and autotools. I was…
Nico
  • 11
  • 2
1
vote
2 answers

Finding local external libraries with Waf

I'm creating a wscript file capable of linking external libraries that are stored in the project directory, rather than installed to the system, but I am unsure of the best way of doing so. Currently, I'm doing something along the lines of the…
Chris Covert
  • 2,684
  • 3
  • 24
  • 31
1
vote
0 answers

How do I create a new compiler profile with Waf?

I've found this very helpful page in the API docs of the Waf build system: My wscript looks like this: def options(opt): opt.load('compiler_c') def configure(conf): from waflib.Tools.compiler_c import c_compiler …
ivarec
  • 2,542
  • 2
  • 34
  • 57
1
vote
1 answer

waf automating qt configuration

I am using waf wscript for making a project. The problem I am facing is including the qt specific headers: lib and libpath. I have fair knowledge of pkg-config tool. There are .pc files in /usr/lib/pkg-config directory which help in automatically…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
1
vote
2 answers

waf configuration for qt debug file to be included

I m writing a wscript for implementing code which includes QDebug #include In my wscript for configuring qt I have these lines specified def configure(conf): conf.env.append_value('CXXFLAGS', ['-DWAF=1']) …
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
1
vote
2 answers

Linking program with Boost.Asio using waf build system

I'm trying to build simplest Boost.Asio tutorial example "timer1" (it's in timer.cpp) with waf on Debian squeeze, python 2.6.6. root@ds:/var/timer# ls timer.cpp wscript wscript here is a config of waf: #! /usr/bin/env python top = '.' out =…
boqapt
  • 1,726
  • 2
  • 22
  • 31
1
vote
1 answer

Building valide: Package libvala-0.12 was not found in the pkg-config search path

I am trying to build the latest version of valide (0.7.1) I have successfully built VALA (v 0.17.0) on my machine (Ubuntu 10.0.4 LTS). When I run ./waf configure in the valide src directory, I get the following output: Checking for program gcc or…
Homunculus Reticulli
  • 65,167
  • 81
  • 216
  • 341
1
vote
1 answer

LInker error when switching from windows to console

I am using Qt for GUI and building my project in waf. For switching to windows subsystem from console(default) i had to pass this argument to the VS linker throught my wscript(waf) subsystem='windows' i added this in build part for waf file and I…
user671253