58
58
59
59
首先,安装** INET** 库,需要到** inet** 文件下看看有什么有用的文件没有,当然是先看看** README.md** 了,这个文件提示我们安装请看:** INSTALL** ,内容如下:
60
60
61
- ``` C++
61
+ ``` bash
62
62
If you are building from command line:
63
63
--------------------------------------
64
64
1. Change to the INET directory.
@@ -69,7 +69,6 @@ If you are building from command line:
69
69
to build release version.
70
70
71
71
4. You can run specific examples by changing into the example' s directory and executing "./run"
72
-
73
72
```
74
73
75
74
当然,你可以选择**mingwenv.cmd**命令窗口,输入以上指令进行编译安装。上面的英文安装较为简洁,下面是我使用命令窗口安装的过程:
@@ -95,29 +94,27 @@ If you are building from command line:
95
94
96
95
- 方法二:**OMNeT++**窗口安装
97
96
98
- 一样的,在**INSTALL**下命令行安装方式下面就是使用IDE的安装方式,这个**IDE**的使用方式就是将**INET**库使用**OMNeT++**打开,当然此时库文件**inet**已经在**samples**文件下,我们需要做的就是打开**OMNeT++ IDE** ,然后导入整个**inet**工程。
99
-
100
- ```C++
97
+ 在**INSTALL**下命令行安装方式下面就是使用IDE的安装方式,这个**IDE**的使用方式就是首先将**inet**文件放置在**samples**目录下,并将**INET**库使用**OMNeT++**打开,我们需要做的就是打开**OMNeT++ IDE** ,然后导入整个**inet**工程。
101
98
99
+ ```bash
102
100
If you are using the IDE:
103
101
-------------------------
104
- 3 . Open the OMNeT++ IDE and choose the workspace where you have extracted the inet directory.
102
+ 1 . Open the OMNeT++ IDE and choose the workspace where you have extracted the inet directory.
105
103
The extracted directory must be a subdirectory of the workspace dir.
106
104
107
- 4 . Import the project using: File | Import | General | Existing projects into Workspace.
105
+ 2 . Import the project using: File | Import | General | Existing projects into Workspace.
108
106
Then select the workspace dir as the root directory, and be sure NOT to check the
109
107
"Copy projects into workspace" box. Click Finish.
110
108
111
- 5 . Open the project (if already not open) and wait until the indexer finishes.
109
+ 3 . Open the project (if already not open) and wait until the indexer finishes.
112
110
Now you can build the project by pressing CTRL-B (Project | Build all)
113
111
114
- 6 . To run an example from the IDE open the example's directory in the Project Explorer view,
112
+ 4 . To run an example from the IDE open the example' s directory in the Project Explorer view,
115
113
find the corresponding omnetpp.ini file. Right click on it and select Run As / Simulation.
116
114
This should create a Launch Configuration for this example.
117
115
118
116
If the build was successful, you may try running the demo simulations.
119
117
Change into examples/ and type " ./rundemo" .
120
-
121
118
` ` `
122
119
123
120
根据上面的步骤,需要点击:** File | Import | General | Existing projects into Workspace** ,导入inet整个工程文件,对整个工程进行编译即可。
@@ -130,7 +127,7 @@ Change into examples/ and type "./rundemo".
130
127
131
128
# ## INETMANET安装 ###
132
129
133
- 在安装** INETMANET** 库前,也许你可以在 ** OMNeT++ ** 中,将 ** INET ** 工程关掉,接下来,你可以按照以下步骤进行 :
130
+ 在安装** INETMANET** 库前,安装可按照以下步骤进行 :
134
131
135
132
` ` ` bash
136
133
#! bin/bash
0 commit comments