在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 -> 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

你可能感兴趣的:(network,网络知识)