Eclipse 4diac Logo design once use everywhere Open Source PLC Framework for
Industrial Automation & Control

Documentation

Setting up Cygwin

Setting up Cygwin

Install Cygwin

In Windows, Cygwin provides the necessary tools and libraries for building and debugging. Download Cygwin here. During installation, consider that there should not be any blanks in the folder names of the installation. Follow the instructions of the installation wizard and choose at least the following packages:

  • binutils
  • make
  • gcc
  • gdb
Setup Cygwin

Set Environment Variables

After installing, you need to edit the PATH variable. You can access the System Control Center by pressing Windows Key + Pause. In the System window, click Advanced System Settings → Advanced (tab) → Environment Variables. For Windows 10, a quick access is to enter "Edit the system environment variables" in the Start Search of Windows and click the button "Environment Variables". Change the PATH variable (double-click on it or Select and Edit), and add the path where your Cywgwin is, e.g. C:\cygwin\bin.

Environment variablesEdit environment variables

Test Cygwin

Open the command prompt of Windows either via the Program Menu or type cmd in the Start Search of Windows. Enter bash. If the bash prompt appears as shown in the picture below, it was successful. To end Cygwin enter exit, then enter exit again to end the command prompt.

test Cygwin

Next steps

Now that you successfully installed a compiler, you can continue with the next step of the installation tutorial. All information in the installation tutorial is based on a setup with MinGW. As you are using Cygwin, you need to keep in mind the following:

  • When generating files for compiling in CMake, the tool "Unix Makefiles" has to be selected. (Same tool as for the MinGW setup.)
  • The architecture option needs to be set in CMake: The correct FORTE_ARCHITECTURE is Posix
  • When compiling, open Cygwin and go to the folder, where CMake built the binaries. Execute the command make to compile.
    cd FORTE_FOLDER_ROOT/bin/[YOUR_SYSTEM] make

Where to go from here?

If you want to build a 4diac FORTE, here is a quick link back:

Install Eclipse 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