bigfreeman
驱动牛犊
驱动牛犊
  • 注册日期2005-03-27
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分20分
  • 威望4点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2418回复:14

菜鸟跪救,VC++6 DDK DS 怎么配置环境变量阿,

楼主#
更多 发布于:2005-04-12 15:16
能否说得详细点。我刚开始就被这个问题难住了,
dstboxu
驱动小牛
驱动小牛
  • 注册日期2004-06-28
  • 最后登录2011-02-15
  • 粉丝0
  • 关注0
  • 积分109分
  • 威望976点
  • 贡献值1点
  • 好评度143点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-04-12 15:39
说具体些
我正好刚刚解决
qfzcx
驱动牛犊
驱动牛犊
  • 注册日期2004-10-13
  • 最后登录2010-01-11
  • 粉丝0
  • 关注0
  • 积分55分
  • 威望87点
  • 贡献值1点
  • 好评度1点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-04-12 15:50
详细点 那个地方不行说说看
给点参考意见
yutong1112
驱动牛犊
驱动牛犊
  • 注册日期2004-04-19
  • 最后登录2005-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2005-04-12 15:56
我编译时出现这样的问题:
WARNING:You are attempting to build a device driver project for the IA64 platform but the BASEDIR enviroment variable is incorrect. TO define the BASDIR enviroment variable,select an active DDK using the Setting dialog.(Note:this is available on the DriverStudio menu)
刚搜索以前的帖子,发现解决办法了,说是没有在 BUILD环境里设置好 SET ACTIVE CONFIGURATION 项,可是怎么设置啊?我的DS是2.7的......

dstboxu
驱动小牛
驱动小牛
  • 注册日期2004-06-28
  • 最后登录2011-02-15
  • 粉丝0
  • 关注0
  • 积分109分
  • 威望976点
  • 贡献值1点
  • 好评度143点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2005-04-13 11:00
你要IA64的吗
最好用ds3.2或3。1
bmyyyud
驱动老牛
驱动老牛
  • 注册日期2002-02-22
  • 最后登录2010-01-21
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望130点
  • 贡献值0点
  • 好评度106点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2005-04-13 11:07
说是没有在 BUILD环境里设置好 SET ACTIVE CONFIGURATION 项
这是在VC里设的
滚滚长江东逝水 浪花淘尽英雄 是非成败转头空 青山依旧在 几度夕阳红 白发渔樵江渚上 惯看秋月春风 一壶浊酒喜相逢 古今多少事 尽付笑谈中
yutong1112
驱动牛犊
驱动牛犊
  • 注册日期2004-04-19
  • 最后登录2005-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2005-04-13 15:37
 :D :D :D
看我的错误:
Current DDK Directory = C:\\PROGRA~1\\NTDDK
Building for I386
******Configuration: HelloWdm - Win32 Checked *************

Invalid keyboard code specified
New or updated MSVC detected.  Updating DDK environment....

Setting environment for using Microsoft Visual C++ tools.
Starting dirs creation...Completed.
The system cannot find the path specified.
BUILD: Object root set to: ==> objchk
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Loading C:\\PROGRA~1\\NTDDK\\build.dat...
BUILD: Computing Include file dependencies:
BUILD: c:\\progra~1\\micros~2\\vc98\\include\\exdisp.odl(31): c:\\progra~1\\micros~2\\vc98\\include\\exdisp.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: c:\\progra~1\\micros~2\\vc98\\include\\vidsvr.odl(16): c:\\progra~1\\micros~2\\vc98\\include\\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: Examining d:\\zou\\wdm驱~1\\hellowdm directory for files to compile.
    d:\\zou\\wdm驱~1\\hellowdm
    d:\\zou\\wdm驱~1\\hellowdm - 3 source files (393 lines)
BUILD: Saving C:\\PROGRA~1\\NTDDK\\build.dat...
BUILD: Compiling d:\\zou\\wdm驱~1\\hellowdm directory
Compiling - hellowdm.rc for i386
Compiling - hellowdm.cpp for i386
Compiling - hellodev.cpp for i386
hellodev.cpp(18) : error C1083: Cannot open include file: \'HelloDI.h\': No such file or directory
BUILD: Compile errors: not linking d:\\zou\\wdm驱~1\\hellowdm directory
BUILD: Done

    3 files compiled - 1 Error -    26 LPS
Tool returned code: 0

就是BUILD罗聪的那个HELLOWDM时候出现的错误
我发现我的那个选BUILTYPE的默认为FREE还不准我改
为什么啊?唉。。。。。。


[编辑 -  4/13/05 by  yutong1112]
yutong1112
驱动牛犊
驱动牛犊
  • 注册日期2004-04-19
  • 最后登录2005-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
