Installation of OMNeT++ 3.x on Cygwin

Main.Cygwin History

Hide minor edits - Show changes to markup

July 07, 2010, at 11:37 AM by 194.90.237.34 -
Changed lines 40-41 from:

Installing on omnetpp-4.1b1 on Cygwin

to:

Installing on omnetpp-4.1 on Cygwin

Changed lines 45-52 from:

The following changes to configure.user were performed: WITH_PARSIM=no SHARED_LIBS=no

The following changes to Makefile.inc were performed:

 * Add -DCYGWIN=1 to both CFLAGS_DEBUG and CFLAGS_RELEASE
 * Change order of XML_LIBS and lippnedxml in the line: 
  KERNEL_LIBS += -loppnedxml$D $(XML_LIBS) -loppcommon$D
to:

I posted a message on the group

June 05, 2010, at 09:05 PM by andras -
Changed lines 1-2 from:

title Installation of OMNeT++ on Cygwin

to:

(:title Installation of OMNeT++ 3.x on Cygwin :)

June 05, 2010, at 06:47 PM by Eitan Zahavi - Installing on omnetpp-4.1b1 on Cygwin
Added lines 39-52:

Installing on omnetpp-4.1b1 on Cygwin

I took the chance and eventually succeeded to build on Cygwin. The IDE is still not functional - but the batch execution works great.

The following changes to configure.user were performed: WITH_PARSIM=no SHARED_LIBS=no

The following changes to Makefile.inc were performed:

 * Add -DCYGWIN=1 to both CFLAGS_DEBUG and CFLAGS_RELEASE
 * Change order of XML_LIBS and lippnedxml in the line: 
  KERNEL_LIBS += -loppnedxml$D $(XML_LIBS) -loppcommon$D
December 02, 2009, at 12:06 PM by andras - clarify that this page was written for OMNeT++
Added lines 3-4:

NOTE: These instructions were written for OMNeT++ 3.x. The 4.x series are already released with a bundled copy of MinGW and necessary libraries, so there is little motivation to use Cygwin. If you are still looking into using OMNeT++ 4.x with Cygwin, you are invited to document your experiences on this page.

October 08, 2008, at 01:39 PM by 131.155.68.201 -
Added lines 30-33:

The compilation problem seems to occur during the linking phase in the samples directories. Apparently, there is a cyclic dependency between the envir and tkenv libraries. A possible work-around is executing the following bash command after a successful configure:

