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
3
votes
2 answers

C++11 Polyfills

I am starting a new project that will be targeting MSVC, GCC (latest), GCC 4.3 ARM and more. The waf build system we have built has C++11 feature detection of the compiler. I now have preprocessor macros for all features in compiler that I am…
Matt Clarkson
  • 14,106
  • 10
  • 57
  • 85
3
votes
3 answers

Remove Console from waf build Qt Program in Windows

I have this Qt program that i am building with waf.I am testing it out in windows and everytime i run the exe file the console opens up. In (Qt)pro file(if build with qmake) you just have to make sure you remove CONFIG += console But i am not sure…
user671253
3
votes
2 answers

How to install a directory recursively with waf

I currently use following valadoc build task to generate a api documentation for my vala application: doc = bld.new_task_gen ( features = 'valadoc', output_dir = '../doc/html', package_name = bld.env['PACKAGE_NAME'], package_version =…
Oliver Sauder
  • 1,124
  • 12
  • 29
2
votes
2 answers

Building a QT project with WAF

I am trying to building my project using waf.The Project is complied properly but there is some link error.Its fails to link to with the Resources file (.qrc file) main.cpp.1.o: In function main': …
user671253
2
votes
0 answers

waf error when building pybindgen on Mac OS 10.7

I am trying to build Pybindgen on Mac OS 10.7. Lion Everything works fine on Ubuntu to compare but... On OS X the waf installer (Pybindgen uses waf to build and install) chokes on this: Checking for program python : ok /usr/bin/python…
kosta5
  • 1,129
  • 3
  • 14
  • 36
2
votes
1 answer

Is there a way to log output to a file and display on console/terminal with waf?

Before I dig into the code too much and learn about Python's logging module (this looks to be what waf is using), I thought I'd see if someone might know a quick answer to this question. I want to display the output from a build on my…
kcstrom
  • 422
  • 3
  • 10
2
votes
1 answer

How to specify library installation path suffix in waf?

I want to install libraries that are built with command bld.shlib(...) into /lib, where arch_suffix can be 64 or empty according to architecture. How can I do this? If it's impossible, then how can I explicitly specify this…
abyss.7
  • 13,882
  • 11
  • 56
  • 100
2
votes
1 answer

How to avoid library multiple checks in waf?

I'm trying to use different modules (with independent wscript files) across several projects, so that modules can be developed in a one place and can be checked out in many places. I have a project's top wscript like this: def configure(cfg): ... …
abyss.7
  • 13,882
  • 11
  • 56
  • 100
2
votes
1 answer

Checking for compiler optimization flags in waf

I have begun using the waf build system as an alternative to CMake. So far, it has been a great experience. However, I cannot figure out a good way to conditionally pass optimization flags to the compiler. Some of the code I write benefits from…
hoytak
  • 23
  • 4
2
votes
1 answer

How do I get Anjuta to higlight errors/lines produced by my build system (waf)?

Waf outputs errors like the following Waf: Entering directory `/home/atomos/dc_mmo/netclient/build' [47/53] c: c_lib/c_lib.c -> build/c_lib/c_lib.c.1.o In file included from ../c_lib/c_lib.c:12: ../c_lib/./physics/common.c: In function…
HaltingState
  • 1,810
  • 1
  • 20
  • 22
2
votes
2 answers

Tracking code versions in an executable

I have a reasonable sized ( around 40k lines) machine learning system written in C++. This is still in active development and I need to run experiments regularly even as I make changes to my code. The output of my experiments is captured in simple…
user905122
  • 305
  • 1
  • 4
  • 5
2
votes
0 answers

How to install these libraries and make them found by configure?

I am trying to configure the PLC (Planck Likelihood) using waf. I keep getting the following error after running ./waf configure CC=gcc --cfitsio_lib=/opt/local/lib --cfitsio_include=/opt/local/include --lapack_mkl=${MKLROOT} --install_all_deps…
2
votes
1 answer

How to declare WAF dependency of test script on built program?

I am struggling to find the correct way to define the dependency of a test script on a binary program that waf builds in the same build process. Here is a minimum example of the wscript: from waflib.Tools import waf_unit_test def options(opt): …
M_Kulas
  • 53
  • 5
2
votes
1 answer

Multiple outputs from one input based on features

I would like to build many outputs based on the same input, e.g. a hex and a binary from an elf. I will do this multiple times, different places in the wscript so I'd like to wrap it in a feature. Ideally something like: bld(features="hex",…
Andak
  • 371
  • 2
  • 14
2
votes
1 answer

WAF code generation using multiple dependent input files

How do I best use WAF (https://waf.io/) for the following scenario? model1.m + model2.m --> Code Generator --> many .h & .cpp files --> compile model1.m and model2.m has to be processed together. Code generator is very slow and we should only…
Niklas M
  • 21
  • 2