blob: 67dbc3cc9bcf4ccbaee802430303c90964270a74 [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2010 - 2017 TU Wien ACIN, fortiss GmbH
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.
SPDX-License-Identifier: EPL-2.0
Contributors:
Carolyn Oates, Alois Zoitl, Monika Wenger, Jose Cabral
- initial API and implementation and/or initial documentation
-->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Setting up Cygwin</title>
<link rel="stylesheet" type="text/css" href="../help.css">
</head>
<body>
<h1 id="topOfPage">Setting up Cygwin</h1>
<h2>Install Cygwin</h2>
<p>In Windows, Cygwin provides the necessary tools and libraries for building and debugging.
Download Cygwin <a href="http://cygwin.com/" target="_blank">here</a>.
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:</p>
<ul>
<li>binutils</li>
<li>make</li>
<li>gcc</li>
<li>gdb</li>
</ul>
<img src="../../html/installation/img/cygwinSetup.png" alt="Setup Cygwin"/>
<h2>Set Environment Variables</h2>
<p>After installing, you need to edit the PATH variable.
You can access the System Control Center by pressing <span class="button4diac">Windows Key + Pause</span>.
In the System window, click <span class="button4diac">Advanced System Settings &rarr; Advanced (tab) &rarr; Environment Variables</span>.
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 <span class="button4diac">Edit</span>), and add the path where your Cywgwin is, e.g. <span class="folderLocation">C:\cygwin\bin</span>.</p>
<img src="../../html/installation/img/environmentVariables.png" alt="Environment variables"/><img src="../../html/installation/img/editEnvironmentVariables.png" alt="Edit environment variables"/>
<h2>Test Cygwin</h2>
<p>Open the command prompt of Windows either via the Program Menu or type cmd in the Start Search of Windows.
Enter <span class="inlineCode">bash</span>.
If the bash prompt appears as shown in the picture below, it was successful.
To end Cygwin enter <span class="inlineCode">exit</span>, then enter <span class="inlineCode">exit</span> again to end the command prompt.</p>
<img src="../../html/installation/img/cygwinTest.png" alt="test Cygwin"/>
<h2>Next steps</h2>
<p>Now that you successfully installed a compiler, you can continue with the next step of the <a href="../../html/installation/install.html#FORTEsteps">installation tutorial</a>.
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:
<ul>
<li>When generating files for compiling in CMake, the tool "Unix Makefiles" has to be selected.
(Same tool as for the MinGW setup.)</li>
<li><span class="specificText">The architecture option needs to be set in CMake: The correct FORTE_ARCHITECTURE is Posix</span></li>
<li>When compiling, open Cygwin and go to the folder, where CMake built the binaries.
Execute the command make to compile.
<div class="code"> cd FORTE_FOLDER_ROOT/bin/[YOUR_SYSTEM]
make</div></li>
</ul>
<h1 id="whereToGoFromHere">Where to go from here?</h1>
<p>If you want to build a 4diac FORTE, here is a quick link back:</p>
<p><a href="../../html/installation/install.html">Install Eclipse 4diac</a></p>
<p>If you want to go back to the Start Here page, we leave you here a fast access</p>
<p><a href="../../html/startHere/startHere.html">Start Here page</a></p>
<p class="goToTop">Or <a href="#topOfPage">Go to top</a></p>
</body>
</html>