首页
社区
课程
招聘
[求助]the problem of VS2008、DDK XP和DDKWizard搭建驱动开发环境
发表于: 2008-9-11 19:49 11021

[求助]the problem of VS2008、DDK XP和DDKWizard搭建驱动开发环境

2008-9-11 19:49
11021
after the operation of the following:
1>------ 已启动生成: 项目: EmptyDriver7.WXP, 配置: WXP checked (PREfast) Win32 ------
1>正在执行生成文件项目操作
1>OSR DDKBUILD.CMD V7.2 (2008-04-14) - OSR, Open Systems Resources, Inc.
1>DDKBLD: >> Setting custom environment variables [ddkbldenv.cmd] ...
1>DDKBLD: << Finished setting custom environment variables [ddkbldenv.cmd] ...
1>DDKBLD: >> Performing pre-build steps [ddkprebld.cmd] ...
1>DDKBLD: << Finished pre-build steps [ddkprebld.cmd] ...
1>DDKBLD: WXP (checked) using the Windows XP DDK and %WXPBASE%
1>DDKBLD: Directory: C:\ddk\EME5AF~1\EMPTYD~1 + argument(s): -cZ -prefast
1>DDKBLD: WXPBASE: C:\WINDDK\2600
1>DDKBLD: Run prefast build -Ze -cZ -e -MI for checked version in .
1>'prefast' 不是内部或外部命令,也不是可运行的程序
1>或批处理文件。
1>DDKBLD: The PREfast logfile is "PREfast_defects_chk.xml"!
1>DDKBLD: Build complete
1>DDKBLD: Building browse information files
1>DDKBLD: >> Performing post-build steps [ddkpostbld.cmd] ...
1>DDKBLD: << Finished post-build steps [ddkpostbld.cmd] ...
1>生成日志保存在“file://c:\ddk\EmptyDriver7\EmptyDriver7\BuildLog.htm”
1>EmptyDriver7.WXP - 0 个错误,0 个警告
========== 生成: 成功 1 个,失败 0 个,最新 0 个,跳过 0 个 ==========

I can not find a *.sys ,who can tell me why

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (14)
雪    币: 231
活跃值: (45)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
qdk
2
because there is not a file named prefast.bat in C:\WINDDK\2600

Compatibility
DDKWizard (1.2.0a) has been tested on the following configurations:

