阅读:4157回复:0
请问如何在64位环境下编译的DriverStudio里的Example nmpacket
小弟的环境是DDK 2003 + vs2008 + DriverStudio 3.2
进入DDK自带的命令行窗口“Windows server 2003 free x64 build enviroment” 在DriverStudio\DriverNetworks\Examples\Kndis\nmpacket下运行脚本编译 脚本内容如下: set CPU=AMD64 call %DRIVERWORKS%\..\Common\runbuild.bat free -ceZ 出错信息为: BUILD: Examining c:\progra~1\compuw~1\driver~1\driver~2\examples\kndis\nmpacket directory for files to compile. Compiling (NoSync) c:\progra~1\compuw~1\driver~1\driver~2\examples\kndis\nmpacket directory ******************** 1>'nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS1_NOLIB=1 AMD64=1' 1>BUILDMSG: Processing c:\progra~1\compuw~1\driver~1\driver~2\examples\kndis\nmpacket 1> rc -l 409 -DSXS_ASSEMBLY_NAME="""""" -DSXS_ASSEMBLY_LANGUAGE="""""" -DSXS_PROCESSOR_ARCHITECTURE="""AMD64""" -DSXS_TARGET="""NMPacket.sys""" -DSYSTEM_COMPATIBLE_ASSEMBLY_NAME="""Microsoft.Windows.SystemCompatible""" -DLSYSTEM_COMPATIBLE_ASSEMBLY_NAME=L"""Microsoft.Windows.SystemCompatible""" -DSXS_ASSEMBLY_VERSION="""""" -r -fo objfre_wnet_AMD64\amd64\nmpacket.res -D_WIN64 -D_AMD64_ -DAMD64 -DCONDITION_HANDLING=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0502 /DWINVER=0x0502 -D_WIN32_IE=0x0603 -DWIN32_LEAN_AND_MEAN=1 -D_AMD64_SIMULATOR_PERF_ -D_SKIP_IF_SIMULATOR_ -D_AMD64_SIMULATOR_ -D_AMD64_WORKAROUND_ -DDEVL=1 -D__BUILDMACHINE__=WinDDK -DNDEBUG -D_DLL=1 -DNTVERSION=400 -DNDIS50=1 -IC:\WINDDK\3790~1.183\inc\mfc42 -IC:\WINDDK\3790~1.183\inc\ddk -IC:\WINDDK\3790~1.183\inc -IC:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~3\include -I. -IC:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~3\source -IC:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~2\include -Iobjfre_wnet_AMD64\amd64 -IC:\WINDDK\3790~1.183\inc\wnet -IC:\WINDDK\3790~1.183\inc\wnet -IC:\WINDDK\3790~1.183\inc\ddk\wnet -IC:\WINDDK\3790~1.183\inc\ddk\wdm\wnet -IC:\WINDDK\3790~1.183\inc\crt .\nmpacket.rc 1>cl -nologo -Iamd64\ -I. -IC:\WINDDK\3790~1.183\inc\mfc42 -IC:\WINDDK\3790~1.183\inc\ddk -IC:\WINDDK\3790~1.183\inc -IC:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~3\include -I. -IC:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~3\source -IC:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~2\include -Iobjfre_wnet_AMD64\amd64 -IC:\WINDDK\3790~1.183\inc\wnet -IC:\WINDDK\3790~1.183\inc\wnet -IC:\WINDDK\3790~1.183\inc\ddk\wnet -IC:\WINDDK\3790~1.183\inc\ddk\wdm\wnet -IC:\WINDDK\3790~1.183\inc\crt -D_WIN64 -D_AMD64_ -DAMD64 -DCONDITION_HANDLING=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0502 /DWINVER=0x0502 -D_WIN32_IE=0x0603 -DWIN32_LEAN_AND_MEAN=1 -D_AMD64_SIMULATOR_PERF_ -D_SKIP_IF_SIMULATOR_ -D_AMD64_SIMULATOR_ -D_AMD64_WORKAROUND_ -DDEVL=1 -D__BUILDMACHINE__=WinDDK -DNDEBUG -D_DLL=1 -DNTVERSION=400 -DNDIS50=1 /c /Zl /Zp8 /Gy -cbstring /W3 /Wp64 /WX /EHs-c- /GR- /GF /GS -Z7 /Oxt -Z7 /FRc:\progra~1\compuw~1\driver~1\driver~2\examples\kndis\nmpacket\objfre_wnet_AMD64\amd64\ -FIC:\WINDDK\3790~1.183\inc\wnet\warning.h .\nmbindingpnp.cpp .\nmpacket.cpp .\nmpacketbinding.cpp .\nmpacketcontroldevice.cpp .\nmpacketdevice.cpp 1>nmbindingpnp.cpp 1>nmpacket.cpp 1>nmpacketbinding.cpp 1>nmpacketcontroldevice.cpp 1>nmpacketdevice.cpp 1>Generating Code... 1> 1>Stop. TESTING: Number of dirs done build libs 0 out of 1Compiling c:\progra~1\compuw~1\driver~1\driver~2\examples\kndis\nmpacket directory ******************** 101>'nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 AMD64=1' 101>BUILDMSG: Processing c:\progra~1\compuw~1\driver~1\driver~2\examples\kndis\nmpacket 101> 101>Stop. Linking c:\progra~1\compuw~1\driver~1\driver~2\examples\kndis\nmpacket directory ******************** 1>'nmake.exe /nologo BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1 NTTEST= UMTEST= AMD64=1' 1>BUILDMSG: Processing c:\progra~1\compuw~1\driver~1\driver~2\examples\kndis\nmpacket 1>NMAKE : fatal error U1073: don't know how to make 'C:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~3\lib\amd64\FREE\vdw.lib' 1>Stop. BUILD: nmake.exe /nologo BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1 NTTEST= UMTEST= AMD64=1 failed - rc = 2 请各位大虾帮忙看看,多谢多谢 |
|