Fixing OMNET++ on Mac OS X 10.9 Mavericks

Upgrading to Mac OS X 10.9 Mavericks breaks OMNET++, some actions required to get it working correctly. Here is the steps that I followed;

  1. Install latest Xcode 5.0.1 from Mac App Store
  2. Install command line tools  xcode-select –install
  3. Install macports Mavericks build
  4. Install gcc version 4.7 via macports
    sudo port selfupdate
    sudo port install gcc47
    sudo port select –set gcc mp-gcc47
    After this point you can compile OMNET++ and get working but, I faced problems when running simulations like missing icons/images in simulation. I think Tcl library has issues with Mavericks, in my case it has to reinstall too.
  5. sudo port install tcl
    sudo port install tcllib
  6. Now, edit configure.user in OMNET++ source directory
    TK_LIBS=”-L/opt/local/lib -ltk8.6 -ltcl8.6″
  7. Now you can follow OMNET++ standard installation instructions.



4 thoughts on “Fixing OMNET++ on Mac OS X 10.9 Mavericks

  • Anna Förster

    Hi and thanks a lot for the great tips! Unfortunately, I cannot get Mixim to work. The example from Omnet++ itself work fine, but when I try to build the Mixim project (in fact, the same happens also with the INET project), I get first the error: “OMNeT++ libraries are not yet built”, then the compilation starts anyway and breaks with the following errors:
    make MODE=debug CONFIGNAME=gcc-debug all
    cd src && /Applications/
    make[1]: g++-mp-4.7: No such file or directory
    make[1]: *** [../out/gcc-debug/src/applications/dhcp/DHCPClient.o] Error 1
    make: *** [all] Error 2

    Any idea?

    • merturk

      It seems you don’t have gcc installed, you can get it with mac ports. Newer versions of XCode comes with LLVM compiler which has issues with OMNET++. Also, Mixim framework doesn’t compile with LLVM. You have install get gcc version 4.7.

  • Anton

    Thanks for the tips. For anyone interested, the same works fine by installing gcc47 using homebrew, and then switching the GCC inside configure.user as described in this article.

Leave a Reply

Your email address will not be published. Required fields are marked *