Visual Studio Professional .NET with WNET DDK and DDKBUILD.CMD on Windows 2003 Server R2 Standard
Visual Studio Professional .NET 2003 with WNET DDK and DDKBUILD.CMD on Windows 2003 Server R2 Standard
Visual C++ 2005 Express with WNET DDK and DDKBUILD.CMD on Windows 2003 Server R2 Standard
Visual Studio 2005 Professional with WNET DDK and DDKBUILD.CMD on Windows 2003 Server R2 Standard
Visual Studio 2008 Professional with WNET DDK and DDKBUILD.CMD on Windows XP
2008-9-11 20:05
0
雪    币: 34
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
1>------ 已跳过生成: 项目: EmptyDriver1.WNET, 配置: WNET2K checked (PREfast) Win32 ------
1>没有为此解决方案配置选中要生成的项目
2>------ 已启动生成: 项目: EmptyDriver1.WLH, 配置: WLH checked (PREfast) Win32 ------
2>正在执行生成文件项目操作
2>OSR DDKBUILD.CMD V7.2 (2008-04-14) - OSR, Open Systems Resources, Inc.
2>DDKBLD: >> Setting custom environment variables [ddkbldenv.cmd] ...
2>DDKBLD: << Finished setting custom environment variables [ddkbldenv.cmd] ...
2>DDKBLD: ERROR #3: To build using type WLH you need to set the %WLHBASE% environment variable to point to the Windows Vista/Windows 2008 Server DDK base directory!
2>USAGE:
2>======
2>ddkbuild <platform> <build type> <directory> [flags] [-WDF] [-PREFAST]
2>Values for <platform>:
2>     -------------------------------------------------------------
2>      Target platform and DDK   | Miscellaneous
2>     ---------------------------|---------------------------------
2>      Platform   | DDK   | CPU  | Base directory | Platform alias
2>     ------------|-------|------|----------------|----------------
2>      -W2K       | W2K   | x86  | %W2KBASE%      |
2>      -W2K64     | W2K   | IA64 | %W2KBASE%      | -W2KI64
2>      -WXP       | WXP   | x86  | %WXPBASE%      |
2>      -WXP64     | WXP   | IA64 | %WXPBASE%      | -WXPI64
2>      -WXP2K     | W2K   | x86  | %WXPBASE%      |
2>      -WNET      | WNET  | x86  | %WNETBASE%     |
2>      -WNET64    | WNET  | IA64 | %WNETBASE%     | -WNETI64
2>      -WNETXP    | WXP   | x86  | %WNETBASE%     |
2>      -WNETXP64  | WXP   | IA64 | %WNETBASE%     |
2>      -WNETAMD64 | WNET  | x64  | %WNETBASE%     | -WNETX64
2>      -WNET2K    | W2K   | x86  | %WNETBASE%     |
2>      -WLH       | WLH   | x86  | %WLHBASE%      |
2>      -WLH2K     | W2K   | x86  | %WLHBASE%      |
2>      -WLHXP     | WXP   | x86  | %WLHBASE%      |
2>      -WLHXP64   | WXP   | IA64 | %WLHBASE%      |
2>      -WLHNET    | WNET  | x86  | %WLHBASE%      |
2>      -WLHNETI64 | WNET  | IA64 | %WLHBASE%      |
2>      -WLHNETX64 | WNET  | x64  | %WLHBASE%      |
2>      -WLHI64    | WLH   | IA64 | %WLHBASE%      |
2>      -WLHX64    | WLH   | x64  | %WLHBASE%      |
2>      -NT4       | NT4   | x86  | %NT4BASE%      |
2>     -------------------------------------------------------------
2>      Support for NT4 and W2K DDKs is deprecated and not checked
2>      anymore in new versions. It may or may not work.
2>     -------------------------------------------------------------
2>Values for <build type>:
2>      checked, chk     indicates a checked build
2>      free, fre        indicates a free build
2>Remaining parameters ("opt!" = optional parameter):
2>      <directory>      path to build directory, try . (current directory)
2>      [flags]    opt!  any flags you think should be passed to build (try /a
2>                       for clean)
2>      -WDF       opt!  performs a WDF build
2>      -PREFAST   opt!  performs a PREFAST build
2>Special files:
2>      The build target directory (where the DIRS or SOURCES file resides) can
2>      contain the following files:
2>      - ddkprebld.cmd
2>        Allows to include a step before the BUILD tool from the DDK is called
2>        but after the environment for the respective DDK has been set!
2>      - ddkpostbld.cmd
2>        Allows to include a step after the BUILD tool from the DDK is called,
2>        so the environment is still available to the script.
2>      - ddkbldenv.cmd
2>        Allows to set (or override) _any_ environment variables that may exist
2>        in the global environment. Thus you can set the base directory for the
2>        DDK from inside this script, making your project more self-contained.
2>      DDKBUILD will only handle those files which exist, so you may choose to
2>      use none, one or multiple of these script files.
2>      (All scripts execute inside there current directory. Consider this!)
2>Examples:
2>      "ddkbuild -NT4 checked ." (for NT4 BUILD)
2>      "ddkbuild -WXP64 chk ."
2>      "ddkbuild -WXP chk c:\projects\myproject"
2>      "ddkbuild -WNET64 chk ."      (IA64 build)
2>      "ddkbuild -WNETAMD64 chk ."   (AMD64/EM64T build)
2>      "ddkbuild -WNETXP chk . -cZ -WDF"
2>      "ddkbuild -WNETXP chk . -cZ -PREFAST"
2>      In order for this procedure to work correctly for each platform, it
2>      requires an environment variable to be set up for certain platforms.
2>      There is an auto-detection mechanism in this script, which will work best
2>      if the DDK/WDK was installed using the normal installer (i.e. not just
2>      copied). The auto-detection is based on the DDK/WDK for which you request
2>      a build. Whenever you set the variable explicitly, this will take
2>      precedence over the auto-detected path!
2>      The environment variables are as follows:
2>      %NT4BASE%  - Set this up for "-NT4" builds
2>      %W2KBASE%  - Set this up for "-W2K" and "-W2K64" builds
2>      %WXPBASE%  - Set this up for "-WXP", "-WXP64", "-WXP2K" builds
2>      %WNETBASE% - Set this up for "-WNET*" builds
2>      %WLHBASE%  - Set this up for "-WLH*" builds
2>      %WDF_ROOT% must be set if attempting to do a WDF Build previous to the
2>      Vista WDK (in later DDKs there is no need to set WDF_ROOT).
2>  OSR DDKBUILD.CMD V7.2 (2008-04-14) - OSR, Open Systems Resources, Inc.
2>  -> report any problems found to info@osr.com or http://assarbad.net/contact
2>生成日志保存在“file://c:\Documents and Settings\peng\My Documents\Visual Studio 2008\Projects\EmptyDriver1\EmptyDriver1\BuildLog.htm”
2>EmptyDriver1.WLH - 0 个错误,0 个警告
========== 生成: 成功 1 个,失败 0 个,最新 0 个,跳过 1 个 ==========

