potfit wiki

open source force-matching

User Tools

Site Tools


compiling:waf

This is an old revision of the document!


Compiling potfit using waf


potfit uses the waf build system. It is fast and easy to use. Since it is written in Python it requires a Python runtime to be available.

Basics

The potfit source tree contains the waf binary in its root folder. It is used for all build related operations like configuration, building and cleanup. It provides an exhaustive help page when called with the –help argument.

For building potfit there are two stages, first the configuration stage and then the build stage. The configuration stage checks if all requirements for a building a binary with the requested options is possible and the build stage then invokes the compiler to create the binary.

Configuration

Do it like this:

./waf configure -i pair -m apot

Build

Do it like this:

./waf

Setting options

Advanced options

Troubleshooting

Developer guide

compiling/waf.1535137032.txt.gz · Last modified: 2018/08/24 20:57 by daniel