VS2015 build kmdf for Window 8.1

来源:互联网 发布:ar涂色 源码 编辑:程序博客网 时间:2024/06/12 23:27
It happen error on deploy the driver to target Windows 8.1.  the "Device Manager" shows a bad device, even VS have successfully deploy the kmdf driver.

Following link answer this question.

Error building sample driver: An SDK corresponding to WDK version '8.1' was not found
link: http://stackoverflow.com/questions/31981810/error-building-sample-driver-an-sdk-corresponding-to-wdk-version-8-1-was-not/32103331

in this case, you may missed No.3.

Check following points:

  1. Install Visual Studio 2015
  2. Install Visual C++ (Not installed by default)
  3. Install Windows SDK for Windows 10 (Not installed by default)
  4. Install WDK 10 (Download separately)
  5. Upgrade project from WDK 8.1 (for more detail: https://msdn.microsoft.com/en-us/library/windows/hardware/mt270257%28v=vs.85%29.aspx )

Currently, Visual Studio 2015 supports WDK 10. Visual Studio 2013 supports WDK 8.1. In my environment, Visual Studio 2015 may not support WDK 8.1. When build in WindowsUserModeDriver8.1 with VS2015, an error was occurred: prop is not found.

WDK 10 supports build drivers for Windows 10 / 8.1 / 8 (/ 7?). (see also:https://msdn.microsoft.com/en-US/library/windows/hardware/dn914754%28v=vs.85%29.aspx )

To build Windows 8.1 driver, follow below.

  1. Open project properties
  2. Navigate to Configuration Properties > General
  3. Check: Platform Toolset Windows****ModeDriver10.0
  4. Navigate to Configuration Properties > Driver settings
  5. Check: Target OS Version: Windows 8.1
  6. Check: Target Platform: Desktop (Default: Universal)
0 0
原创粉丝点击