7楼#
发布于:2005-04-13 15:41
 :( :( :(我有好多问题呢!!!
本来本科毕业设计的时候弄的这个项目,后来只改了改师兄的驱动就交了,自己做的也就是一个上层的应用测试程序,没想到现在还要继续搞 :( :( :(
哪个好人能在有空的时候指点我一下啊
我的QQ:12922970
yutong1112
驱动牛犊
驱动牛犊
  • 注册日期2004-04-19
  • 最后登录2005-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
8楼#
发布于:2005-04-13 15:52
看我从头到尾的设置啊,首先呢机子上有VC++和WIN2KDDK了
于是我就设置了一下环境变量就是我的电脑->属性->高级->环境变量
系统变量里面,新建了一个变量,值就是DDK的目录
然后就按照网站的很久之前的帖子“在Visual Studio 6.0集成环境中开发设备驱动程序的方法”的指导下开始设置,后来感觉十分头大,就安装了DRIVERSTUDIO,选项几乎都是默认的啊,然后呢
就在SETDDKGO里面设置了BASEDIR还有DS的DIRECTORIES
然后就下了这个hellowdm来想试一下啊,结果就出现了上述错误
是我的哪里没有对呢???
yutong1112
驱动牛犊
驱动牛犊
  • 注册日期2004-04-19
  • 最后登录2005-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
9楼#
发布于:2005-04-13 17:58
整整一个下午都没有人理。。。。。。 :mad: :mad: :mad:
aiwadgj
驱动老牛
驱动老牛
  • 注册日期2004-11-13
  • 最后登录2020-12-24
  • 粉丝0
  • 关注0
  • 积分119分
  • 威望84点
  • 贡献值0点
  • 好评度14点
  • 原创分0分
  • 专家分0分
  • 社区居民
10楼#
发布于:2005-04-13 19:39
整整一个下午都没有人理。。。。。。 :mad: :mad: :mad:

其实文档里都有说明的了。。。给你大体说说了。。

首先装好VC,接着DDK,,最好DS

环境设置:

1。先用build -cZ编译DDK的库(进入DDK的chenked环境后运行这个命令就可以了)

2。编译DS的自带的那个库,其实是一个工程,给你贴个文档的内容吧。

1。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.

2。From within the Visual Studio IDE, open the DriverWorks library Visual Studio project file located in the \"source\" subfolder of the DriverWorks root install folder. For Visual Studio .NET, the project file is vdwlibs.sln.  For Visual Studio 6, the project file is vdwlibs.dsw. For a typical installation, this would be:

 C:\\Program Files\\Compuware\\DriverStudio\\DriverWorks\\Source\\vdwlibs.dsw.

3。On the Visual Studio Build menu, select Batch Build.

4。For 32-bit builds, click the Select All i386 button.
This will select all configurations for the i386 platform.  

For 64-bit builds, click the Select All ia64 button.
This will select all configurations for the ia64 platform. The Windows XP (or higher) DDK must be used. See Building Drivers with the Windows XP DDK. If the Windows XP DDK is not the active DDK, these configurations will be ignored.

5。Click Rebuild All.

这样DS的环境就设置好了。。。。就可以用DS开发编译了。。。

当然如果,想用DDK直接写驱动的话,,这时候就可以直接用命令编译驱动了。。如果想用VC编译的话。。还要设置VC的编译环境。。

关于设置VC环境编译驱动,在“原创与总结”版有猫王的帖子,,不错的,,去看看吧。。。

希望对你们有所帮助。。。。。

酒也在沉溺,何时麻醉我抑郁。过去了的一切会平息。。。。。。。
aiwadgj
驱动老牛
驱动老牛
  • 注册日期2004-11-13
  • 最后登录2020-12-24
  • 粉丝0
  • 关注0
  • 积分119分
  • 威望84点
  • 贡献值0点
  • 好评度14点
  • 原创分0分
  • 专家分0分
  • 社区居民
11楼#
发布于:2005-04-13 19:43
补充一下啊,,如果按着这个过程过来的还是 环境不行。。。

那一般就是软件的问题了,,换版本重装,,,一般就可以解决问题

的,,实在 还不行,,,,重装系统喽。。。没有别的办法 。。。

不过一般就是DS版本,,或者VC的问题。。
酒也在沉溺,何时麻醉我抑郁。过去了的一切会平息。。。。。。。
yutong1112
驱动牛犊
驱动牛犊
  • 注册日期2004-04-19
  • 最后登录2005-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
12楼#
发布于:2005-04-14 09:03
 :D :D :D大好人~~~我试试看哦
怎么给分啊?
aiwadgj
驱动老牛
驱动老牛
  • 注册日期2004-11-13
  • 最后登录2020-12-24
  • 粉丝0
  • 关注0
  • 积分119分
  • 威望84点
  • 贡献值0点
  • 好评度14点
  • 原创分0分
  • 专家分0分
  • 社区居民
13楼#
发布于:2005-04-14 09:57
:D :D :D大好人~~~我试试看哦
怎么给分啊?
 


你不是楼主,,,你给不了分的,,必须楼主给分。。。呵呵 ;)
酒也在沉溺,何时麻醉我抑郁。过去了的一切会平息。。。。。。。
yutong1112
驱动牛犊
驱动牛犊
  • 注册日期2004-04-19
  • 最后登录2005-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
14楼#
发布于:2005-04-14 11:15
 :D :D :D
努力的看资料。。。


[编辑 -  4/14/05 by  yutong1112]
游客

返回顶部