close Warning: BrowserModule failed with ConfigurationError: Look in the Trac log for more information.

Changes between Initial Version and Version 1 of OverSimInstallMacOSX


Ignore:
Timestamp:
Dec 11, 2012, 3:04:13 PM (12 years ago)
Author:
hartmann@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OverSimInstallMacOSX

    v1 v1  
     1= !OverSim Installation Instructions for Mac OS X=
     2
     3These instructions show you how to install !OverSim on Mac OS X 10.6 (Snow Leopard) to 10.8 (Mountain Lion):
     4
     50. Installing X11 (Mountain Lion only)
     6--------------------------------------
     7OS X 10.8 (Mountain Lion) does not bundle required X11 anymore, so some extra work is needed here. If you are using Snow Leopard or Lion, you can skip to step 1 (Installing OmNET++)
     8* Download and install: http://xquartz.macosforge.org/landing/
     9* Open a terminal and enter: cd /usr/include; sudo ln -s /opt/X11/include/X11
     10
     111. Installing OmNET++
     12==================
     13* Install OmNET++ by the official OmNET++ instructions for OS X.
     14* Note: If you use Mountain Lion, just follow the Lion instruction. You should be fine since you installed X11 in Step 0.
     15
     162. Installing GMP
     17=================
     18After completing step 1 you have the required command line tools like g++.  Additionally, the gmp library is required for building Oversim. There are several package managers which let you install it, you can choose either: Fink, MacPorts, Homebrew should all be fine. Personally, I use Homebrew, it's lightweight and awesome. If you are unsure, just follow the instructions.
     19
     20* Open a terminal and copy / paste the following line into it
     21** ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
     22** Enter your admin password if needed
     23* If this did not work, visit http://mxcl.github.com/homebrew/ for up-to-date Homebrew install instructions
     24* Enter 'brew install gmp'
     25
     26
     271. Requirements for OMNeT++ and !OverSim:
     28    * For Linux:
     29      * [http://tcl.sourceforge.net/ Tcl/Tk with BLT] and [http://gmplib.org/ libgmp]
     30      * On Ubuntu you can install these packages with:
     31{{{
     32  sudo apt-get install tk-dev blt-dev libgmp-dev
     33}}}
     34    * For Mac OS X 10.5
     35      * [http://developer.apple.com/TOOLS/xcode/ Xcode 3.x] and [http://www.finkproject.org/ Fink (includes libgmp)]
     36      * After installation of Fink open a terminal and install libgmp with:
     37{{{
     38  sudo apt-get install libgmp3-dev
     39}}}
     40    * For Windows: Everything you need is already included in the OMNeT++ 4.2.2 package.
     41
     422. Download OMNeT++ 4.2.2 ([http://www.omnetpp.org/omnetpp/doc_download/2245-omnet-422-source--ide-tgz Linux/Mac] or [http://www.omnetpp.org/omnetpp/doc_download/2246-omnet-422-win32-source--ide--mingw-zip Windows] version) from http://www.omnetpp.org/ after reading the [http://www.omnetpp.org/home/license License]
     43
     443a. (!Linux/Mac only): Create a new directory (in the following we assume you want to install OMNeT++ and !OverSim to ~/sim/) and extract OMNeT++:
     45{{{
     46  mkdir ~/sim
     47  cd ~/sim
     48  tar xzvf ~/Downloads/omnetpp-4.2.2-src.tgz
     49}}}
     50
     513b. (Windows only): Extract the OMNeT++ archive to a new directory (e.g. C:\sim\omnetpp-4.2.2) and double click on {{{mingwenv.cmd}}}
     52
     534. (!Linux/Mac only): Add the following lines to your .bashrc or .profile:
     54{{{
     55  export PATH=~/sim/omnetpp-4.2.2/bin:$PATH
     56}}}
     57
     585. Compile OMNeT++ (no need to change the directoy on Windows):
     59{{{
     60  cd ~/sim/omnetpp-4.2.2
     61  ./configure
     62  make
     63}}}
     64
     656. Download the INET framework [http://omnetpp.org/download/contrib/models/inet-20111118-src.tgz inet-20111118-src.tgz] and extract in next to your OMNeT++ installation:
     66{{{
     67  cd ~/sim
     68  tar xzvf ~/Downloads/inet-20111118-src.tgz
     69}}}
     70
     718. Compile the INET framework:
     72{{{
     73  cd ~/sim/inet
     74  make makefiles
     75  make
     76}}}
     77
     789. Download the latest !OverSim snapshot [http://www.oversim.org/chrome/site/OverSim-20121206.tgz OverSim-20121206.tgz] and extract in next to your OMNeT++ installation:
     79{{{
     80  cd ~/sim
     81  tar xzvf ~/Downloads/OverSim-20121206.tgz
     82}}}
     83
     8410. Compile !OverSim (for ReaSE support read the following [wiki:OverSimReaSE instructions]):
     85{{{
     86  cd ~/sim/OverSim
     87  make makefiles
     88  make
     89}}}
     90
     91Congratulations - now you should have a working !OverSim installation!  For instructions how to use !OverSim look at OverSimUsage.
     92
     93== How to use Eclipse to compile !OverSim ==
     94 
     95You can also use the included ''Eclipse IDE'' to compile !OverSim:
     96  * Start Eclipse with ''omnetpp''
     97  * Create a new workspace by choosing a new workspace directory on Eclipse startup
     98  * ''File''->''Import''->''General''->''Existing Projects into Workspace''->''Next''->select the ''inet'' directory->''Finish''
     99  * Repeat the same steps for the !OverSim project
     100  * The build process should start automatically - if not, hit ''Ctrl->B''
     101
     102== How to build !OverSim for a simulation machine or embedded device without X11 ==
     103
     104  * You don't have to install !Tcl/Tk, if you only need ''Cmdenv''. Add the following option to ''omnetpp-4.2.2/configure.user'':
     105{{{
     106  NO_TCL=true
     107}}}
     108  * Use "make MODE=release" to compile INET and !OverSim for optimized binaries without debug information.