|
Main /
CygwinInstallationDetailsUsing OMNeT++ on Windows with the Cygwin platform1. IntroductionCYGNUS Solutions (now part of RedHat Inc.) produces a Unix-like development environment for Microsoft Windows, based around the GNU compiler and binary utilities. Cygwin includes the following packages:
The list is ever growing. The inclusion of bison, flex, tcl and tk make this development environment a good candidate for running OMNeT++ on Windows. Cygwin is released under the GPL license, which means it is free and the source code is available. Further details and downloading instructions may be found on the web at http://www.cygwin.com. Due to the differences between Windows and Unix, Cygwin has some quirks compared to Unix systems. This document explains how to work around these problems to complete the installation. 2. Installing CYGWINCygwin must be installed before OMNeT++. First you should download
I suggest you first download the packages and then install them from the local directory. You will need to be logged into the Administrator account before starting the installation. Setup will ask:
When selection packages to install, be sure to include the following ones:
The installer will create a `Cygwin bash shell' entry in a folder called `Cygnus Solutions' and also a desktop icon called `Cygwin'. If you should ever want to uninstall the tools, you may do so via the "Add/Remove Programs" control panel. Starting Cygwin will pop up a bash shell with all special environment variables set up for you. Within the bash shell, the installation directory will appear as "/". Your Windows drives will appear as It is a good idea to create a export PS1='# '
alias ls='ls -aF'
alias ll='ls -l'
export TCL_LIBRARY=c:/cygwin/usr/share/tcl8.5
An editor will be required during the installation. For Unix diehards, Cygwin contains vi, or you can download emacs. 3. Getting Tcl/Tk to workThe Tcl/Tk libs seemingly don't recognize Cygwin paths. For TCL_LIBRARY=c:/cygwin11/usr/share/tcl8.5 and not TCL_LIBRARY=/usr/share/tcl8.5 ;# WRONG! Another issue is that Cygwin misses X11 headers that are normally required to build programs with Tcl/Tk. If you're getting compilation errors like /usr/include/tk.h:77: X11/Xlib.h: No such file or directory while building Tkenv, download You'll also need BLT, which can be obtained from the omnetpp.org download area. 4. Installing OMNeT++Open a Cygwin bash shell, then follow the instructions in the InstallingOnUnix page. 5. CommentsAny questions concerning the use of Cygwin should be directed to the Cygwin mail list at If you find any errors in this document please edit the page. Based on a description from Richard Lyon. |