From: Yaswanth on 3 May 2010 06:21 I have similar problem. I fixed it by setting TEMP and TMP environment variables to default OS values. Tim Roberts wrote: Re: WinDDK does not build 13-Nov-08 resistance2 <resistance2(a)discussions.microsoft.com> wrote: Wouldn't it have been a lot quicker just to TRY getting rid of this, rather than waiting for us? Yes, this is exactly the cause of your trouble. "Build" is just a thin wrapper that checks for dependencies and then calls "nmake". "nmake" looks for additional flags in the MAKEFLAGS variable, but not in the form you have them. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc. Previous Posts In This Thread: On Monday, November 10, 2008 1:26 PM resistance wrote: WinDDK does not build Hi, I am a newbie in Windows Driver development, i plan to write a usb function driver for windows xp, i downloaded WinDDK (version 3790.1830) on my system, the installation went smoothly. I opened up a build environment (windows xp checked enviroment) window,navigated to the src directory, and ran build -cZ on the command prompt, the build spewed out the following errors , sorry its quite a long post C:\WINDDK\3790~1.183\src>build -cZ BUILD: Adding /Y to COPYCMD so xcopy ops won't hang. BUILD: Using 2 child processes BUILD: Object root set to: ==> objchk_wxp_x86 BUILD: Compile and Link for i386 BUILD: Examining c:\winddk\3790~1.183\src directory tree for files to compile. BUILD: Building generated files in c:\winddk\3790~1.183\src\wdm\usb\bulkusb\sys directory BUILD: Building generated files in c:\winddk\3790~1.183\src\wdm\usb\isousb\sys d irectory BUILD: Building generated files in c:\winddk\3790~1.183\src\wdm\usb\selsusp\sys directory 1>errors in directory c:\winddk\3790~1.183\src\wdm\usb\bulkusb\sys 1>NMAKE : fatal error U1065: invalid option '-' 2>errors in directory c:\winddk\3790~1.183\src\wdm\usb\isousb\sys 2>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS0ONLY=1 386=1 failed - rc = 2 BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS0ONLY=1 386=1 failed - rc = 2 2>errors in directory c:\winddk\3790~1.183\src\wdm\usb\selsusp\sys 2>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS0ONLY=1 386=1 failed - rc = 2 BUILD: Compiling (NoSync) c:\winddk\3790~1.183\src\wdm\usb\bulkusb\exe directory BUILD: Compiling (NoSync) c:\winddk\3790~1.183\src\wdm\usb\bulkusb\sys directory BUILD: Compiling (NoSync) c:\winddk\3790~1.183\src\wdm\usb\isousb\exe directory 1>errors in directory c:\winddk\3790~1.183\src\wdm\usb\bulkusb\exe 1>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS1_NOLIB= 1 386=1 failed - rc = 2 BUILD: Compiling c:\winddk\3790~1.183\src\wdm\usb\bulkusb\exe directory BUILD: Compiling (NoSync) c:\winddk\3790~1.183\src\wdm\usb\isousb\sys directory 2>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS1_NOLIB= 1 386=1 failed - rc = 2 BUILD: Compiling (NoSync) c:\winddk\3790~1.183\src\wdm\usb\selsusp\sys directory 1>errors in directory c:\winddk\3790~1.183\src\wdm\usb\isousb\exe 1>NMAKE : fatal error U1065: invalid option '-' 2>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS1_NOLIB= 1 386=1 failed - rc = 2 BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS1_NOLIB= 1 386=1 failed - rc = 2 100>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe failed - rc = 2 BUILD: Compiling c:\winddk\3790~1.183\src\wdm\usb\bulkusb\sys directory BUILD: Compiling (NoSync) c:\winddk\3790~1.183\src\wdm\usb\usbview directory 2>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS1_NOLIB= 1 386=1 failed - rc = 2 1>errors in directory c:\winddk\3790~1.183\src\wdm\usb\usbview 1>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS1_NOLIB= 1 386=1 failed - rc = 2 100>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe failed - rc = 2 BUILD: Compiling c:\winddk\3790~1.183\src\wdm\usb\isousb\exe directory BUILD: Compiling c:\winddk\3790~1.183\src\wdm\usb\isousb\sys directory BUILD: Compiling c:\winddk\3790~1.183\src\wdm\usb\selsusp\sys directory 101>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 386=1 failed - rc = 2 BUILD: Compiling c:\winddk\3790~1.183\src\wdm\usb\usbview directory 102>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 386=1 failed - rc = 2 101>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 386=1 failed - rc = 2 102>NMAKE : fatal error U1065: invalid option '-' BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 386=1 failed - rc = 2 BUILD: Compile errors: not linking c:\winddk\3790~1.183\src\wdm\usb\bulkusb\exe directory BUILD: Compile errors: not linking c:\winddk\3790~1.183\src\wdm\usb\bulkusb\sys directory BUILD: Compile errors: not linking c:\winddk\3790~1.183\src\wdm\usb\isousb\exe d irectory BUILD: Compile errors: not linking c:\winddk\3790~1.183\src\wdm\usb\isousb\sys d irectory BUILD: Compile errors: not linking c:\winddk\3790~1.183\src\wdm\usb\selsusp\sys directory BUILD: Compile errors: not linking c:\winddk\3790~1.183\src\wdm\usb\usbview dire ctory BUILD: Done 0 files compiled - 15 Errors Apart from being a newbie, what is that i am terribly doing wrong ?, any help will be appreciated. thanks, On Monday, November 10, 2008 1:31 PM Don Burn wrote: Forget the DDK this is now obsolete, go get the WDK which will build from 2000 Forget the DDK this is now obsolete, go get the WDK which will build from 2000 to Server 2008. Also, I see you are looking at Bulkusb, noadays you would be much better off using KMDF for any USB driver. -- Don Burn (MVP, Windows DDK) Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply "resistance2" <resistance2(a)discussions.microsoft.com> wrote in message news:4B606877-ADF0-4D26-8659-1101BB94A9D3(a)microsoft.com... On Monday, November 10, 2008 2:24 PM resistance wrote: Thanks for the reply, i assume i need to be downloading the WDK for windows Thanks for the reply, i assume i need to be downloading the WDK for windows server 2008. thanks again "Don Burn" wrote: On Monday, November 10, 2008 2:33 PM Don Burn wrote: Yes that is the one you want. Yes that is the one you want. -- Don Burn (MVP, Windows DDK) Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply On Monday, November 10, 2008 3:20 PM David Craig wrote: The correct version is 6001.18002. The correct version is 6001.18002. It is a Windows Server 2008 Service Pack 1 release. Available at connect.microsoft.com under: https://connect.microsoft.com/site/sitehome.aspx?SiteID=148 . You have to join the WDK, WLK, WDF connection to obtain access and then choose 'Downloads'. You can get it and the latest WLK (DTM) plus doc updates for the WLK. You can also get the older 6001.18001 and the WDF 1.7 coinstallers if you want the older version for reference. "resistance2" <resistance2(a)discussions.microsoft.com> wrote in message news:EFFFDB78-914E-4002-9CEB-C64296F001E3(a)microsoft.com... On Monday, November 10, 2008 4:40 PM resistance wrote: Thanks for the help, i downloaded the WDK installer and installed it, later i Thanks for the help, i downloaded the WDK installer and installed it, later i went on to the windows xp checked build environment, navigated to src and executed a build -cZ , I got 878 error, and the build is complaining about this, 2>errors in directory c:\winddk\6001.18001\src\video\displays\mirror\app 2>NMAKE : fatal error U1065: invalid option '-' errors in directory c:\winddk\6001.18001\src\video\displays\mirror\app nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDI R_RELATIVE_TO_BASEDIR=src\video\displays\mirror\app failed - rc = 2 I am not sure if i have to manually edit NMAKE in order to include the options ??. thanks On Monday, November 10, 2008 4:45 PM resistance wrote: I need to reprahse my previous post, i noticed the build executed with 878 I need to reprahse my previous post, i noticed the build executed with 878 error's (typo) all of which were becuase of invalid option '-' in NMAKE "resistance2" wrote: On Monday, November 10, 2008 6:57 PM David Craig wrote: Do you have anything containing build or nmake or cl in a part of the path? Do you have anything containing build or nmake or cl in a part of the path? Go to the appropriate build environment and type set <return>. Look at each directory in the path and see if it contains one. You could also execute 'build /?', 'cl', & 'nmake /?'. This is with 6001.18002 and a Vista x86 checked environment. I always use 'build -ceZ', but I don't know if that is the problem. I also noticed that when first starting the build env, it did a build of the 'dirs' files. They are no longer created during install. I get: BUILD: Version 6.0.6001.16630 Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.278 for 80x86 Microsoft (R) Program Maintenance Utility Version 8.00.50727.278 "resistance2" <resistance2(a)discussions.microsoft.com> wrote in message news:4E5D605F-2672-4B9E-9B8E-E2B33345F55A(a)microsoft.com... On Tuesday, November 11, 2008 1:58 PM resistance wrote: I checked out set <return> and all the path's seem ok to me , however my I checked out set <return> and all the path's seem ok to me , however my MAKEFLAGS evn variable is set to, MAKEFLAGS=-IC:/QNX630/target/qnx6/usr/include , i develop software for qnx also, i am not sure if this is messing it up. thanks for all your help On Thursday, November 13, 2008 12:12 AM Tim Roberts wrote: Re: WinDDK does not build resistance2 <resistance2(a)discussions.microsoft.com> wrote: Wouldn't it have been a lot quicker just to TRY getting rid of this, rather than waiting for us? Yes, this is exactly the cause of your trouble. "Build" is just a thin wrapper that checks for dependencies and then calls "nmake". "nmake" looks for additional flags in the MAKEFLAGS variable, but not in the form you have them. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc. Submitted via EggHeadCafe - Software Developer Portal of Choice C# And The Little Iterator That Could http://www.eggheadcafe.com/tutorials/aspnet/f0cfca12-7398-4b84-a232-0ae26adaa533/c-and-the-little-iterato.aspx
|
Pages: 1 Prev: USB Over IP Documentation Next: KbFilter_ServiceCallback -- inserting and deleting packets |