\(\renewcommand{\AA}{\text{Å}}\)

3. Build LAMMPS

LAMMPS is built as a library and an executable from source code using a build environment generated by CMake (Unix Makefiles, Ninja, Xcode, Visual Studio, KDevelop, CodeBlocks and more depending on the platform). Using CMake is the preferred way to build LAMMPS.

In addition, LAMMPS can be compiled using the legacy build system based on traditional makefiles for use with GNU make (which may require manual editing).

Warning

The LAMMPS developers plan to retire the legacy build system. Please switch to using CMake instead. Contact the the LAMMPS developers at developers@lammps.org if you have any concerns or questions about this.

As an alternative, you can download a package with pre-built executables or automated build trees, as described in the Install section of the manual.