This article focuses on how to install omnet ++ 3.3 in Windows. The latest version is omnet ++ 4.0, but it is not covered in this article.
I. Preparations before installation
Before installation, you must have the following software environment:
1. msvc 6.0.sp1 (that is to say, your machine must have a VC ++ 6.0 development environment, preferably in English ). if there is no SP1, addnedfile may crash the IDE due to bugs in the Visual Studio Scripting Host
2, ghostscript: http://downloads.sourceforge.net/ghostscript/gs864w32.exe
3, omnet ++ 3.3: For: http://omnetpp.org/download/release/omnetpp-3.3-win32.exe
4, if you want to compile in vs2005, then omnet ++ 3.3 version needs to download a library file, address: http://omnetpp.org/download/release/omnetpp-3.3-win32-vc80libs.zip
Ii. Installation Steps
Install the software as follows:
1. First install the VC ++ 6.0 development environment, preferably in English. If exceptions caused by Chinese version installation are not covered in this article. During installation, check the registration environment variable.
2. to install ghostscript, remember the installation directory. During the omnet ++ process, select the gswin32.exe file under./GS/gs8.64/bin /.
3. Install omnet ++ 3.3 only now. The installation process is relatively simple. You must select the VC compiling environment during the installation process. In this document, select vc6.0 releaseand select the directory where the supervisor gswin32.exe is located. Other steps can be installed by default. After installation, six new files will appear on the desktop, three manual files (omnet ++ API, omnet ++ manual, and omnet ++ tutorial users can read these three files before learning, which will help you get started ), three shortcuts (omnet ++ gned, omnet ++ scalars, and omnet ++ plove) are successfully installed.
Iii. Integration in VC Environment
1. omnet ++ provides two macros:
-Addmsgfiletoproject: adds blank. MSG file with opp_msgc invocation
Custom Build step, and corresponding _ M. CPP/h file
-Addnedfiletoproject: adds blank. Ned file with nedtool invocation
Custom Build step, and corresponding _ n. cpp File
2. install these two macros:
(1) Open vc6.0 IDE and choose tools> customize> add-ins and macro files from the menu. Select OMNETPP.
(2) Under the tools> customize> command tag> category, multiple macro items are displayed. After the options are selected, addmsgfiletoproject and addnedfiletoproject are displayed on the right, drag the two to the toolbar of the VC ++ 6.0 development environment, and click OK.
(3) create a VC ++ project to perform operations on omnet ++.
So far, the installation of omnet ++ in Windows is complete. The subsequent work mainly involves reading the documents provided by omnet ++ in detail, and continuously modifying the examples provided by omnet ++. In this way, the omnet ++ learning track will be faster. Goodluck ~