for file in samples/*/Makefile; do sed -i 's#-lenvir -ltkenv#-lenvir -ltkenv -lenvir#g' $file; done

December 01, 2006, at 05:35 PM by 131.188.37.96 - added note on Perl/Tcl, moved gcc warnings together, removed double hint to download the BLT fix
Deleted lines 2-3:

IMPORTANT: Do not use the Cygwin gcc 2.95.x compiler, as it generates flawed exception handling code (will crash when used with coroutines/threads). Later Cygwin gcc versions (3.2 or later) should be fine.

Added line 8:
  1. Do not forget to choose the "perl" and "tcltk" packages. ActivePerl and ActiveTcl will not work
Changed line 10 from:
  1. download and install BLT for Cygwin from the omnetpp.org download area
to:
  1. download and install BLT for Cygwin from the omnetpp.org download area
Added lines 20-23:

Problem with gcc 2.95.x

IMPORTANT: Do not use the Cygwin gcc 2.95.x compiler, as it generates flawed exception handling code (will crash when used with coroutines/threads). Later Cygwin gcc versions (3.2 or later) should be fine.

Deleted lines 32-35:

BLT for Cygwin

Please install the BLT tarball provided in the download section. It fixes several BLT problems that are specific to the Cygwin environment.

April 01, 2006, at 10:32 PM by Andras -
Changed lines 7-8 from:

You need to compile OMNeT++ from source, as the libs in the Windows binary version are for Visual C++ and they are not compatible with Cygwin.

to:

You need to compile OMNeT++ from source, as the libs in the Windows binary version are for Visual C++ and they are not compatible with Cygwin. The procedure is essentially the same as on Linux, except that the compilation environment has to be set up first.

Changed lines 15-16 from:
  1. make sure nedtool, gned, opp_makemake and the sample simulations work
to:
  1. make sure nedtool, gned, opp_makemake etc and the sample simulations work
April 01, 2006, at 02:16 PM by Andras -
Changed lines 7-8 from:

You need to compile OMNeT++ from source, the libs in the Windows binary version are for Visual C++, and they are not compatible with Cygwin.

to:

You need to compile OMNeT++ from source, as the libs in the Windows binary version are for Visual C++ and they are not compatible with Cygwin.

Changed lines 17-18 from:

If you are unsure or have run into trouble, please read the more detailed instructions.

to:

If you are unsure or have run into trouble, please read the detailed instructions.

April 01, 2006, at 12:46 PM by Andras -
Changed lines 1-4 from:

title Installation issues on Cygwin

If this is your first time installing OMNeT++ in MinGW or Cygwin, you should probably read doc/Readme.MinGW (or .Cygwin) in the OMNeT++ source distribution first. Yes, you'll need to compile OMNeT++ from source -- the libs in the Windows binary version are for Visual C++, and they are not compatible with Windows ports of gcc.

to:

(:title Installation of OMNeT++ on Cygwin :)

IMPORTANT: Do not use the Cygwin gcc 2.95.x compiler, as it generates flawed exception handling code (will crash when used with coroutines/threads). Later Cygwin gcc versions (3.2 or later) should be fine.

Installation instructions in nutshell

You need to compile OMNeT++ from source, the libs in the Windows binary version are for Visual C++, and they are not compatible with Cygwin.

  1. install Cygwin (DOS file mode will be fine)
  2. download X11inc.zip from the omnetpp.org download area then extract it to /usr/include/X11
  3. download and install BLT for Cygwin from the omnetpp.org download area
  4. download and extract OMNeT++ (the .tgz bundle)
  5. add omnetpp/bin to the PATH
  6. do the usual GNU stuff: ./configure, make
  7. make sure nedtool, gned, opp_makemake and the sample simulations work

If you are unsure or have run into trouble, please read the more detailed instructions.

Issues with Cygwin

April 01, 2006, at 12:34 PM by Andras -
Added lines 1-17:

(:title Installation issues on Cygwin :)

If this is your first time installing OMNeT++ in MinGW or Cygwin, you should probably read doc/Readme.MinGW (or .Cygwin) in the OMNeT++ source distribution first. Yes, you'll need to compile OMNeT++ from source -- the libs in the Windows binary version are for Visual C++, and they are not compatible with Windows ports of gcc.

Problem with gcc 3.4.4 (cygming special)

OMNeT++ 3.2 does not compile with this version of gcc. gcc --version displays the version number of your gcc.

As there is no problem with several other gcc versions (gcc-4.0.1 , gcc-3.4.0 , gcc-3.3.5 on Linux, gcc-3.3.3 (cygwin special), gcc-3.2.3 (mingw special), gcc-3.3.3 (linux ia64)) and with C++ compilers from other vendors (the Intel compiler, Visual C++), this can be safely considered a compiler bug. Please install another version of gcc.

Cygwin: simulation programs crash on exit

We have observed this when compiling OMNeT++ with gcc 3.3.3 (cygwin special) and release CFLAGS (-O2 -DNDEBUG=1) which is the default configure.user setting. Recompiling everything with debug CFLAGS (-g -Wall) seems to make the problem go away. The crash doesn't occur on other platforms (MSVC, gcc on Linux) so it is likely caused by a bug in the Cygwin port of gcc.

BLT for Cygwin

Please install the BLT tarball provided in the download section. It fixes several BLT problems that are specific to the Cygwin environment.

Edit - History - Print - Recent Changes - Search
Page last modified on July 07, 2010, at 11:37 AM