Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to configure MVS 2008 to support OPNET

Status
Not open for further replies.

alifattahi

Newbie level 1
Joined
Sep 15, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,332
I Had your problem but I found the solution recently. If you use visual studio 2008, you must set enviroment variables for c compiler in a way you can compile c code using command prompt. after that you have to remove 'Network simulation repository ' setting. you have to set 'stdmod' in 'network simulation repository' for standard mode . finally you have to put these files in the project folder.
VC90.CRT.rc
VC90.CRT.manifest
VC90.CRT.res
VC90.DebugCRT.rc
VC90.DebugCRT.manifest
VC90.DebugCRT.res
if you do the steps correctly, your project will run without any error.
note that none of your models must be a standard node. you have to create them yourself ,or copy from the standard models.you have to give them different name because all models would be registered in opnet.

I found the following from the net. It explain how to configure your compiler.
As of 14.5 PL0,OPNET supports Microsoft Visual Studio 2008.

Note:please refer to FAQ 1685 for MSVS 2005, FAQ 1219 for .NET 2003 and FAQ 783 for .NET 2002 settings.

---
Note that you must ensure your system environment is set up correctly. Here is the list of environment settings that should be added or set in the System Variables on your computer.
(Note: If the variable name already exists, make sure that the value associated for that variable exists. If not, you must add the below value to the variable. Consult your System Administrator or Microsoft technical support for assistance. This FAQ is provided as a courtesy only.)

NOTE: The following settings assume that Visual Studio 2008 has been installed using the default installation directory settings and that your Windows directory is C:\Windows. If these are not the settings you have, then you must adjust the following settings accordingly.

Environment Settings for 32-bit Windows platforms are as below:

DevEnvDir=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

Framework35Version=v3.5

FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework

FrameworkVersion=v2.0.50727

INCLUDE=
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;

LIB=
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;

LIBPATH=
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;

PATH=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;

VCINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 9.0\VC

VS90COMNTOOLS=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\

VSINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 9.0

WindowsSdkDir=
C:\Program Files\Microsoft SDKs\Windows\v6.0A\




Environment Settings for 64-bit Windows platforms are as below:

Framework35Version=v3.5

FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64

FrameworkVersion=v2.0.50727

INCLUDE=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;

LIB=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB\amd64;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB\amd64;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\x64;

LIBPATH=
C:\WINDOWS\Microsoft.NET\Framework64\v3.5;
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB\amd64;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB\amd64;

Path=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64;
C:\WINDOWS\Microsoft.NET\Framework64\v3.5;
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\x64;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin

VCINSTALLDIR=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC

VS90COMNTOOLS=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\

VSINSTALLDIR=
C:\Program Files (x86)\Microsoft Visual Studio 9.0

WindowsSdkDir=
C:\Program Files\Microsoft SDKs\Windows\v6.0A\

To ensure that the MSVS 2008 is installed correctly, open a Command Prompt and type "cl" to invoke the compiler. Then type "link" to invoke the linker/binder. Confirm that each of these commands returns the correct information for the .NET installation.
 

Thanks so much
The environment variables settings you mentioned are very helpfull. I tried the 32 bit windows 7 and run OPNET (as adminstrater ), it worked.
Thanks again.
 

Hello everyone. I am new to OPNET and MVS 2008 and i am having problems running a DES on OPNET.

i have copied successfully the files you say on the first part on the project folder, but still the simulation is not running.

I am wondering if you can help me, because i cannot understand how to configure the compiler as described by you.
To be frank i don't know where to make the changes you say.

I will appriciate an answer from your side.

Thanks!
 

VC90.CRT.rc
VC90.CRT.manifest
VC90.CRT.res
VC90.DebugCRT.rc
VC90.DebugCRT.manifest
VC90.DebugCRT.res
where can i find these files...Directories.

- - - Updated - - -

VC90.CRT.rc
VC90.CRT.manifest
VC90.CRT.res
VC90.DebugCRT.rc
VC90.DebugCRT.manifest
VC90.DebugCRT.res
where can i find these files...Directories.
 

halo..have u solved the problem?i dont know where to find those file..can u help me..

- - - Updated - - -

have u solved the problem?may u help me solved this problem?
 

Hello everyone. I am new to OPNET and i am having problems running a DES on OPNET. I am have installed MVS 2008 SP1 and MV C++ 2008

i have copied successfully the files you say on the first part on the project folder, but still the simulation is not running. When i am start the simulation, the program says this error:

gna_database_mgr.pr.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(81) : fatal error C1189: #error : "No Target Architecture"

I am wondering if you can help me, because i cannot understand what is the error and i need run the simulation for finish my university thesis. Is the last step and then i will get my title :D

I will appreciate an answer from your side.

Thank you :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top