potfit wiki

open source force-matching

User Tools

Site Tools


compiling:main

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
compiling:main [2019/02/27 16:54] danielcompiling:main [2020/10/12 15:51] (current) – [Advanced options] print -- as --, not ndash pbro
Line 12: Line 12:
 <code>./waf --help</code> <code>./waf --help</code>
  
-Building potfit is split up into two stages: first a configuration stage and then a build stage. The configuration stage checks if all requirements for building a binary with the requested options is possible and the build stage then invokes the compiler to create the binary.+Building //potfit// is split up into two stages: first a configuration stage and then a build stage. The configuration stage checks if all requirements for building a //potfit// binary with the requested options is possible and the build stage then invokes the compiler to create the binary.
  
 === 1. Configuration === === 1. Configuration ===
Line 20: Line 20:
 <code>./waf configure <additional arguments></code> <code>./waf configure <additional arguments></code>
  
-A minimal configuration needs to specify at least the interaction (-i) and maybe the potential model (-m):+A minimal configuration needs to specify at least the interaction (-i) and the potential model (-m):
  
 <code>./waf configure -i pair -m apot</code> <code>./waf configure -i pair -m apot</code>
Line 64: Line 64:
 </code> </code>
  
-Some examples for compiling //potfit// with the waf build system are shown [[compiling:main_examples|here]].+Some examples for compiling //potfit// with the waf build system are shown [[compiling:examples|here]].
  
 ===== Advanced options ===== ===== Advanced options =====
Line 95: Line 95:
 Depending on the selected compiler the following debug options are available: Depending on the selected compiler the following debug options are available:
  
-  * ''--debug'' Adds debug information to the potfit binary for debugging potfit +  * ''%%--debug%%'' Adds debug information to the potfit binary for debugging potfit 
-  * ''--asan'' Enable the [[https://github.com/google/sanitizers/wiki/AddressSanitizer|address sanitizer]] +  * ''%%--asan%%'' Enable the [[https://github.com/google/sanitizers/wiki/AddressSanitizer|address sanitizer]] 
-  * ''--profile'' Add profiling information to the //potfit// binary+  * ''%%--profile%%'' Add profiling information to the //potfit// binary
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
compiling/main.1551282869.txt.gz · Last modified: 2019/02/27 16:54 by daniel