Sunday, March 22, 2015

OPNET modeler 14.5 installation guide (WIN XP, 7, 8) (VS 2005,2010,2012)

OPNET modeler 14.5 installation guide
(WIN XP, 7, 8) (VS 2005,2010,2012)


Prerequisites & Requirement software:

1-    Microsoft visual studio: vs2005 for win xp & vista / vs2010 for win 7 / vs2012 for win 8
-         Microsoft visual studio should be installed for running discrete event simulation of opnet projects and for compilation process of the C++ files used by OPNET.
2-    Opnet sources: modeler setup, models setup, documentation setup, and license maker setup.


Setup Environmental variables manually:


·        These are the environmental variables that should be configured or added manually by the method used below:
To add these environmental variables go to (My computer) right click and choose (properties) then from the left up screen choose (advanced system settings) then click on (Environmental variables) then from system variables select (new) to add the variables.

Then copy each variable name and value from the text file or from the tables below and paste them into the new system variable referred by the number 6 in the figure before according to the machine word architecture and the visual studio architecture.
For win7-32bit or 64 or win8 select the specific text files which contains the right paths for the variables to configure the compiler probably. As shown in the tables below:
(these text files can be downloaded from the links in the bottom of this page)


Table 1. For visual studio 2010 in 32-bit machine & 32-bit VS, add these environmental variables:
Variable Name
Variable Value
Path
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\;C:\Windows\Microsoft.NET\Fr­amework\v3.5\;C:\Windows\Microsoft.NET\F­ramework\v2.0.50727\;C:\Program Files\Microsoft Visual Studio 10.0\VC\vcpackages\;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\;C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bin\
INCLUDE
C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include;C:\Program Files\Microsoft Visual Studio 10.0\VC\include\;C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\;C:\Program Files\Microsoft Visual Studio 10.0\DIA SDK\include\;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\En­tity Framework Tools\Templates\include\
LIB
C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\lib\;C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\;C:\Program Files\Microsoft Visual Studio 10.0\DIA SDK\lib\;C:\Program Files\Microsoft Visual Studio 10.0\VC\lib\
LIBPATH
C:\Windows\Microsoft.NET\Framework\v3.5\­;C:\Windows\Microsoft.NET\Framework\v2.0­.50727\;C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\lib\;C:\Program Files\Microsoft Visual Studio 10.0\VC\lib\;C:\Program Files\Microsoft Visual Studio 10.0\DIA SDK\include\;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\En­tity Framework Tools\Templates\include\
Framework35Version
v3.5
DevEnvDir
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\
FrameworkDir
C:\Windows\Microsoft.NET\Framework\
FrameworkVersion
v2.0.50727
VCINSTALLDIR
C:\Program Files\Microsoft Visual Studio 10.0\VC\
VS100COMNTOOLS
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\
VSINSTALLDIR
C:\Program Files\Microsoft Visual Studio 10.0\
WindowsSdkDir
C:\Program Files\Microsoft SDKs\Windows\v7.0A\

Table 2. For visual studio 2010 in 64-bit machine & 32-bit VS, add these environmental variables:
Variable Name
Variable Value
Path
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\;C:\Windows\Microsoft.NET\Fr­amework\v3.5\;C:\Windows\Microsoft.NET\F­ramework\v2.0.50727\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcpackages\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
INCLUDE
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\DIA SDK\include\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\En­tity Framework Tools\Templates\include\
LIB
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib\;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\DIA SDK\lib\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\
LIBPATH
C:\Windows\Microsoft.NET\Framework\v3.5\­;C:\Windows\Microsoft.NET\Framework\v2.0­.50727\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\DIA SDK\include\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\En­tity Framework Tools\Templates\include\
Framework35Version
v3.5
DevEnvDir
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\
FrameworkDir
C:\Windows\Microsoft.NET\Framework\
FrameworkVersion
v2.0.50727
VCINSTALLDIR
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
VS100COMNTOOLS
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\
VSINSTALLDIR
C:\Program Files (x86)\Microsoft Visual Studio 10.0\
WindowsSdkDir
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
·         The difference in the programs file path should include (x86) if the Visual studio is 32-bit running in 64-bit machine and this will only run the OPNET 32-bit version if the machine is 64-bit and the VS is 64-bit also the use Table (3) and it will run OPNET 64-bit.

Table 3. For visual studio 2012 in 64-bit machine & 32-bit VS, add these environmental variables:
Variable Name
Variable Value
Path
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\;C:\Windows\Microsoft.NET\Fr­amework\v3.5\;C:\Windows\Microsoft.NET\F­ramework\v2.0.50727\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcpackages\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
INCLUDE
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\;C:\Program Files (x86)\Windows Kits\8.0\Include\um\;C:\Program Files (x86)\Windows Kits\8.0\Include\shared\
LIB
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\lib\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib;C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\
LIBPATH
C:\Windows\Microsoft.NET\Framework\v3.5\­;C:\Windows\Microsoft.NET\Framework\v2.0­.50727\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\lib\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\
Framework35Version
v3.5
DevEnvDir
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\
FrameworkDir
C:\Windows\Microsoft.NET\Framework\
FrameworkVersion
v2.0.50727
VCINSTALLDIR
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\
VS100COMNTOOLS
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VSINSTALLDIR
C:\Program Files (x86)\Microsoft Visual Studio 11.0\
WindowsSdkDir
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
·         The difference here is in the visual studio version for VS2012 it's 11.0. if you use visual studio 64-bit in 64-bit machine then you should remove (x86) and use the 64-bit OPNET, use this table as it;  if the Visual studio 2012 is 32-bit running in 64-bit machine and this will only run the OPNET 32-bit version.

UPDATE !!! 

Here also i had create the environmental variable scripts to make all the pain easily just download and run the scripts as an administrator :



1 comment: