Please help get the sample audio driver working.

JW 1 Reputation point
2020-09-16T14:01:18.413+00:00

I have been trying to set up my visual studio 2019 dev environment so I can build and learn how to modify the sample audio driver.
I've been following the instruction set found here:
https://video2.skills-academy.com/en-ca/windows-hardware/drivers/download-the-wdk

I've completed the following steps:

  1. Visual studio 2019
  2. Windows 10 SDK https://developer.microsoft.com/en-ca/windows/downloads/windows-10-sdk/
  3. install WDK https://video2.skills-academy.com/en-us/windows-hardware/drivers/download-the-wdk
  4. installed the github extension for visual studio.
  5. connected visual studio to github samples repo

I change the platform to be ARM64 (i'm running on a windows 10 pro machine, 64bit)

When I try to build the application I get the following error message:

https://video2.skills-academy.com/en-us/previous-versions/mt675232(v=vs.140)?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(MSB8020)%26rd%3Dtrue

I have tried to change / play around with the Platform. Here's what I have available as options under the "Platform Toolset" option:

  • Visual Studio 2019 (v142)
  • LLVM (clang-cl)
  • <inherit from parent or project defaults>

And under Windows SDK, these are the options I have:

  • 10.0 (latest installed version)
  • 10.0.19041.0
  • <inherit from parent or project defaults>

When I select <inherit from parent or project defaults> for both options, the system reverts to 10.0 for SDK version and Visual Studio 2019 for PlatformToolset.
Then the error I see when I build is:

Severity Code Description Project File Line Suppression State

Error MSB8020 The build tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found. To build using the WindowsKernelModeDriver10.0 build tools, please install WindowsKernelModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". TabletAudioSample (TabletAudioSample\TabletAudioSample) C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets 411

Any help would be appreciated.
I'm trying to build a virtual audio cable / driver for windows 10 ... and wanted to refer to this example for tips.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,869 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. EckiS 831 Reputation points
    2020-09-16T15:46:56.73+00:00

    are you sure you want to build for ARM architecture?
    I assume you want to build for x64.,

    0 comments No comments

  2. Dylan Zhu-MSFT 6,406 Reputation points
    2020-09-21T05:19:23.213+00:00

    Hi @JW ,

    According to your description, it seems that you environment lacks some components of WDK.

    Please check if the wdk extension has been installed in your visual studio:
    25878-image.png
    26009-image.png

    If not, please uninstall and re-install windows driver kit.

    And then, the "Platform Toolset" will be "WindowsKernelModeDriver10.0" instead of visual studio 2019(V142).
    26024-image.png

    Best Regards,
    Dylan

    0 comments No comments