6.0下编译USB摄像头驱动,遇到BUG解决不了了,求助啊!
各位大侠帮帮忙,昨天鼓捣了一天没弄出来。分不多了,大侠凑合了吧。谢谢了!
过程是这样:
VS2005下,在系统镜像的项目下建立subproject,把Douglas Boling的USB摄像头通用驱动移植到项目内,选择自己SDK的release版本,编译。
BUILD.err是:
BUILD: [Thrd:Sequence:Type ] Message
BUILD: [01:0000000021:ERRORE] D:\WINCE600\OSDesigns\TQ2440_05_27_For_Driver\TQ2440_05_27\WebCam\sources(31) : U1033: syntax error : '$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\coredll.lib' unexpected
BUILD: [01:0000000023:ERRORE] NMAKE.EXE TargetCompilePass -i -c BUILDMSG=Stop. BUILDROOT=D:\WINCE600\OSDesigns\TQ2440_05_27_For_Driver\TQ2440_05_27\WebCam\ CLEANBUILD=1 NOLINK=1 NOPASS0=1 failed - rc = 2
sources文件内容:
_COMMONPUBROOT=$(_PROJECTROOT)\cesysgen
__PROJROOT=$(_PROJECTROOT)
RELEASETYPE=LOCAL
_ISVINCPATH=$(_WINCEROOT)\public\common\sdk\inc;
_OEMINCPATH=$(_WINCEROOT)\public\common\oak\inc;$(_WINCEROOT)\public\common\sdk\inc;
TARGETNAME=WebCam
FILE_VIEW_ROOT_FOLDER= \
ReadMe.txt \
prelink.bat \
postlink.bat \
FILE_VIEW_RESOURCE_FOLDER= \
FILE_VIEW_INCLUDES_FOLDER= \
USBVideo.h \
WebCam.h \
WebCamSDK.h \
pddVClas.h \
SOURCES= \
pddvClas.cpp \
USBCode.cpp \
WebCam.cpp \
CDEFINES=$(CDEFINES) -DWebCam_EXPORTS
TARGETLIBS= \
$(_PROJECTROOT)\cesysgen\oak\lib\$(_CPUINDPATH)\usbclient.lib \
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\coredll.lib
TARGETTYPE=DYNLINK
POSTLINK_PASS_CMD=postlink.bat
PRELINK_PASS_CMD=prelink.bat
FILE_VIEW_PARAMETER_FOLDER= \
WebCam.bib \
WebCam.reg \
WebCam.dat \
WebCam.db \
WebCam.def \
ProjSysgen.bat \
INCLUDES= \
$(_TARGETPLATROOT)\src\inc; \
$(_COMMONOAKROOT)\inc; \
$(_PUBLICROOT)\common\oak\inc;$(_PUBLICROOT)\common\sdk\inc;$(_PUBLICROOT)\common\ddk\inc;\
..\..\inc
多谢了! 摄像头 usb wince
[解决办法]
TARGETLIBS 下是生成的库吧,怎么会有 coredll.lib ?