NuMega DriverWorks+DDK工作环境配制
2006-08-21 23:42
162 查看
刚安装好WinXP DDK和DriverStudio 3.2,使用DriverWorks生成的示例工程老是通不过,开始说缺少这样ntstrsafe.h,在网上找了个ntstrsafe.h放上去又说不知道如何生成ntstrsafe.lib,("how to make"),上网找资料,说是在project setting 的 Link里把 ntstrsafe.lib去掉就可以了,但是去掉后依然有问题,再搜索,说是要在source里把ntstrsafe.lib那一行注释掉,照做后不是提示这个错误了,变成了什么“how to make kndis***.lib",晕倒。后来再在白云上找到文章说在driverworks帮助里说要修改哪里,懒得再按他上面所说的去修改那个地方了,直接看帮助文件,于是在DriverWorks里找到这样一段文字:
Building the libraries using the Microsoft Visual C++ build commands from within Microsoft Visual Studio.
Using the Microsoft Visual Studio IDE, select a DDK using the DDK Build Settings dialog.
Using Visual Studio .NET, this is accessible from the Tools|DriverStudio menu or from the DriverStudio DDK Build toolbar. Using Visual Studio 6, this is accessible from the DriverStudio menu or toolbar.
From within the Visual Studio IDE, open the DriverNetworks library Visual Studio project file located in the "source" subfolder of the DriverNetworks root install folder. For Visual Studio .NET, the project file is dnw200x.sln. For Visual Studio 6, the project file is DNW.dsw. For a typical installation, this would be:
C:/Program Files/Compuware/DriverStudio/DriverNetworks/Source/dnw200x.sln
On the Visual Studio Build menu, select Batch Build.
For 32-bit builds, check all the boxes except the 64-bit configurations (IA64 or AMD64). Select all of the 32-bit configurations except KNdisLib - Win32 NDIS 4 Miniport Free and Checked. If you are using the NT4 DDK, select only KNdisLib - Win32 NDIS 4 Miniport Free and Checked configurations for building.
Click Rebuild All.
Building the libraries using the DriverStudio 'Build with BUILD.EXE' command from within Microsoft Visual Studio.
This method will invoke the DDK's BUILD utility, used in conjunction with the SOURCES file and MAKEFILE contained in the project root folder.
Using the Microsoft Visual Studio IDE, select a DDK using the DDK Build Settings dialog.
Using Visual Studio .NET, this is accessible from the Tools|DriverStudio menu or from the DriverStudio DDK Build toolbar. Using Visual Studio 6, this is accessible from the DriverStudio menu or toolbar.
From within the Visual Studio IDE, open the DriverNetworks library Visual Studio project file located in the "source" subfolder of the DriverNetworks root install folder. For Visual Studio .NET, the project file is dnw200x.sln. For Visual Studio 6, the project file is DNW.dsw. For a typical installation, this would be:
C:/Program Files/Compuware/DriverStudio/DriverNetworks/Source/dnw200x.sln
Select the Project Configuration to build.
On the Visual Studio Build menu, select Set Active Configuration.
For 64-bit build environments, choose a 64-bit configuration (IA64 or AMD64).
Select Build with BUILD.EXE.
Using Visual Studio .NET, this is accessible from the Tools|DriverStudio menu or from the DriverStudio DDK Build toolbar. Using Visual Studio 6, this is accessible from the DriverStudio menu or toolbar.
Repeat Steps 3 and 4 for all 32-bit or 64-bit configurations.
(Refer to the DriverNetworks Library Configuration Table below for relevant library configurations for specific drivers, DDKs, and platforms.)
Building the libraries using command line build scripts from the Command Prompt.
DriverNetworks ships with batch files for building the libraries from the command line. The batch file buildndis.bat is used to automatically set up the correct DDK build environment, set up the DriverNetworks build environment, and build the ndis libraries. Its usage is:
buildndis [type] [configuration] [platform]
where configuration can be either miniport4, miniport5, or protocol5. Platform can be x86, IA64, or AMD64.
The batch file buildtdi.bat is used to automatically set up the correct DDK build environment, set up the DriverNetworks build environment, and build the TDI client libraries. Its usage is:
buildtdi [type] [configuration] [platform]
where configuration can be either NT, 9xVxd, or 9xSYS. Platform can be x86, IA64, or AMD64.
Use the following procedure:
Launch a command shell using the DDK Build Environment shortcuts.
Change directories to the DriverNetworks root install folder.
For a typical installation, this would be:
C:/Program Files/Compuware/DriverStudio/DriverNetworks
Execute the batch file buildndis.bat with appropriate parameters.
For example:
buildndis checked miniport5
This builds the checked version of the DriverNetworks NDIS 5 Miniport library.
Repeat Step 3 for other DriverNetworks libraries as required.
(Refer to the DriverNetworks Library Configuration Table below for relevant library configurations for specific drivers, DDKs, and platforms.)
开始尝试在vs6IDE里面做,但是不成功,提示需要参数,于是干脆在命令里行进行,反正就3个bat文件。
在命令行里进入D:/program files/Compuware/DriverStudio/DriverNetworks,
1、先把环境变量里的basedir去掉,否则执行BuildAllDNW.bat会有错误。执行
BuildAllDNW.bat D:/XPDDK/2600 WinXP x86
于是硬盘一阵狂想,接着我的右下角出了个图标“磁盘空间不足”——倒,我的D盘本来剩下似乎有几百M的,现在只剩下一百多M里,于是赶紧再删除了一些无关目录。
2、设置环境变量BASEDIR指向DDK目录
3、再用VS6打开刚才用DriverWorks生成的程序,点击DDK Build,已经可以了。(如果还不行的话就把刚才那个目录里的另两个bat文件也执行一次,不过另两个文件是需要预先设好BASEDIR和DDK_TARGET_OS这两个环境变量的。
好麻烦,搞了大半天了!
Building the libraries using the Microsoft Visual C++ build commands from within Microsoft Visual Studio.
Using the Microsoft Visual Studio IDE, select a DDK using the DDK Build Settings dialog.
Using Visual Studio .NET, this is accessible from the Tools|DriverStudio menu or from the DriverStudio DDK Build toolbar. Using Visual Studio 6, this is accessible from the DriverStudio menu or toolbar.
From within the Visual Studio IDE, open the DriverNetworks library Visual Studio project file located in the "source" subfolder of the DriverNetworks root install folder. For Visual Studio .NET, the project file is dnw200x.sln. For Visual Studio 6, the project file is DNW.dsw. For a typical installation, this would be:
C:/Program Files/Compuware/DriverStudio/DriverNetworks/Source/dnw200x.sln
On the Visual Studio Build menu, select Batch Build.
For 32-bit builds, check all the boxes except the 64-bit configurations (IA64 or AMD64). Select all of the 32-bit configurations except KNdisLib - Win32 NDIS 4 Miniport Free and Checked. If you are using the NT4 DDK, select only KNdisLib - Win32 NDIS 4 Miniport Free and Checked configurations for building.
Click Rebuild All.
Building the libraries using the DriverStudio 'Build with BUILD.EXE' command from within Microsoft Visual Studio.
This method will invoke the DDK's BUILD utility, used in conjunction with the SOURCES file and MAKEFILE contained in the project root folder.
Using the Microsoft Visual Studio IDE, select a DDK using the DDK Build Settings dialog.
Using Visual Studio .NET, this is accessible from the Tools|DriverStudio menu or from the DriverStudio DDK Build toolbar. Using Visual Studio 6, this is accessible from the DriverStudio menu or toolbar.
From within the Visual Studio IDE, open the DriverNetworks library Visual Studio project file located in the "source" subfolder of the DriverNetworks root install folder. For Visual Studio .NET, the project file is dnw200x.sln. For Visual Studio 6, the project file is DNW.dsw. For a typical installation, this would be:
C:/Program Files/Compuware/DriverStudio/DriverNetworks/Source/dnw200x.sln
Select the Project Configuration to build.
On the Visual Studio Build menu, select Set Active Configuration.
For 64-bit build environments, choose a 64-bit configuration (IA64 or AMD64).
Select Build with BUILD.EXE.
Using Visual Studio .NET, this is accessible from the Tools|DriverStudio menu or from the DriverStudio DDK Build toolbar. Using Visual Studio 6, this is accessible from the DriverStudio menu or toolbar.
Repeat Steps 3 and 4 for all 32-bit or 64-bit configurations.
(Refer to the DriverNetworks Library Configuration Table below for relevant library configurations for specific drivers, DDKs, and platforms.)
Building the libraries using command line build scripts from the Command Prompt.
DriverNetworks ships with batch files for building the libraries from the command line. The batch file buildndis.bat is used to automatically set up the correct DDK build environment, set up the DriverNetworks build environment, and build the ndis libraries. Its usage is:
buildndis [type] [configuration] [platform]
where configuration can be either miniport4, miniport5, or protocol5. Platform can be x86, IA64, or AMD64.
The batch file buildtdi.bat is used to automatically set up the correct DDK build environment, set up the DriverNetworks build environment, and build the TDI client libraries. Its usage is:
buildtdi [type] [configuration] [platform]
where configuration can be either NT, 9xVxd, or 9xSYS. Platform can be x86, IA64, or AMD64.
Use the following procedure:
Launch a command shell using the DDK Build Environment shortcuts.
Change directories to the DriverNetworks root install folder.
For a typical installation, this would be:
C:/Program Files/Compuware/DriverStudio/DriverNetworks
Execute the batch file buildndis.bat with appropriate parameters.
For example:
buildndis checked miniport5
This builds the checked version of the DriverNetworks NDIS 5 Miniport library.
Repeat Step 3 for other DriverNetworks libraries as required.
(Refer to the DriverNetworks Library Configuration Table below for relevant library configurations for specific drivers, DDKs, and platforms.)
开始尝试在vs6IDE里面做,但是不成功,提示需要参数,于是干脆在命令里行进行,反正就3个bat文件。
在命令行里进入D:/program files/Compuware/DriverStudio/DriverNetworks,
1、先把环境变量里的basedir去掉,否则执行BuildAllDNW.bat会有错误。执行
BuildAllDNW.bat D:/XPDDK/2600 WinXP x86
于是硬盘一阵狂想,接着我的右下角出了个图标“磁盘空间不足”——倒,我的D盘本来剩下似乎有几百M的,现在只剩下一百多M里,于是赶紧再删除了一些无关目录。
2、设置环境变量BASEDIR指向DDK目录
3、再用VS6打开刚才用DriverWorks生成的程序,点击DDK Build,已经可以了。(如果还不行的话就把刚才那个目录里的另两个bat文件也执行一次,不过另两个文件是需要预先设好BASEDIR和DDK_TARGET_OS这两个环境变量的。
好麻烦,搞了大半天了!
相关文章推荐
- VC/DDK/DriverWorks开发环境配置
- DriverWorks 3.2在Windows Server 2003 SP1 DDK下如何编译库文件
- 搭建Windows驱动程序设计环境(Windows XP + VC 6.0 + WinXP_DDK + DriverStudio 3.2 )
- vc6.0使用DriverWizard.awx配置DDK驱动编译环境
- 关于ddk环境的配置
- 你还在因为把工作环境和没有做完的工作内容而每天把电脑背回家吗?如果你不想这样,有什么办法呢?
- 开始使用Ubuntu作为工作环境
- 线上版本和开发版本联合工作环境搭建
- 升级工作环境并支持C++17
- Linux 工作环境配置(1)换源&&安装中文输入法
- 搭建微软网络域管理环境前的准备工作
- AD RMS高可用(一)rms工作原理及实验环境
- 数据处理-Spark Worker工作流程图启动Driver源码解读
- VC的DDK编译环境构建
- struts2+Hibernate4+spring3+EasyUI环境搭建之一:准备工作
- 配置PSP开发环境的准备工作
- J2ME工作环境搭建
- unity3d与eclipse协同工作环境
- Matt Pietrek访谈,谈他对.NET的看法及Numega工作情况
- 生产环境该如何选择lvs的工作模式,和哪一种算法