OpNET Enviornment Variables

2,644 views
Skip to first unread message

Booter

unread,
Nov 16, 2009, 12:09:42 PM11/16/09
to OPNET
Hello Everyone,

I was having troubles getting OpNET to work on a 32-bit Windows XP
machine until I found this helpful list of environment variables that
are needed for OpNET to run (http://groups.google.com/group/opnet/web/
system-environment-settings-for-visual-studio-2008). Once I got that
problem fixed it was time to tackle the problem of getting it to work
on Windows Server 2008 64-bit. I installed OpNET and added the
required environment variables for OpNET to run. Once I try to
compile though it gives me this error:

oms_string_support.ex.tmp.c
c:\program files\opnet\15.0.a\sys\include\vos.h(98) : fatal error
C1083: Cannot open include file: 'stdio.h': No such file or directory


I know that this means it failed to compile because it could not find
stdio.h but shouldn't that be taken care of by the addition of the
environment variables?

Here is a print out of my current environment variables (i tried to
make it clear which env vars were needed according to the post above):

********* ENV VARS *********

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\booter\AppData\Roaming
CKJAVAMEMORY=-Xms1024M -Xmx1024M
CLIENTNAME=TECH08
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
COMPUTERNAME=TECHSERVER08
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO

Framework35Version=v3.5

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

FrameworkVersion=v2.0.50727

FTP_PASSIVE=1
HOMEDRIVE=U:
HOMEPATH=\
HOMESHARE=\\sunstore\booter
HummPATH13=C:\Program Files (x86)\Hummingbird\Connectivity
\13.00\Accessories\;C:\Program Files\Hummingbird\Connectivity
\13.00\NFS Maestro\;C:\Program Files (x86)\Hummingbird\Connectivity
\13.00\NFS Maestro\

INCLUDE=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;

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;

LOCALAPPDATA=C:\Users\booter\AppData\Local
LOGONSERVER=\\NABOO
NUMBER_OF_PROCESSORS=4
OS=Windows_NT

Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:
\Program Files (x86)\Rockwell Software\RSCommon;C:\Windows\system32;C:
\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell
\v1.0\;C:\Program Files\MATLAB\R2009b\runtime\win64;C:\Program Files
\MATLAB\R2009b\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:
\strawberry\perl\site\lib;C:\strawberry\perl\lib;c:\Program Files
(x86)\Microsoft SQL Server\90\Tools\binn\;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;C:\Program Files (x86)\Microsoft
Visual Studio 9.0\VC\include;C:\Program Files (x86)\Hummingbird
\Connectivity\13.00\Accessories\;C:\Program Files\Hummingbird
\Connectivity\13.00\NFS Maestro\;C:\Program Files (x86)\Hummingbird
\Connectivity\13.00\NFS Maestro\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10,
GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
PROJ_LIB=C:\Basins\bin\PROJ_NAD
PROMPT=$P$G
PUBLIC=C:\Users\Public
REACTION_DIR=C:\Program Files (x86)\Reaction
SESSIONNAME=RDP-Tcp#0
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\booter\AppData\Local\Temp\2
TERM=dumb
TMP=C:\Users\booter\AppData\Local\Temp\2
USERDNSDOMAIN=ENGR.COLOSTATE.EDU
USERDOMAIN=ENGR_DOM
USERNAME=booter
USERPROFILE=C:\Users\booter

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
windir=C:\Windows

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


******** END ************

If someone that has this installed on a 64-bit machine and currently
has it working can share their environment variables set up with me so
that I can compare that would be great.

Any help that you could possibly give me would be greatly appreciated.

Thanks

Booter

Booter

unread,
Nov 16, 2009, 12:37:25 PM11/16/09
to OPNET
Hey Everyone,

I noticed that my INCLUDE path was wrong so I went and changed it real
quick.

New env vars:

********* ENV VARS *********

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\booter\AppData\Roaming
CKJAVAMEMORY=-Xms1024M -Xmx1024M
CLIENTNAME=TECH08
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
COMPUTERNAME=TECHSERVER08
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO

Framework35Version=v3.5

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

FrameworkVersion=v2.0.50727

FTP_PASSIVE=1
HOMEDRIVE=U:
HOMEPATH=\
HOMESHARE=\\sunstore\booter
HummPATH13=C:\Program Files (x86)\Hummingbird\Connectivity
\13.00\Accessories\;C:\Program Files\Hummingbird\Connectivity
\13.00\NFS Maestro\;C:\Program Files (x86)\Hummingbird\Connectivity
\13.00\NFS Maestro\

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;
Instead of fixing the not compiling issue it just continued it. Now I
get the error (when running 64-bit application):

