阅读:2651回复:4
关于在DDKXP下编译USB驱动的错误问题
基本情况:ARM2440的开发板有个USB的驱动SECBULK.SYS,因为该驱动只能在WINDOWS2000上使用,我的机子是XP SP2,所以下载了三星提供的源代码,安装了DDKXP,VC原来就有,按照网上的文章创建了工程,加入源文件,然后编译。出现如下错误:
--------------------Configuration: secbulk - Win32 Debug-------------------- BUILD: Object root set to: ==> objchk BUILD: Adding /Y to COPYCMD so xcopy ops won't hang. BUILD: /i switch ignored BUILD: Compile and Link for i386 BUILD: Loading E:\WINDDK\2600\build.dat... BUILD: Computing Include file dependencies: BUILD: Examining e:\mydiver directory tree for files to compile. e:\mydiver e:\mydiver\secbulk e:\mydiver\secbulk - 10 source files (2,608 lines) BUILD: Compiling e:\mydiver\secbulk directory BUILD: nmake.exe failed - rc = 2 BUILD: Linking e:\mydiver\secbulk directory BUILD: nmake.exe failed - rc = 2 BUILD: Done MakeDriver E:\WINDDK\2600 E: E:\mydiver CHECKED secbulk.sys - 0 error(s), 0 warning(s) 又在网上查了“BUILD: nmake.exe failed - rc = 2”的问题,都说可能是makefile或者sources文件格式错误,看了多遍没发现错误,下面是这两个文件的内容: makefile: # # DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source # file to this component. This file merely indirects to the real make file # that is shared by all the driver components of the Windows NT DDK # !INCLUDE $(NTMAKEENV)\makefile.def sources: TARGETNAME=secbulk TARGETTYPE=DRIVER TARGETPATH=OBJ DRIVERTYPE=WDM BROWSER_INFO=1 TARGETLIBS=$(DDK_LIB_PATH)\usbd.lib \ $(DDK_LIB_PATH)\ntoskrnl.lib INCLUDES=$(DDKROOT)\inc;$(DDKROOT)\inc\DDK SOURCES=2410lib.c memtest.c mmu.c profile.c u241mon.c usbin.c usblib.c usbmain.c usbout.c usbsetup.c 后面是附件的工作目录,包含源文件。 哪位高人能指点一下,哪里有错误,导致不能生成secbulk.sys? |
|
|
沙发#
发布于:2009-07-05 23:12
DDKROOT=E:\WINDDK\2600
WORKDIR=E:\mydiver |
|
板凳#
发布于:2009-07-06 00:52
dasafd
|
|
|
地板#
发布于:2009-07-06 00:57
dafsfads
|
|
|
地下室#
发布于:2009-07-06 19:09
都没有人知道啊?
|
|