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

cross compile: check if it is possible to build 32 bit on a 64 bit machine

While building a C++ project, we have serveral targets: 32 and 64 bits. On some 64 bit machines, while building 32 bit target we are getting a failures because g++-multilib is missing: /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No…
Itay Marom
  • 801
  • 6
  • 15
2
votes
1 answer

Linking local shared library with Waf (no lib compilation)

I'm trying to build a simple c++11 program linking with a shared lib (dynamic library) using waf-1.8.8. The particularity is that I'm not trying to build this lib, because I already have the dev version, which means the declarations (.hpp headers)…
Sandburg
  • 757
  • 15
  • 28
2
votes
0 answers

Could not configure a C compiler (Windows)

On a Windows system, currently I'm trying a waf configure on a directory of code, and it spits out the error "could not configure a C compiler." Now, I'm 100% certain that I have gcc and g++ installed and in my path because when I type gcc…
2
votes
2 answers

Determine the processor architecture

We are having problem with Lapack compiled on a MacBook Pro Late 2013. The compiler complains about unsupported vector instructions when compiled with -march=native: no such instruction: `vmovss (%rdx), %xmm0' With -march=core2 everything is…
PVitt
  • 11,500
  • 5
  • 51
  • 85
2
votes
1 answer

Waf: Task creation for many files

Is there a better/shorter way to create these 2 tasks, which work on multiple files? I would prefer new_task_generator instead of cryptic classes. Files = ["src1.c", "src2.c"] for File in Files: bld.new_task_gen( name =…
Vincent Alex
  • 324
  • 3
  • 12
2
votes
0 answers

How to link the externally generated objects in waf?

I have a requirement where in I want to build the object files separately and link them together. Specifically I have a Makefile to build some objects which I want to call from the wscript file. I am able to call make command from the wscript file.…
Sagar Masuti
  • 1,271
  • 2
  • 11
  • 30
2
votes
0 answers

Waf and checking for frameworks

Using the Waf build system, you are given the ability to check for specific libraries. For instance, were I to build a project using OpenGL, I can write: cfg.check( features = 'c cprogram', lib = 'opengl', uselib_store =…
Chris Covert
  • 2,684
  • 3
  • 24
  • 31
2
votes
0 answers

Download, patch, and build an external library

I'm trying to setup waf as a build system for a project I am working on. Compiling and working with the files already in the project works just fine and was easy enough to understand. However, what I want to do now is download newlib, apply a patch…
ctrlc-root
  • 1,049
  • 1
  • 15
  • 22
2
votes
0 answers

Have waf command use targets from a different waf command

Here's a wscript: def build(bld): bld.recurse('somefolder') def test(ctx): ctx(features='test ...', ..., use=['lib']) from waflib.Build import BuildContext class TestCtx(BuildContext): cmd = 'test' fun = 'test' lib is a target…
user
  • 4,920
  • 3
  • 25
  • 38
2
votes
2 answers

Caching options with Waf (WAFCACHE and/or ccache)

For a project, where Waf is used, I want to try some build speedup. I see that waf has a WAFCACHE option. So, is WAFCACHE sufficient, or do I need to setup ccache additionally ? (can they work together), or does WAFCACHE[internally] makes use of…
Ani
  • 1,448
  • 1
  • 16
  • 38
2
votes
2 answers

Waf - Can't find local dll

I'm experimenting on converting a makefile from another buildsystem to waf. I'm trying to direct waf to the directory containing the necessary dlls. However, when running waf configure: Checking for library libiconv2 : not found It can't…
dilbert
  • 3,008
  • 1
  • 25
  • 34
2
votes
2 answers

Setting C++ build working directory in Eclipse

I am trying to set up a C++ project in Eclipse (on Windows) that uses Waf to build. My Eclipse workspace and my source files are in different directories. C:\myproject: Project root C:\myproject\wscript: Waf build script C:\myproject\source: Source…
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
2
votes
1 answer

waf - update and generate translation pot file

Is there a specific API call (maybe undocumented, none is listed here http://docs.waf.googlecode.com/git/apidocs_16/tools/intltool.html ) which allows me to create and/or update a translation template? Or do I need use native system tools?
drahnr
  • 6,782
  • 5
  • 48
  • 75
2
votes
1 answer

How to use a static library created by a custom task?

I want use waf to trigger a makefile to build an other library. For this I created the following task: def build(bld): def run(self): bld_dir = self.generator.bld.path.get_bld() src_dir = self.inputs[0].parent tgt =…
CK1
  • 694
  • 6
  • 13
2
votes
1 answer

making qt ignore specific header include files

I have a running project made in qt . For building purpose I m using waf build tool. To get the same project up and running from waf I need to add #include "file.moc" at the end of some files to avoid undefined reference. But if these includes are…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126