wdk1703+vs2015编译的诡异问题
最近将wdk升级到1703(10.0.15063.0)版本,编译一个新建的minifiter项目居然出现了失败
提示错误为 WindowsDriver.common.targets(460,5): error MSB6004: The specified task executable location "\stampinf.exe" is invalid.
解决如下:
Install the latest hardware development tools to build, test and deploy drivers; test and measure your hardware running Windows; and customize, assess, and deploy Windows 10 on your hardware.
WDK:https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit
WinDbg: https://developer.microsoft.com/en-us/windows/hardware/download-windbg
HLK: https://developer.microsoft.com/en-us/windows/hardware/windows-hardware-lab-kit
ADK: https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit
Known issues for the WDK:
Unable to build a project targeting a SDK version older than 1709 (version 10.0.16299.0) with WDK 1709 (build 16299)
One of following errors is reported:
C:\Program Files (x86)\Windows
Kits\10\build\WindowsDriver.common.targets(460,5): error MSB6004: The
specified task executable location "\stampinf.exe" is invalid.
C:\Program Files (x86)\Windows
Kits\10\build\WindowsDriver.common.targets(780,5): error MSB6004: The
specified task executable location "\tracewpp.exe" is invalid.
Workaround: Add to your project .vcxproj file the following lines after the first one:
<PropertyGroup>
<WDKBinRoot Condition="'$(WDKBinRoot)' == ''">$(WindowsSdkDir)bin</WDKBinRoot>
<WDKBinRoot_x86>$(WDKBinRoot)\x86</WDKBinRoot_x86>
<WDKBinRoot_x64>$(WDKBinRoot)\x64</WDKBinRoot_x64>
</PropertyGroup>
You can also add these lines to WindowsDriver.Default.props or
WindowsDriver.Shared.props (located under <Windows 10 Kits
installation root>\build, by default “%ProgramFiles(x86)%\Windows
Kits\10\build” or “%ProgramFiles(x86)%\Windows Kits\10\build”)
to allow all projects to build successfully without any modifications.
Unable to build projects under VS2015 after installing WDK 1709 (version 16299) on a machine with WDK 1607 (build 14393)
One of following errors is reported:
C:\Program Files (x86)\Windows
Kits\10\build\WindowsDriver.common.targets(476,9): error MSB4064: The
"ProviderName" parameter is not supported by the "StampInf" task. Verify
the parameter exists on the task, and it is a settable public
instance property.
C:\Program Files (x86)\Windows
Kits\10\build\WindowsDriver.common.targets(1526,9): error MSB4064: The
"KitVersion" parameter is not supported by the "Telemetry" task. Verify
the parameter exists on the task, and it is a settable public
instance property.
Workaround: As WDK has moved to provide
compatibility with VS2017, a few file updates required by the VS2015
add-on are not being bundled by the latest version of WDK. WDK 1703
(version 15063) includes these updates, and therefore
installing this version will resolve the issue. If your project targets
an older version of WDK, you might also require doing the workaround
previously provided.
在WindowsDriver.Shared.props增加上述配置,编译解决!
wdk1703+vs2015编译的诡异问题的更多相关文章
- VS2015编译boost1.62
VS2015编译boost1.62 Boost库是一个可移植.提供源代码的C++库,作为标准库的后备,是C++标准化进程的开发引擎之一. Boost库由C++标准委员会库工作组成员发起,其中有些内容有 ...
- VS2015编译Qt5.7.0生成支持XP的静态库(很不错)
一.编译工具 1.VS2015 编译Qt5.7.0的所需VS版本:Visual Studio 2013 (Update1)或Visual Studio 2015 (Update2).因为Update补 ...
- Win7 下用 VS2015 编译最新 openssl(1.0.2j)包含32、64位debug和release版本的dll、lib(8个版本)
Win7 64位系统下通过VS2015编译好的最新的OpenSSL(1.0.2j)所有八个版本的链接库, 包含以下八个版本: 1.32位.debug版LIB: 2.32位.release版LIB: 3 ...
- 用VS2015编译sqlcipher
简介 SQLite,是一款轻型的数据库,是遵守ACID的关系型数据库管理系统,它包含在一个相对小的C库中.它是D.RichardHipp建立的公有领域项目.它的设计目标是嵌入式的,而且目前已经在很多嵌 ...
- 实践详细篇-Windows下使用VS2015编译的Caffe训练mnist数据集
上一篇记录的是学习caffe前的环境准备以及如何创建好自己需要的caffe版本.这一篇记录的是如何使用编译好的caffe做训练mnist数据集,步骤编号延用上一篇 <实践详细篇-Windows下 ...
- VS2015编译FFMPEG,修改FFmpeg缓冲区大小解决实时流解码丢包问题,FFmpeg错误rtsp流地址卡死的问题,设置超时
之前尝试过很多网上利用Windows编译FFmpeg的文章,都没有办法编译X64位的FFmpeg,有些教程中有专门提到编译64位的FFmpeg需要下载mingw-w64-install,但是编译的过程 ...
- vs2015编译caffe
有些时候,需要在python3的环境下import caffe,需要用vs2015在python3的环境下,编译pycaffe. microsoft的windows版本的caffe,依赖的库Nuget ...
- 使用VS2015编译xlslib库
环境: win7_x64,VS2015 开始: 一.下载xlslib库 xlslib-package-2.5.0.zip 解压到一个指定目录,如E:\library\xlslib-package-2. ...
- [转][JSBSim]使用VS2015编译JSBSim
转自csdn原文:https://blog.csdn.net/yu_lei_/article/details/81463187 请大家去看原文,原文有图片和资源,本文仅供本人参考 权威参考:http: ...
随机推荐
- listview 点击时间被拦截
记录下自己所犯的错误,在写ListView的点击事件时OnItemClickListener,onItemClick方法没有执行,导致ListView条目点击事件失效,检查发现百度上有很多不同的答案, ...
- shiro注解
shiro注解权限控制-5个权限注解 RequiresAuthentication: 使用该注解标注的类,实例,方法在访问或调用时,当前Subject必须在当前session中已经过认证. Requi ...
- 学习笔记DL001:数学符号、深度学习的概念
数学符号. 数和数组.
- 【Jest】笔记二:Matchers匹配器
一.前言 什么是匹配器? 我们可以把匹配器看成,testng断言,这么理解就可以了 二.常用的匹配器 test('two plus two is four', () => { expect(2 ...
- 交换排序-C#实现
交换排序包括:冒泡排序和快速排序 具体代码如下: 冒泡排序: /// <summary> /// 冒泡排序 /// 稳定性:稳定 /// 时间复杂度:O(n2) /// </summ ...
- 一键安装Davinci
官网:https://edp963.github.io/davinci/index.html 下载地址:https://github.com/edp963/davinci 环境:Centos7 ...
- 记一次node进程无法kill 问题
起因 开发反馈测试环境某 node 进程使用 pm2 log 查看日志提示端口冲突,pm2 restart 重启进程问题依旧,但该服务可正常访问. 处理过程: 访问该服务 URL 业务正常,查看 Ng ...
- DevExpress中GridControl的使用笔记(转)
转自:https://www.jianshu.com/p/badc1d2f0841 注:练习例子为: DxApplication1 -> XtraForm1 , 例子上传到本博中 2019.4. ...
- python中使用 C 类型的数组以及ctypes 的用法
Python 在 ctypes 中为我们提供了类似C语言的数据类型, 它的用途(我理解的)可能是: (1) 与 其他语言(如 C.Delphi 等)写的动态连接库DLL 进行交换数据,因为 pytho ...
- 关于library cache lock和row cache lock产生的常见原因
这两个等待事件其实很少出现在top5列表中,一般都没什么印象,在此整理记录以便以后查阅. 常见的library cache lock产生的原因在<高级OWI与Oracle性能调查>这本书和 ...