******** ERROR***********
cl : Command line warning D9035 : option 'Wp64' has been deprecated
and will be removed in a future release
oms_string_support.ex.tmp.c
C:/Program Files/OPNET/15.0.A/models/std/utilities/oms/
oms_string_support.ex.c(16) : fatal error C1083: Cannot open include
file: 'oms_string_support.h': No such file or directory
********END**************


and this error when I run the 32-bit application:

******** ERROR***********
oms_string_support.ex.tmp.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(81) :
fatal error C1189: #error : "No Target Architecture"
********END**************


Once again any help that you can give would be greatly appreciated!!

Thanks

Booter

Michael Song

unread,
Nov 17, 2009, 8:56:57 AM11/17/09
to OPNET
Hi Booter

I have also met this problem
perhaps you can solve this problem by enabling the c++ code
compliation
It is the fist item on the list of "complie" in a process model

or you can add OPC_COMPILE_CPP at the begining of header block

hope this would be helpful^__^.

Michael Song

unread,
Nov 17, 2009, 8:59:28 AM11/17/09
to OPNET
That's good ^__^ though

On Nov 17, 1:37 am, Booter <colo.av...@gmail.com> wrote:

Booter

unread,
Nov 17, 2009, 2:41:29 PM11/17/09
to OPNET
Hey Michael,

Thanks for the help but I do not understand these two fixes that you
suggested. I am a Student IT tech at a University and have only
worked with OpNET when it poses a problem. If you could go into more
detail about these fixes I would be very grateful.

Thanks for your help.

Gerad

Booter

unread,
Nov 17, 2009, 3:41:20 PM11/17/09
to OPNET
Michael,

I got the 64-bit version working!!! (YAY) It was a problem with my VS
install (it did not install everything). I am still having trouble
with the 32-bit version though. The error I am currently getting is :

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

If you can help me out that would be great.

Thanks

Booter
Message has been deleted

Jorge

unread,
Jun 28, 2012, 8:41:28 PM6/28/12
to op...@googlegroups.com
Hello Booter,

This may come a little late but I just saw this post and I remembered how annoying this was to track down. I used OPNET 16.1A under Win7 and using VS2010 Pro. Basically, the error comes because you are trying to use 32-bit objects linked to the 32-bit \OPNET\16.1.A\sys\pc_amd_win64\bin\modeler.exe (executable) using 64-bit libraries (from VC++)... notice that winnt.h is included through the compiler flag /I<your path to your included header libs>

I fixed it by first making sure that the 64-bit preferences (in OPNET Modeler, Edit --> Preferences, search for 'comp_target') that I wanted were set (in my case, Development/Sequential). Also, under project modeler, DES --> Configure/Run DES..., expand Execution --> Advanced --> Kernel Type, and make sure that 64-bit address space is set.

That worked for me and I could solve that C1189 compilation error. Hope it helps!!

Jorge

zelalem jembre

unread,
Jul 24, 2012, 9:12:24 PM7/24/12
to op...@googlegroups.com, colo....@gmail.com

awesome fix ... tnx a lot guys

Cristian

unread,
Mar 13, 2013, 2:05:11 PM3/13/13
to op...@googlegroups.com
Great solution! Thanks!

Gabriel Boris Tendjouong Oumbe

unread,
Mar 12, 2014, 10:42:48 AM3/12/14
to op...@googlegroups.com

Hello Sir, I hope that you are well. I makes my project of the end of study on Voice and Video Over LTE. The problem it is because the academic
version of the simulator OPNET modeler does not support LTE and I don´t know how to find OPNET 16. I know that it is a commercial product
but I just want to use it only for my researches. Please can you help me to Obtain OPNET 16? Or then I can use your  remotely for my researches ? You are my last chance because I are not other solutions and in more I has to present the project in May. Thank you in advance. my e-mail is toug...@yahoo.fr

Gabriel Boris Tendjouong Oumbe

unread,
Mar 12, 2014, 10:43:46 AM3/12/14
to op...@googlegroups.com, colo....@gmail.com

Hello Sir, I hope that you are well. I makes my project of the end of study on Voice and Video Over LTE. The problem it is because the academic
version of the simulator OPNET modeler does not support LTE and I don´t know how to find OPNET 16. I know that it is a commercial product
but I just want to use it only for my researches. Please can you help me to Obtain OPNET 16? Or then I can use your  remotely for my researches ? You are my last chance because I are not other solutions and in more I has to present the project in May. Thank you in advance. my e-mail is toug...@yahoo.fr



Reply all
Reply to author
Forward
0 new messages