Application development

1.

I wrote a code similar to apps/simple/mdsim.cpp. What do I do next to compile the code?

There are several ways to do this:

  1. ohmms distribution comes with few small applications that are intended to show how to use ohmms to write your own applications (see the directory apps). Hacking Makefile (e.g., apps/mdsim/Makefile) created by ohmms configuration script is one way, although it is very much discouraged.

  2. Use autoconf/automake to generate Makefile.in and Makefile for the new applications. Once you make a Makefile.am similar to apps/mdsim/Makefile.am, in the top-level directory, run ./bootstrap. Note that you need autoconf 2.50 or higher. This will generate all you need to compile your applications. Check out the links for gnu tools to learn about autoconf/automake.

  3. Use cmake Cross-platform Make.


   
Site search Web search