首页
社区
课程
招聘
[求助]驱动环境设置问题
发表于: 2008-9-30 09:38 5572

[求助]驱动环境设置问题

2008-9-30 09:38
5572
我下载ddkwizard设置好后,生成项目,为什么编译后没有产生sys文件?
生成的日志如下:
  生成日志
                

重新生成 已启动: 项目: Driver1.WLH,配置: WLH checked (PREfast)|Win32

命令行
                

正在创建临时文件“C:\DOCUME~1\Juve\LOCALS~1\Temp\BAT00000622083596.bat”,其内容为
[
@echo off

ddkbuild.cmd -WLH checked . -cZ -prefast

if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: 工具从"正在执行生成文件项目操作"

exit 1

:VCEnd
]
正在创建命令行“C:\DOCUME~1\Juve\LOCALS~1\Temp\BAT00000622083596.bat”

输出窗口
                

正在执行生成文件项目操作
OSR DDKBUILD.CMD V7.2 (2008-04-14) - OSR, Open Systems Resources, Inc.
DDKBLD: >> Setting custom environment variables [ddkbldenv.cmd] ...
DDKBLD: << Finished setting custom environment variables [ddkbldenv.cmd] ...
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!
USAGE:
======
ddkbuild    [flags] [-WDF] [-PREFAST]
Values for :
     -------------------------------------------------------------
      Target platform and DDK   | Miscellaneous
     ---------------------------|---------------------------------
      Platform   | DDK   | CPU  | Base directory | Platform alias
     ------------|-------|------|----------------|----------------
      -W2K       | W2K   | x86  | %W2KBASE%      |
      -W2K64     | W2K   | IA64 | %W2KBASE%      | -W2KI64
      -WXP       | WXP   | x86  | %WXPBASE%      |
      -WXP64     | WXP   | IA64 | %WXPBASE%      | -WXPI64
      -WXP2K     | W2K   | x86  | %WXPBASE%      |
      -WNET      | WNET  | x86  | %WNETBASE%     |
      -WNET64    | WNET  | IA64 | %WNETBASE%     | -WNETI64
      -WNETXP    | WXP   | x86  | %WNETBASE%     |
      -WNETXP64  | WXP   | IA64 | %WNETBASE%     |
      -WNETAMD64 | WNET  | x64  | %WNETBASE%     | -WNETX64
      -WNET2K    | W2K   | x86  | %WNETBASE%     |
      -WLH       | WLH   | x86  | %WLHBASE%      |
      -WLH2K     | W2K   | x86  | %WLHBASE%      |
      -WLHXP     | WXP   | x86  | %WLHBASE%      |
      -WLHXP64   | WXP   | IA64 | %WLHBASE%      |
      -WLHNET    | WNET  | x86  | %WLHBASE%      |
      -WLHNETI64 | WNET  | IA64 | %WLHBASE%      |
      -WLHNETX64 | WNET  | x64  | %WLHBASE%      |
      -WLHI64    | WLH   | IA64 | %WLHBASE%      |
      -WLHX64    | WLH   | x64  | %WLHBASE%      |
      -NT4       | NT4   | x86  | %NT4BASE%      |
     -------------------------------------------------------------
      Support for NT4 and W2K DDKs is deprecated and not checked
      anymore in new versions. It may or may not work.
     -------------------------------------------------------------
Values for :
      checked, chk     indicates a checked build
      free, fre        indicates a free build
Remaining parameters ("opt!" = optional parameter):
            path to build directory, try . (current directory)
      [flags]    opt!  any flags you think should be passed to build (try /a
                       for clean)
      -WDF       opt!  performs a WDF build
      -PREFAST   opt!  performs a PREFAST build
Special files:
      The build target directory (where the DIRS or SOURCES file resides) can
      contain the following files:
      - ddkprebld.cmd
        Allows to include a step before the BUILD tool from the DDK is called
        but after the environment for the respective DDK has been set!
      - ddkpostbld.cmd
        Allows to include a step after the BUILD tool from the DDK is called,
        so the environment is still available to the script.
      - ddkbldenv.cmd
        Allows to set (or override) _any_ environment variables that may exist
        in the global environment. Thus you can set the base directory for the
        DDK from inside this script, making your project more self-contained.
      DDKBUILD will only handle those files which exist, so you may choose to
      use none, one or multiple of these script files.
      (All scripts execute inside there current directory. Consider this!)
Examples:
      "ddkbuild -NT4 checked ." (for NT4 BUILD)
      "ddkbuild -WXP64 chk ."
      "ddkbuild -WXP chk c:\projects\myproject"
      "ddkbuild -WNET64 chk ."      (IA64 build)
      "ddkbuild -WNETAMD64 chk ."   (AMD64/EM64T build)
      "ddkbuild -WNETXP chk . -cZ -WDF"
      "ddkbuild -WNETXP chk . -cZ -PREFAST"
      In order for this procedure to work correctly for each platform, it
      requires an environment variable to be set up for certain platforms.
      There is an auto-detection mechanism in this script, which will work best
      if the DDK/WDK was installed using the normal installer (i.e. not just
      copied). The auto-detection is based on the DDK/WDK for which you request
      a build. Whenever you set the variable explicitly, this will take
      precedence over the auto-detected path!
      The environment variables are as follows:
      %NT4BASE%  - Set this up for "-NT4" builds
      %W2KBASE%  - Set this up for "-W2K" and "-W2K64" builds
      %WXPBASE%  - Set this up for "-WXP", "-WXP64", "-WXP2K" builds
      %WNETBASE% - Set this up for "-WNET*" builds
      %WLHBASE%  - Set this up for "-WLH*" builds
      %WDF_ROOT% must be set if attempting to do a WDF Build previous to the
      Vista WDK (in later DDKs there is no need to set WDF_ROOT).
  OSR DDKBUILD.CMD V7.2 (2008-04-14) - OSR, Open Systems Resources, Inc.
  -> report any problems found to info@osr.com or http://assarbad.net/contact

结果
                

生成日志保存在“file://d:\projects\Driver1\Driver1\BuildLog.htm”
Driver1.WLH - 0 个错误,0 个警告

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
自己狂顶一下
2008-9-30 10:46
0
雪    币: 709
活跃值: (2420)
能力值: ( LV12,RANK:1010 )
在线值:
发帖
回帖
粉丝
3
坛子有资料,搜下,顶得再厉害也没用.
2008-9-30 13:07
0
雪    币: 201
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
DDK+VC6+EasySys
2008-9-30 14:41
0
游客
登录 | 注册 方可回帖
返回
//