fuck,it is still not worked  !
2008-9-11 20:49
0
雪    币: 231
活跃值: (45)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
qdk
4
ddkbldenv需要手工设置一下WLHBASE变量
2008-9-11 20:53
0
雪    币: 34
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
1>------ 已启动生成: 项目: EmptyDriver1.WNET, 配置: WNET checked (PREfast) Win32 ------
1>正在执行生成文件项目操作
1>OSR DDKBUILD.CMD V7.2 (2008-04-14) - OSR, Open Systems Resources, Inc.
1>DDKBLD: >> Setting custom environment variables [ddkbldenv.cmd] ...
1>DDKBLD: << Finished setting custom environment variables [ddkbldenv.cmd] ...
1>DDKBLD: >> Performing pre-build steps [ddkprebld.cmd] ...
1>DDKBLD: << Finished pre-build steps [ddkprebld.cmd] ...
1>DDKBLD: WNET (checked) using the Windows 2003 Server DDK and %WNETBASE%
1>DDKBLD: Directory: C:\1\EMPTYD~1\EMPTYD~1 + argument(s): -cZ -prefast
1>DDKBLD: WNETBASE: c:\WINDDK\3790~1.183
1>DDKBLD: Run prefast build -Ze -cZ -e -MI for checked version in .
1>DDKBLD: The PREfast logfile is "PREfast_defects_chk_wnet_x86.xml"!
1>DDKBLD: Build complete
1>DDKBLD: Building browse information files
1>DDKBLD: >> Performing post-build steps [ddkpostbld.cmd] ...
1>DDKBLD: << Finished post-build steps [ddkpostbld.cmd] ...
1>生成日志保存在“file://c:\1\EmptyDriver1\EmptyDriver1\BuildLog.htm”
1>EmptyDriver1.WNET - 0 个错误,0 个警告
========== 生成: 成功 1 个,失败 0 个,最新 0 个,跳过 0 个 ==========

failed once again.
2008-9-11 20:54
0
雪    币: 231
活跃值: (45)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
qdk
6
没有吧
不是已经成功了么?
我的就是这样的
2008-9-11 20:55
0
雪    币: 34
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
my QQ :109350064 ,I would rather  pay for the solution.
2008-9-11 20:56
0
雪    币: 231
活跃值: (45)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
qdk
8
测试驱动的程序得自己写,贼不爽
softice又用不了,
drivermonitor一开就蓝屏

fz
2008-9-11 20:56
0
雪    币: 34
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
9
I have no idea where the  *.sys is .
2008-9-11 20:57
0
雪    币: 231
活跃值: (45)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
qdk
10
I'm a newbie too
2008-9-11 20:57
0
雪    币: 231
活跃值: (45)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
qdk
11
我用的是wizard1.2.0a
ddk用的是1830_usa_ddk
就在工程的目录里,生成一个xxxobjxxx目录,在里面的里面
2008-9-11 20:59
0
雪    币: 34
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
12
我用的
DDK是3790.1830,这次是生成了一个目录,可还没有*.sys文件生成 ,你的DDK在哪下的? 
2008-9-11 21:03
0
雪    币: 231
活跃值: (45)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
qdk
13
还有一种方法,就是用ddk原来的buildutility
很好用的,
就在开始菜单里,启动之后cd到你的驱动工程的目录里
一个build命令就ok了

ddkwizard也是这么干的,只不过它设了些参数,在工程里加了makefile,source,dirs文件用来指引build.exe来编译驱动
2008-9-11 21:23
0
雪    币: 351
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
14
我的也找不到 .sys...
2009-8-17 20:51
0
雪    币: 351
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
15
问题搞定了 ,可以了。。。
2009-8-17 21:30
0
游客
登录 | 注册 方可回帖
返回
//