close
Warning:
BrowserModule failed with ConfigurationError: Look in the Trac log for more information.
- Timestamp:
-
May 26, 2010, 5:13:25 PM (15 years ago)
- Author:
-
Ingmar Baumgart
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v54
|
v55
|
|
| 18 | 18 | * For Windows: Everything you need is already included in the OMNeT++ 4.0 package. |
| 19 | 19 | |
| 20 | | 2. Download OMNeT++ 4.0 ([http://www.omnetpp.org/omnetpp/doc_download/2198-omnet-40-source--ide--tgz Linux/Mac] or [http://www.omnetpp.org/omnetpp/doc_download/2199-omnet-40-win32-source--ide--mingw-zip Windows] version) from http://www.omnetpp.org/ after reading the [http://www.omnetpp.org/home/license License] |
| | 20 | 2. Download OMNeT++ 4.1rc1 ([http://www.omnetpp.org/omnetpp/doc_download/2213-omnet-41rc1-source--ide-tgz Linux/Mac] or [http://www.omnetpp.org/omnetpp/doc_download/2214-omnet-41rc1-win32-source--ide--mingw-zip Windows] version) from http://www.omnetpp.org/ after reading the [http://www.omnetpp.org/home/license License] |
| 21 | 21 | |
| 22 | 22 | 3a. (Linux/Mac only): Create a new directory (in the following we assume you want to install OMNeT++ and !OverSim to ~/sim/) and extract OMNeT++: |
| … |
… |
|
| 24 | 24 | mkdir ~/sim |
| 25 | 25 | cd ~/sim |
| 26 | | tar xzvf /tmp/omnetpp-4.0-src.tgz |
| | 26 | tar xzvf /tmp/omnetpp-4.1rc1-src.tgz |
| 27 | 27 | }}} |
| 28 | 28 | |
| 29 | | 3b. (Windows only): Extract the OMNeT++ archive to a new directory (e.g. C:\sim\omnetpp-4.0) and double click on {{{mingwenv.cmd}}} |
| | 29 | 3b. (Windows only): Extract the OMNeT++ archive to a new directory (e.g. C:\sim\omnetpp-4.1) and double click on {{{mingwenv.cmd}}} |
| 30 | 30 | |
| 31 | 31 | 4. (Linux/Mac only): Add the following lines to your .bashrc or .profile: |
| 32 | 32 | {{{ |
| 33 | | export PATH=~/sim/omnetpp-4.0/bin:$PATH |
| | 33 | export PATH=~/sim/omnetpp-4.1/bin:$PATH |
| 34 | 34 | }}} |
| 35 | 35 | |
| 36 | | 5. '''Optional step''': Apply the following patches to OMNeT++: |
| 37 | | - Perfomance improvements: [http://dev.omnetpp.org/bugs/file_download.php?file_id=12&type=bug Download simtime_by_reference.patch] ([http://dev.omnetpp.org/bugs/view.php?id=22 View bugreport 22]) |
| 38 | | - Better layouter for visualization: [http://dev.omnetpp.org/bugs/file_download.php?file_id=14&type=bug Download better_layout.patch] ([http://dev.omnetpp.org/bugs/view.php?id=38 View bugreport 38]) |
| 39 | | - Shorter real world messages: [http://dev.omnetpp.org/bugs/file_download.php?file_id=20&type=bug Download msgc_sizetype.patch] ([http://dev.omnetpp.org/bugs/view.php?id=101 View bugreport 101]) |
| | 36 | 5. Compile OMNeT++ (no need to change the directoy on Windows): |
| 40 | 37 | {{{ |
| 41 | | cd ~/sim/omnetpp-4.0 |
| 42 | | patch -p0 < /tmp/simtime_by_reference.patch |
| 43 | | (repeat for all patches) |
| 44 | | }}} |
| 45 | | |
| 46 | | 6. Compile OMNeT++ (no need to change the directoy on Windows): |
| 47 | | {{{ |
| 48 | | cd ~/sim/omnetpp-4.0 |
| | 38 | cd ~/sim/omnetpp-4.1 |
| 49 | 39 | ./configure |
| 50 | 40 | make |
| 51 | 41 | }}} |
| 52 | 42 | |
| 53 | | 7. Download the patched version of the INET framework [http://www.oversim.org/chrome/site/INET-OverSim-20090317.tgz INET-OverSim-20090317.tgz] and extract in next to your OMNeT++ installation: |
| | 43 | 6. Download the patched version of the INET framework [http://www.oversim.org/chrome/site/INET-OverSim-20100505.tgz INET-OverSim-20100505.tgz] and extract in next to your OMNeT++ installation: |
| 54 | 44 | {{{ |
| 55 | 45 | cd ~/sim |
| 56 | | tar xzvf /tmp/INET-OverSim-20090317.tgz |
| | 46 | tar xzvf /tmp/INET-OverSim-20100505.tgz |
| 57 | 47 | }}} |
| 58 | 48 | |
| 59 | 49 | 8. Compile the INET framework: |
| 60 | 50 | {{{ |
| 61 | | cd ~/sim/INET-OverSim-20090317 |
| | 51 | cd ~/sim/INET-OverSim-20100505 |
| 62 | 52 | make |
| 63 | 53 | }}} |
| 64 | 54 | |
| 65 | | 9. Download the latest !OverSim snapshot [http://www.oversim.org/chrome/site/OverSim-20090908.tgz OverSim-20090908.tgz] and extract in next to your OMNeT++ installation: |
| | 55 | 9. Download the latest !OverSim snapshot [http://www.oversim.org/chrome/site/OverSim-20100526.tgz OverSim-20100526.tgz] and extract in next to your OMNeT++ installation: |
| 66 | 56 | {{{ |
| 67 | 57 | cd ~/sim |
| 68 | | tar xzvf /tmp/OverSim-20090908.tgz |
| | 58 | tar xzvf /tmp/OverSim-20100526.tgz |
| 69 | 59 | }}} |
| 70 | 60 | |
| 71 | 61 | 10. Compile !OverSim: |
| 72 | 62 | {{{ |
| 73 | | cd ~/sim/OverSim-20090908 |
| | 63 | cd ~/sim/OverSim-20100526 |
| 74 | 64 | make |
| 75 | 65 | }}} |
| … |
… |
|
| 82 | 72 | * Start Eclipse with ''omnetpp'' |
| 83 | 73 | * Create a new workspace by choosing a new workspace directory on Eclipse startup |
| 84 | | * ''File''->''Import''->''General''->''Existing Projects into Workspace''->''Next''->select the ''INET-!OverSim-20090317'' directory->''Finish'' |
| | 74 | * ''File''->''Import''->''General''->''Existing Projects into Workspace''->''Next''->select the ''INET-!OverSim-20100505'' directory->''Finish'' |
| 85 | 75 | * Repeat the same steps for the !OverSim project |
| 86 | 76 | * The build process should start automatically - if not, hit ''Ctrl->B'' |
| … |
… |
|
| 88 | 78 | == How to build !OverSim for a simulation machine or embedded device without X11 == |
| 89 | 79 | |
| 90 | | * You don't have to install Tcl/Tk, if you only need ''Cmdenv''. Add the following option to ''omnetpp-4.0/configure.user'': |
| | 80 | * You don't have to install Tcl/Tk, if you only need ''Cmdenv''. Add the following option to ''omnetpp-4.1/configure.user'': |
| 91 | 81 | {{{ |
| 92 | 82 | NO_TCL=true |
| 93 | 83 | }}} |
| 94 | | * Increase compiler optimization by adding the following to ''omnetpp-4.0/configure.user'': |
| 95 | | {{{ |
| 96 | | CFLAGS_RELEASE='-O3 -DNDEBUG=1' |
| 97 | | }}} |
| 98 | 84 | * Use "make MODE=release" to compile INET and OverSim for optimized binaries without debug information. |
| 99 | 85 | |
| 100 | | == Tips for migrating your own !OverSim simulation models to OMNeT++ 4.0 == |
| | 86 | == Tips for migrating your own !OverSim simulation models to OMNeT++ 4.x == |
| 101 | 87 | |
| 102 | 88 | * Read the [http://omnetpp.org/doc/omnetpp40/migration/migration.html official OMNeT++ 4.0 migration guide]! |