最近想研究一下各种网络协议,想装个opnet,无奈我的OS换成了WIN7,于是费了好大劲下了个opnet14.5,还要研究怎么把它装上去,网上找了篇文章,回头试试~~
北邮那个ftp上已经只有两个文件了,下载了也没用的。 我的vs2008是安装在D:\software\Microsoft Visual Studio 9.0,我只装了vc. Models_145A_PL1目录下面的是model安装文件,进入下面的windows目录,执行models_14.5.A_PL1_27-Feb-2008.exe 新建一project,至于项目要加些什么东西,自己搞定啊,用过opnet的应该都能很容易搞定这个的,不多说了。 最后,在Joey的空间找到了答案。 http://msdn.microsoft.com/zh-cn/library/ms235560(v=VS.90).aspx 如何:将清单嵌入到 C/C++ 应用程序 http://msdn.microsoft.com/zh-cn/library/ms235591(v=VS.90).aspx Mt.exe http://msdn.microsoft.com/en-us/library/aa375649.aspx 这些就是解决问题的方法了~ FAQ ID: 2099 Question: What are the proper system environment settings for Microsoft Visual Studio 2008 compiler to work with release 14.5 or later [for 32-bit and 64-bit Windows]? As of 14.5 PL0,OPNET supports Microsoft Visual Studio 2008. Notelease refer to FAQ 1685 for MSVS 2005, FAQ 1219 for .NET 2003 and FAQ 783 for .NET 2002 settings. — 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= LIB= LIBPATH= PATH= VCINSTALLDIR= VS90COMNTOOLS= VSINSTALLDIR= WindowsSdkDir= Environment Settings for 64-bit Windows platforms are as below: Framework35Version=v3.5 FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64 FrameworkVersion=v2.0.50727 INCLUDE= LIB= LIBPATH= Path= VCINSTALLDIR= VS90COMNTOOLS= VSINSTALLDIR= WindowsSdkDir= 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. After this, you can start OPNET Modeler and run simulations as usual.
我是在 http://iask.sina.com.cn/u/1819539183/ish?folderid=147344 下载的,共18个分卷压缩包,不得不说,电信的网速确实还不错,晚上下载的,基本上2-3MBps左右。没一会就下载完成。
安装之前先切断网络。(拔掉网线?禁用连接?客官请随意 )热身运动:环境变量设置
Environment Settings for 32-bit Windows platforms are as below:
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
D:\software\Microsoft Visual Studio 9.0\Common7\IDE
Framework35Version=v3.5
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkVersion=v2.0.50727
INCLUDE=
D:\software\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;
D:\software\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;
LIB=
D:\software\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
D:\software\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;
D:\software\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
D:\software\Microsoft Visual Studio 9.0\VC\LIB;
PATH=
D:\software\Microsoft Visual Studio 9.0\Common7\IDE;
D:\software\Microsoft Visual Studio 9.0\VC\BIN;
D:\software\Microsoft Visual Studio 9.0\Common7\Tools;
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
D:\software\Microsoft Visual Studio 9.0\VC\VCPackages;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
VCINSTALLDIR=
D:\software\Microsoft Visual Studio 9.0\VC
VS90COMNTOOLS=
D:\software\Microsoft Visual Studio 9.0\Common7\Tools\
VSINSTALLDIR=
D:\software\Microsoft Visual Studio 9.0
WindowsSdkDir=
C:\Program Files\Microsoft SDKs\Windows\v6.0A\软件安装
再进入modeler_docs_28-Jan-2008_win\Windows,执行modeler_docs_145A_7015_28Jan2008.exe安装文档,最后安装modeler_145A_PL1_7116_win\Windows\modeler_145A_7116.exe ,安装license server时注意选择standalone模式。
再从OPNET.Modeler.14.5.License.Maker-FFS.rar解压出来OPNET.Modeler.14.5.License.Maker-FFS.exe并放到opnet安装目录\14.5.A\sys\pc_intel_win32\bin目录下面,打开OPNET Modeler 14.5,然后执行OPNET.Modeler.14.5.License.Maker-FFS.exe
关闭OPNET Modeler 14.5再打开,然后点击菜单里的license manager,可以看到生成了1000个license.此时就可以正常使用OPNET Modeler了。
貌似这样就完了,其实没完。 测试安装成功与否
点击run,simulation kernel选择optimized,时间选择短一点,0.2吧,测试一下而已。
好了,错误信息弹出来了,说无法找到msvcr90.dll,op_runsim_opt.exe无法执行。于是求助于神一样的google.
已经确认无效的解决方案:
1,从D:\software\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT复制msvcr90.dll等到opnet安装目录\14.5.A\sys\pc_intel_win32\bin目录下面或C:\WINDOWS\system32目录下面
2,复制opnet安装目录\14.5.A\sys\pc_intel_win32\bin\manifest_NET2008目录下面文件到opnet安装目录\14.5.A\sys\pc_intel_win32\bin\目录下面
先复制opnet安装目录\14.5.A\sys\pc_intel_win32\bin\manifest_NET2008目录下面文件到opnet安装目录\14.5.A\sys\pc_intel_win32\bin\目录下面,再到opnet安装目录\14.5.A\sys\pc_intel_win32\bin\目录下面执行如下四条命令:
2
3
4
Mt.exe -manifest op_runsim_opt.exe.manifest -outputresource:op_runsim_opt.exe;1
Mt.exe -manifest op_runsim_mtdev.exe.manifest -outputresource:op_runsim_mtdev.exe;1
Mt.exe -manifest op_runsim_dev.exe.manifest -outputresource:op_runsim_dev.exe;1
C 运行时错误 R6034
环境变量设置win32/win64
Answer: This FAQ is provided as a courtesy for OPNET users to help with the initial configuration of Microsoft Visual C++; OPNET Technical Support does not officially support system administration for non-OPNET products. The following variables need to be specified for proper operation of MSVC++ with OPNET. (Depending on how MSVC was installed, these variables may have already been set by the MSVC installation process).
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.)
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;
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;
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;
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;
C:\Program Files\Microsoft Visual Studio 9.0\VC
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
C:\Program Files\Microsoft Visual Studio 9.0
C:\Program Files\Microsoft SDKs\Windows\v6.0A\
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;
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;
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;
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
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
C:\Program Files (x86)\Microsoft Visual Studio 9.0
C:\Program Files\Microsoft SDKs\Windows\v6.0A\
OPNET win7安装
转载
opnet 14.5 + VS2008 + win7=麻烦
2011 十一月 16
1
DevEnvDir=D:\software\Microsoft Visual Studio 9.0\Common7\IDE
1
Mt.exe -manifest op_runsim.exe.manifest -outputresource:op_runsim.exe;1
下一篇: 经典育儿书籍推荐目录
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
win10共享打印机给win7
win10共享打印机到win7
网络访问 win10 共享打印机 win7