# Setting up Mingw for FORTE Development

## Install Mingw-w64

Download the Mingw-w64 Installer. Install the version you like and specify "win32" as thread if requested.

After installing, press Windows Key + Pause. In the System window, click Advanced System Settings → Advanced (tab) → Environment Variables. Change PATH variable (click on it), and add the path where your MinGW binaries have been installed in e.g., C:\MinGW\bin\. Add C:\mingw-w64\XXXXX\ming[32-64]\bin in the Windows PATH variable.

## Test Mingw-w64

Open command prompt window by pressing Windows button and entering cmd. Enter g++ --version, and if you can see some information about the version of the compiler, it was susscesfull. If you get an error like "Command g++ not found", then you must have done something wrong.

## Change name of the make executable

In your installation folder, inside the bin directory, you should find a file called mingw32-make.exe. Copy this file in the same directory and change it to make.exe. This is because this file is the one you will use to compile FORTE, and "make" is the command used throughout the documentation for it.

## CMake and Compilation

In step 2 of Generate files for compiling, you have to select Unix Makefiles, MinGW Makefiles when working with MinGW. The architecture option needs to be set to Win32.

After generating in CMake, to compile forte, you do

$ cd FORTE_FOLDER_ROOT/bin/[YOUR_SYSTEM] $ make

# Where to go from here?

Now that you installed the required tools, it's time to start using them. Take a look at the following page:

Step by step tutorial

If you want to compile FORTE for another platform or want to know more about that, here's a quick link back:

Install 4DIAC

If you want to go back to the Start Here page, we leave you here a fast access

Start Here page

Go to top