WDK SXS_BUILD

Hi,
Happy Diwali everyone!

Is there any way to turn off SXS_BUILD in WDK?
I downloaded Windows Driver Kit (WDK 6000) and tried to compile a static library that would be used by my driver. It gave me a couple of warnings and then some errors.

c:\winddk\6000\bin\makefile.new(885) : warning U4006: special macro undefined :
‘$(@B).def’
c:\winddk\6000\bin\makefile.new(885) : warning U4006: special macro undefined :
‘$(@B).def’
_NT_TARGET_VERSION SET TO WINXP
errors in directory <my_dir>
NMAKE : U1234: ‘SXS_BUILD’ (c:\winddk\6000\bin\makefile.def) Must specify SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT.
warning You may not define MC_WINMETAPATH.

I tried specifying SXS_ASSEMBLY_LANGUAGE to 0409 (after reading Makefile.new comments, this means English US). It then gave me another error:

NMAKE : U1234: ‘SXS_BUILD’ (c:\winddk\6000\bin\makefile.def) You may not specify
SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT without SXS_ASSEMBLY
_NAME or SXS_SHORT_ASSEMBLY_NAME.

So I specified SXS_ASSEMBLY_NAME to Microsoft.Windows.Test.Blah (don’t ask me why).
It still didn’t compile? WTH?? Now I am at my wit’s end to get this thing going?
Any help would be highly appreciated!</my_dir>

xxxxx@intel.com wrote:

Is there any way to turn off SXS_BUILD in WDK?
I downloaded Windows Driver Kit (WDK 6000) and tried to compile a static library that would be used by my driver. It gave me a couple of warnings and then some errors.

c:\winddk\6000\bin\makefile.new(885) : warning U4006: special macro undefined :
‘$(@B).def’
c:\winddk\6000\bin\makefile.new(885) : warning U4006: special macro undefined :
‘$(@B).def’
_NT_TARGET_VERSION SET TO WINXP
errors in directory <my_dir>
> NMAKE : U1234: ‘SXS_BUILD’ (c:\winddk\6000\bin\makefile.def) Must specify SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT.
> warning You may not define MC_WINMETAPATH.
>

You need to post your entire “sources” file. You have done something
wrong. Did you specify TARGETTYPE=LIBRARY? Are you using the DDK’s
build environment?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.</my_dir>

Did you look at the \6000\print\monitors\localui sample? It seems to deal with the problems you are reporting.

> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-305599-
> xxxxx@lists.osr.com] On Behalf Of xxxxx@intel.com
> Sent: Friday, November 09, 2007 1:28 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] WDK SXS_BUILD
>
> Hi,
> Happy Diwali everyone!
>
> Is there any way to turn off SXS_BUILD in WDK?
> I downloaded Windows Driver Kit (WDK 6000) and tried to compile a
> static library that would be used by my driver. It gave me a couple of
> warnings and then some errors.
>
> c:\winddk\6000\bin\makefile.new(885) : warning U4006: special macro
> undefined :
> ‘$(@B).def’
> c:\winddk\6000\bin\makefile.new(885) : warning U4006: special macro
> undefined :
> ‘$(@B).def’
> _NT_TARGET_VERSION SET TO WINXP
> errors in directory <my_dir>
> NMAKE : U1234: ‘SXS_BUILD’ (c:\winddk\6000\bin\makefile.def) Must
> specify SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT.
> warning You may not define MC_WINMETAPATH.
>
> I tried specifying SXS_ASSEMBLY_LANGUAGE to 0409 (after reading
> Makefile.new comments, this means English US). It then gave me another
> error:
>
> NMAKE : U1234: ‘SXS_BUILD’ (c:\winddk\6000\bin\makefile.def) You may
> not specify
> SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT without
> SXS_ASSEMBLY
> _NAME or SXS_SHORT_ASSEMBLY_NAME.
>
> So I specified SXS_ASSEMBLY_NAME to Microsoft.Windows.Test.Blah (don’t
> ask me why).
> It still didn’t compile? WTH?? Now I am at my wit’s end to get this
> thing going?
> Any help would be highly appreciated!
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer</my_dir>