Building Issues in UMDF samples

Dear Team,

The following message pops up while building any of src-umdf samples:

BUILDMSG: Warning : The sample d:\winddk\6000\src\umdf\usb\fx2_driver\final
is
not valid for the current OS target.

No sources are builded in both kmdf-1.5 and 1.7 versions. My OS is Windows
XP with sp2.
I tired by changing _NT_TARGET_VERSION value in the source file. No matter
what the value is assigned (by referring to
http://msdn.microsoft.com/en-us/library/aa906296.aspx), the same error
continues.

The sources are building normally in windows vista and windows server 2008
build environment.
But I need to load the sample on xp machine.

Regards.

Read ‘src\umdf\readme.htm.’

Good luck,

mm

Bhaskar wrote:

Dear Team,

The following message pops up while building any of src-umdf samples:

BUILDMSG: Warning : The sample
d:\winddk\6000\src\umdf\usb\fx2_driver\final is
not valid for the current OS target.

No sources are builded in both kmdf-1.5 and 1.7 versions. My OS is
Windows XP with sp2.
I tired by changing _NT_TARGET_VERSION value in the source file. No
matter what the value is assigned (by referring to
http://msdn.microsoft.com/en-us/library/aa906296.aspx), the same error
continues.

The sources are building normally in windows vista and windows server
2008 build environment.
But I need to load the sample on xp machine.

Regards.

Can you please check the build log - where is the failure?

Or you can send a build log to wdkteam @ microsoft.com

Thanks,
Tanya

xxxxx@microsoft.com wrote:

Can you please check the build log - where is the failure?

Or you can send a build log to wdkteam @ microsoft.com

I don’t think that’s really necessary. He’s trying to build a UMDF
sample in the XP build environment, and as Martin correctly pointed out,
that’s not supported. You have to build in the Vista environment, even
if you are building for XP.

That kind of violates the rule about building for the least common
denominator, but there is it. I would make a comment about “the
exception proving the rule,” but I’m sure that would devolve into a
tedious discussion about what that old adage actually means…


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Please try the newest WDK win7 beta release, you should be able to build this sample under windows xp.

When we started UMDF we didn’t have any XP support planned at all. XP support came along later (thank goodness) but by then we didn’t want to perturb what we had working in the WDK.

There’s something strange about using the XP compatibility build environment to compile for a technology which didn’t exist for XP.

A better error message would have been nice though :slight_smile:

-p

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, January 16, 2009 10:13 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Building Issues in UMDF samples

xxxxx@microsoft.com wrote:

Can you please check the build log - where is the failure?

Or you can send a build log to wdkteam @ microsoft.com

I don’t think that’s really necessary. He’s trying to build a UMDF
sample in the XP build environment, and as Martin correctly pointed out,
that’s not supported. You have to build in the Vista environment, even
if you are building for XP.

That kind of violates the rule about building for the least common
denominator, but there is it. I would make a comment about “the
exception proving the rule,” but I’m sure that would devolve into a
tedious discussion about what that old adage actually means…


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


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

Thanks for the responses. src-umdf-readme says it all. I builded in vista
environment, loaded and able to debug the driver using visual studio ide.

This is the mistake what actually happened.

I am using wdk 6000 build with kmdf 1.5. Before posting, I builded the
driver in vista environment. When I try to load the driver, my dllmain
never got invoked. 6000 release notes clearly states the workaround for
umdf drivers like adding winusb coinstaller sections in inf file, etc.

Last year I developed the same with 6001 build with kmdf 1.7. The above
workaround was included in the inf file generated there. So there was no
need to modify anything.

This time, after building in vista env, since my dllmain never invoked, I
posted to the list. After seeing setupapi log, I realised winusb is missing
and added the required sections as mentioned in the release notes. Now the
driver gets loaded.

Regards.

On 1/17/09, Peter Wieland wrote:
>
> When we started UMDF we didn’t have any XP support planned at all. XP
> support came along later (thank goodness) but by then we didn’t want to
> perturb what we had working in the WDK.
>
> There’s something strange about using the XP compatibility build
> environment to compile for a technology which didn’t exist for XP.
>
> A better error message would have been nice though :slight_smile:
>
> -p
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of Tim Roberts
> Sent: Friday, January 16, 2009 10:13 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Building Issues in UMDF samples
>
> xxxxx@microsoft.com wrote:
> > Can you please check the build log - where is the failure?
> >
> > Or you can send a build log to wdkteam @ microsoft.com
> >
>
> I don’t think that’s really necessary. He’s trying to build a UMDF
> sample in the XP build environment, and as Martin correctly pointed out,
> that’s not supported. You have to build in the Vista environment, even
> if you are building for XP.
>
> That kind of violates the rule about building for the least common
> denominator, but there is it. I would make a comment about “the
> exception proving the rule,” but I’m sure that would devolve into a
> tedious discussion about what that old adage actually means…
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> 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
>
>
> —
> 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
>