Compiling and Debugging FORTE with MS Visual Studio

The following describes how to compile FORTE with win32-architecture using Visual Studio. For other tools or platforms or to see general information about compiling FORTE, go back to see more details about them.

Attention: If you are using a Visual Studio version older then 2010 you might need to extend it with a stdint.h file. See for example here.

Create MS Visual Studio Project for FORTE with CMake

  1. Open CMake-GUI.
  2. Choose source folder FORTE_FOLDER_ROOT.
  3. Choose desired destination folder. We recommend FORTE_FOLDER_ROOT/bin/win32.
  4. Press the Configure button and choose the version of Visual Studio that is used and native default compilers. Press the Finish button afterwards.
  5. For the option FORTE_ARCHITECTURE, select Win32. Other modules and configurations options can be set following the step 3 in Generate files for compiling.
  6. Press the Configure button, check red rows and repeat this untill now red row appears. Afterwards the Generate button.

Compile Forte with Visual Studio

  1. Open the generated FORTE project (.sln file) with Visual Studio in FORTE_FOLDER_ROOT/bin/win32. You change from Debug to Release mode if you don't want to debug.
    Release Mode of Visual Studio
  2. Build FORTE afterwards by right-clicking on forte in the Solution Explorer window, and then click Build. A forte.exe file should be generated in FORTE_FOLDER_ROOT/bin/win32/src/Release.
    Compile by right-clicking on forte in the Soultion Explorer window, and then click Build

Debuggging

  1. If you want to Debug using Visual Studio select the Debug mode and set FORTE as the main project.
    Set FORTE as main project in Visual Studio
  2. And press F5 or click Debug → Start Debugging

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

Or Go to top