![linux mac os clones linux mac os clones](http://1.bp.blogspot.com/-Ia-2u-cJ6qQ/UONeR4TeLnI/AAAAAAAAEFw/2s1XzQr7MJ8/s1600/gmusic.png)
Meson is an open source build system meant to be both extremely fast, and, even more importantly, as user friendly as possible. The build system of SU2 is based on a combination of meson (as the front-end) and ninja (as the back-end). The following dependencies are automatically downloaded (or initialized if source code was cloned using git) during the configuration.
#Linux mac os clones install#
Once it is installed on your system, you can install Swig by running: On Mac OS X, you can use the Homebrew package manager. On Linux swig should be available in the package manager of your distribution and mpi4py can be installed using pip. If you want to use the python wrapper capabilities, also swig and mpi4py are required. Make sure that you have properly set up the python3 executables in your environment. SU2 requires Python 3 for compilation and for running the python scripts. If MPI was installed in a user directory, ensure also that the environment variable PKG_CONFIG_PATH is correctly setup. Note: Problems have been reported with MPICH where the build system does not detect the MPI installation, this can be solved using the meson options -Dcustom-mpi=true -Dextra-deps=mpich.
![linux mac os clones linux mac os clones](https://i2.wp.com/manjaro.site/wp-content/uploads/2019/09/mac-os-catalina.jpg)
It is possible to force the MPI mode with the meson option -Dcustom-mpi=true, it is then assumed that the compilers and/or the environment variables have the right flags, include directories, and linker arguments.
#Linux mac os clones serial#
If no installation is found, a serial version of SU2 will be compiled. During the configuration the build tool does a check (using pkg-config) and enables MPI support. In order to build SU2 with parallel support, you need a suitable MPI installation on your machine. Note: SU2 uses some C++11 features, that means at least GCC >= v4.7, Clang >= v3.0 or Intel C++ >= v12.0 is necessary. The Apple LLVM compiler (Clang) is also commonly used by the developers. The Intel compiler set has been optimized to run on Intel hardware and has also been used successfully by the development team to build the source code, though it is commercially licensed. The GNU compilers (gcc/g++) are open-source, widely used, and reliable for building SU2. Installing SU2 from source requires a C++ compiler. If you have these tools installed, you can create a configuration using the meson.py found in the root source code folder:
![linux mac os clones linux mac os clones](https://i.ytimg.com/vi/DhYjxblLFgw/maxresdefault.jpg)
Note: all other necessary build tools and dependencies are shipped with the source code or are downloaded automatically. Short summary of the minimal requirements: For more information on the requirements and a more detailed description of the build system continue reading the rest of this page. This is a quick guide to compile and install a basic version of SU2. Note that the following guide works only on Linux/MacOS and on Windows using Cygwin or the Linux Subsystem.
#Linux mac os clones how to#
For information on how to build older versions of SU2, have a look here.