在OMNET++上安装INET FRAMEWORK框架

之前提到了omnetpp只是提供一个平台,具体的协议支持需要框架的支持。

下载了inet framework,安装过程中提示需要4.2版本以上的omnetpp,于是又下载了最新的omnetpp。

(安装4.2版本过程中最好关掉杀软

./setenv

./configurate

make

ok!

之后把inet解压到omnet文件夹下,单独放在一个目录。用omnet控制台进到目录里:

make makefiles

make

cd examples

./rundemo

就可以看到基于这个框架的一些demo了。

wireless 802.11,正是我需要的!

HowToImportInet

This short Tutorial should help you to get the combination Omnet++ 4 (final) and INET (INET-20090325-opp4-src.tgz) working.

prerequisites:

  • a working installation of Omnet++ Version 4.
  • unpacked INET archive

Steps to go:

  • open the IDE
  • import the INET project (File -> Import -> General -> Existing Projects into Workspace -> Select <Parent of INET_DIRECTORY> -> Check INET project -> Finish)

At his point you should be able to build the project with Ctrl-B.

Now do what you need/want to do. In my case i just created a new project and referenced the INET project in there

  • File -> New -> Omnet++ Project for C++
  • enter a name and confirm
  • open project properties of your new project
  • enable the INET checkbox in the project references and confirm
  • use all the nice INET stuff in your project
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值