Omnet++ 4.0 installation for Ubuntu/Windows/Inet

Omnet++ 4.0 installation for Ubuntu :

$ sudo apt-get install build-essential
$ sudo apt-get install bison flex blt blt-dev libgmp3-dev lmodern giftrans doxygen libxml2-dev graphviz imagemagick sun-java6-jdk
$ sudo apt-get install tcl8.4 tk8.4 tcl8.4-dev tk8.4-dev

$ sudo update-alternatives --config java
Make sure 'java-6-sun' is the default Java VM

$ tar -xvf omnetpp-4.0-src.tgz

edit ~/.bashrc and add the following lines. Make suitable changes to INSERT PATH TO OMNET :

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/INSERT PATH TO OMNET/lib
export PATH=$PATH:/INSERT PATH TO OMNET/bin
export TCL_LIBRARY=/usr/share/tcltk/tcl8.4

Open a new terminal

$ cd omnetpp-4.0
$ ./configure
$ make clean
$ make

edit omnetpp-4.0/ide/omnetpp.ini

Look for the following lines :

-Xms64m
-Xmx384m

Modify the lines depending on the amount of RAM you wish to allocate to the Eclipse IDE :

-Xms256m
-Xmx512m

run omnetpp to launch the IDE

Omnet++ 4.0 installation for Windows :

Install Java JDK and make sure the JAVA_HOME is set and PATH points to \bin in the Java JDK

Download omnetpp-4.0-src-windows.zip from [2]

Extract to C:\ so that C:\omnetpp-4.0\ is the main directory

Run the mingwenv.cmd

./configure

make clean

make

Do not close the terminal yet

Run omnetpp to launch the GUI (Eclipse)

Check if the projects build and run


Installing INET framework for Omnet++ 4.0:

Download the INETMANET fork from : [3]

Extract the file to C:\omnetpp-4.0\ so that C:\omnetpp-4.0\inet is the main directory

In the omnetpp GUI (Eclipse): File->Import

Browse and select the the inet directory

Ensure that 'copy into workspace' is unchecked

Build the INET framework : Project->Build All

Check if the inet\examples build and run

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值