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

How to tell Python waf where to place package? Can it work with virtualenv?

I am trying to install a ready-made waf package (py2cairo) in a directory of my choice. Ideally in my virtualenv site-packages. This should be simple, but I can't seem to get waf to do it. $ sudo ./waf install ./options() Waf: Entering directory…
Joe
  • 46,419
  • 33
  • 155
  • 245
1
vote
1 answer

waf - build works, custom build targets fail

The waf command waf build shows compiler errors (if there are any) while waf debug or waf release does not and always fails, utilizing the following wscript file (or maybe the wscript file has some other shortcomings I am currently not aware…
drahnr
  • 6,782
  • 5
  • 48
  • 75
0
votes
1 answer

Compile a vala application using a vala library with waf

I would like to compile a vala application using a vala library (that I wrote) with the waf build system. I am actually able to compile it using this command: valac -X -I/usr/local/include/ofde-1.0/ -X -lofde -o ofde-terminal src/*…
antoyo
  • 11,097
  • 7
  • 51
  • 82
0
votes
2 answers

waf -how to add external library to wscript_build file

I tried to add an external library to my waf: the winmm.lib library it looks like this now: srcs = ['timers.cpp'] LIBS ='winmm.lib'; create_lib('timers', srcs,LIBS) it doesn't work. It says I vmp library 'winmm.lib.py' was not found in the…
kakush
  • 3,334
  • 14
  • 47
  • 68
0
votes
1 answer

periodic crashes in cl.exe, kernelbase.dll

I frequently have the following crash from cl.exe. This happens both when compiling and running other a help command on cl. This is happening on Windows Server 2008, but I think this happens sometimes on Windows XP also. This is occurring very…
bnovc
  • 449
  • 1
  • 5
  • 13
0
votes
1 answer

Waf throwing errors on c++ builds

Our project contains a lot of c++ sources, up until now we were sing make to build everything, however this takes ages. So I stumbled upon waf, which works quite well and speeds up the build a lot. However everytime I do a full build I end up with a…
pushy
  • 9,535
  • 5
  • 26
  • 45
0
votes
0 answers

NS3 ./Waf - fatal error: Python.h: No such file or directory

Im using Ns3 and I need to embed python but im faving some issues.If I try to build the application it give the error ** Python.h: No such file or directory**. I have already install python3.9-dev, the waf configuration that im using is the…
0
votes
0 answers

python3 waf build error in ns3.34 in ubuntu 22.04

i was running the code ./build.py --enable-examples --enable-tests in ns3.34 and when it got to (2306/3014) it got this error : => /usr/bin/python3 waf build Waf: Entering directory…
0
votes
2 answers

How can I make a Python extension module packaged as an egg loadable without installing it?

I'm in the middle of reworking our build scripts to be based upon the wonderful Waf tool (I did use SCons for ages but its just way too slow). Anyway, I've hit the following situation and I cannot find a resolution to it: I have a product that…
jkp
  • 78,960
  • 28
  • 103
  • 104
0
votes
1 answer

How do I change CFLAGS to -g -O0 when compiling node.js from source?

I tried: CFLAGS="-g -O0" ./configure But it's still using the default flags -g -O3 when make. Any way to work around?
new_perl
  • 7,345
  • 11
  • 42
  • 72
0
votes
2 answers

C++ Why can't the linker see my files?

Building a native module for Node.js under Cygwin / Windows: I have a monkey.cc file with this: #include running node-waf configure build I get the following 'configure' finished successfully (0.351s) Waf: Entering directory…
Tom
  • 7,994
  • 8
  • 45
  • 62
0
votes
0 answers

Cannot use pyinstaller

I am running windows and trying to use the pyinstaller module. When I run pyinstaller filename.py in cmd, the following error occurs: Fatal error: PyInstaller does not include a pre-compiled bootloader for your platform. For more details and…
Matthew
  • 1
  • 1
0
votes
0 answers

libarchive "not found" when Compiling Ardour on macOS High Sierra 10.13.6

I'm trying to compile the stable version of Ardour (6.0.0) on macOS High Sierra 10.13.6, which I've obtained via git clone https://github.com/boostorg/boost.git. I've managed to work out the first couple of dependancies, but am now stuck on getting…
KeithJ
  • 169
  • 3
  • 12
0
votes
1 answer

NS-3 ImportError: No module named cflags

I'm trying to run compile and build an NS-3 project using ./waf in Ubuntu 18.04, but I'm receiving the following error message: Waf: The wscript in '/home/user/workspace/ns3-802.11ad' is unreadable Traceback (most recent call last): File…
Salman
  • 924
  • 1
  • 7
  • 20
0
votes
1 answer

How do I use rule based Task Generator Target to output inside the source directory in Waf?

I have my wscript file as:- def build(bld): bld( rule = 'cp ${SRC} ${TGT}', source = 'a.txt', target = 'b.txt', ) By default, the output target is created inside the build directory build/b.txt, However, I want my…