驱动编译错误

psbeond 2020-09-24 03:05:23
环境:vs2017, win10 1909, WDK 1709,
编写第一个驱动,就出现下面的错误,
1>------ Build started: Project: FirstDriver, Configuration: Debug x64 ------
1>Building 'FirstDriver' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
1>C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(460,5): error MSB6004: The specified task executable location "bin\x86\stampinf.exe" is invalid.
1>Done building project "FirstDriver.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

按网上找的,增加
<PropertyGroup>
<WDKBinRoot Condition ="'$(WDKBinRoot)'==''"> $(WindowsSdkDir)bin </WDKBinRoot>
<WDKBinRoot_x86> $(WDKBinRoot)\x86</WDKBinRoot_x86>
<WDKBinRoot_x64> $(WDKBinRoot)\x64</WDKBinRoot_x64>
</PropertyGroup>

试了无效。求解决方案。谢谢。
...全文
291 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
孤客天涯 2020-09-30
  • 打赏
  • 举报
回复
psbeond 2020-09-24
  • 打赏
  • 举报
回复
解决了,换成vs2019,重新安装了SDK和WDK,SDK和WDK的版本要一致,参考: https://blog.csdn.net/psbeond/article/details/108780644
psbeond 2020-09-24
  • 打赏
  • 举报
回复
引用 1 楼 zgl7903 的回复:
VS2017+WDK10驱动编译与调试
链接不对,跳转不过去呀。
zgl7903 2020-09-24
  • 打赏
  • 举报
回复

2,644

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