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

Capturing NS3 return/exit code (through waf) as a variable in Bash script

I would like to capture the return/exit code of my NS3 simulation as a variable in my Bash script. Code #!/bin/bash rv=-1 #set initial return value ./waf --run "ns3-simulation-name --simulationInput1=value1 --simInput2=value2" #run ns3…
1
vote
1 answer

How to build python extension module with waf on windows/visual studio?

I'm trying to figure out how to build a python extension module using waf but I've got stuck. Consider a simple tree such as: foo.h #pragma once class Foo { public: Foo(); const int &a() const; int &a(); private: int m_a; }; inline const…
BPL
  • 9,632
  • 9
  • 59
  • 117
1
vote
1 answer

Windows RC.exe and long paths

I'm building an executable on windows using waf 2. The build includes multiple resource files. I'm using the latest windows sdk that I know of (version 10.0.19041.0). I'm encountering 2 separate but related issues. Both appear to be related to the…
1
vote
1 answer

How to use multiple version of tricore-gcc.exe compilers with waf

I want to use different tricore-gcc.exe for different project in windows OS the two tricore-gcc.exe are in the following paths and they are not in…
chenx319
  • 35
  • 5
1
vote
1 answer

waf multi projects setup with integration area

I have a folder IntegrationArea and a project, main, composed of 2 sub-projects, a and b, that looks like below: IntegrationArea main | a | wscript | b | wscript | wscript Running waf build in main/a builds the…
1
vote
1 answer

waf check_python_headers fails with python installed with pyenv

I'm trying to build a project using the waf build tool. The build fails in the configure step when checking the python headers. I narrowed the problem down to this minimal example of my wscript: def options(ctx): ctx.load('compiler_c') def…
b3000
  • 1,547
  • 1
  • 15
  • 27
1
vote
1 answer

Fortran compiler not found when configuring

I am trying to install some code on my Mac (10.15.7). I follow the instructions and do ./waf configure --install_all_deps But I get No suitable fortran compiler found (cause: 'cannot determine ifort version. (complete log in…
CosmoJoe
  • 31
  • 3
1
vote
1 answer

Compiling native C++ module for Node.js, linking to openSSL/libcrypto fails

I'm using Cygwin/Windows and I'm trying to build a native module for node.js. I intend to make use of the OpenSSL Library. I have installed openssl from the Cygwin package manager. I have the following lines in my .cc file: #include…
Tom
  • 7,994
  • 8
  • 45
  • 62
1
vote
1 answer

Waf configure error, cannot find pyembed for some reason

I'm trying to configure Planck Likelihood Code using ./waf, but I keep getting the following error after calling ./waf configure CC=gcc python=/opt/local/bin/python cfitsio_lib=/opt/local/lib cfitsio_include=/opt/local/include…
1
vote
1 answer

Setting Linux environment variable within the WAF build system

I have inherited an existing WAF build system. This existing system is using WAF 1.7.2. This system supports multiple cross-compilers using WAF variants. I need to add a new variant that supports a new toolchain. Unfortunately, in order to use this…
BrianD
  • 11
  • 1
1
vote
1 answer

WAF.IO how to start compile?

my question my look silly but I'm complete yellow bird in programming. Have challenge to compile using waf.io. I went thru basic instructions https://waf.io/apidocs/tutorial.html?highlight=start. But there is missing basic information: where I…
adamssson
  • 35
  • 4
1
vote
2 answers

ns3, Python3 has no module named 'ns'

I am using a virtual box to build network simulator 3(ns3), Ubuntu version: Linux Server 20.04 LTS the Linux command that I had executed are sudo apt-get update sudo apt-get upgrade sudo apt-get install gcc g++ python python3 -y sudo apt-get install…
1
vote
1 answer

Use "subst" feature in configure step

waf has the subst feature to copy files. In build context it can be used like that: def build(bld): bld(features='subst', source='wscript', target='wscript_copy', is_copy=True) But I need to make use of the subst feature in the configure…
user12176339
1
vote
0 answers

Nix: Write a package that uses waf instead of make

The question I'm trying to write a package to install libmonome, a toolkit for using the monome hardware (OSC controllers with LEDs, mostly for music). My efforts are based on these instructions for building libmonome from source. Note that those…
Jeffrey Benjamin Brown
  • 3,427
  • 2
  • 28
  • 40
1
vote
1 answer

Nix: Building `waf` produces a file, but I seem to need a folder

I've cloned the nixpkgs repo. From the top of that repo, I can run nix-build -A waf to build waf, and nix-env -f . -iA waf to make waf part of my user environment. Neither complains -- but afterward I am still unable to call…
Jeffrey Benjamin Brown
  • 3,427
  • 2
  • 28
  • 40