Skip to main content

Installation

4diac IDE

You can download the latest version of 4diac IDE for your operating system from our downloads page. Simply unzip it to a folder of your choosing and launch the contained executable to start working with 4diac IDE. It already comes with a rich set of Standard Libraries for developing applications.

Building your own 4diac IDE

If you want to try out the latest features, you can also build your own 4diac IDE from the sources in the Git repository. For more information, please have a look at the installation steps on how to build your own 4diac IDE.

4diac FORTE

We provide pre-built versions of 4diac FORTE for various common operating systems and targets on our downloads page. This will allow you to quickly get started with deploying and running applications on 4diac FORTE.

If you want to start using 4diac IDE right away, you can skip the rest of the page and go directly to the step by step tutorial or the Start Here-page.

Building your own 4diac FORTE

If there is no pre-built version that suits your needs or you just want to try out the latest features, you can also build 4diac FORTE from the sources in the Git repository.

The following steps will walk you through how to build 4diac FORTE on your own computer. If you want to build 4diac FORTE for an embedded target, please have a look at the links on the bottom of this page.

Prerequisites

For building 4diac FORTE, you need to install some dependencies based on your operating system.

Linux

The following steps describe how to install the required dependencies for building 4diac FORTE on Linux.

Ubuntu

If you are on Ubuntu Noble (24.04), Jammy (22.04), or Focal (20.04), you need to first add the official CMake repository to get the latest CMake version:

apt-get install wget
wget https://apt.kitware.com/kitware-archive.sh
. kitware-archive.sh

You can use the following command(s) to install the required dependencies:

apt-get install cmake g++ gcc git ninja-build
Arch

You can use the following command(s) to install the required dependencies:

pacman -S cmake gcc git ninja
Windows

The following steps describe how to install the required dependencies for building 4diac FORTE on Windows.

You can download Git for Windows here and CMake here. Follow the steps in the installation wizard and be sure to select adding Git and CMake to the PATH variable in the respective step. To avoid any problems, you should choose an installation path that does not contain spaces.

Please follow the instructions below for setting up the compiler of your choice:

The remaining instructions are focused on MinGW-w64, which is therefore particularly recommended for less experienced users.

Clone the Git repository

You can use the following command to clone the Git repository of 4diac FORTE:

git clone https://github.com/eclipse-4diac/4diac-forte.git

This will create a new folder 4diac-forte in the current working directory.

Build 4diac FORTE

You can use the following commands to build and install 4diac FORTE in a local subfolder:

Linux
cd 4diac-forte
cmake -G Ninja --preset posix-debug -DBUILD_SHARED_LIBS=ON
cmake --build build/posix-debug
cmake --install build/posix-debug

The last command will install 4diac FORTE into install/posix-debug.

Windows
cd 4diac-forte
cmake -G Ninja --preset windows-debug -DBUILD_SHARED_LIBS=ON
cmake --build build/windows-debug
cmake --install build/windows-debug

The last command will install 4diac FORTE into install/windows-debug.

Building your own modules

The following steps will walk you through how to build your own modules for 4diac FORTE.

First, you will need to set up a build environment according to the instructions above. You will then need to export your module from 4diac IDE. The export is described in step 4 of the tutorial. When exporting the module, please make sure you check the Export CMakeLists.txt option.

You can then use the following commands to build and install your module in a local subfolder:

cd path/to/module
cmake -G Ninja -B build -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=path/to/forte
cmake --build build
cmake --install build

If you downloaded a pre-built version of 4diac FORTE, path/to/forte should point to the contents of the extracted archive. If you built your own version of 4diac FORTE, it should point to the sub-folder inside install, for example, 4diac-forte/install/*-debug.

Where to go from here?

Now that you installed the required tools, it’s time to start using them. Take a look at the tutorials

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

Back to the top