在 Visual Studio 2013

问题描述

有一个驱动程序项目 https://github.com/Psypher9/VG-STC-Driver/tree/master/WinVgStc .

我想编译它。

我有:

  1. Windows 10 19041.1
  2. Visual Studio 2013 社区 12.0.40629.0
  3. 从此页面 https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk 安装:
  4. 更新了适用于 Windows 10 版本 2004 的 Windows SDK 10.0.19041.16385
  5. 更新了适用于 Windows 10 的 WDK,版本 2004

问题:

尝试构建,出错:

1>------ Build started: Project: WinVgStc,Configuration: Release x64 ------
1>  Device.c
1>c:\users\usr\downloads\winvgstc\winvgstc\driver.h(18): fatal error C1083: Cannot open include file: 'wdf.h': No such file or directory
1>  Driver.c
1>c:\users\usr\downloads\winvgstc\winvgstc\driver.h(18): fatal error C1083: Cannot open include file: 'wdf.h': No such file or directory
1>  Queue.c
1>c:\users\usr\downloads\winvgstc\winvgstc\driver.h(18): fatal error C1083: Cannot open include file: 'wdf.h': No such file or directory
1>  Generating Code...
========== Build: 0 succeeded,1 failed,0 up-to-date,0 skipped ==========

当我从 GitHub 下载这个项目时,第一个错误是没有用户模式驱动程序工具集。在项目属性中,我将其更改为 Visual Studio 2013 (v120)。然后我得到了上面的错误列表。

此时我没有上面列表中提到的 SDK 和 WDK,所以我下载了它。

重新启动 Visual Studio 后,我仍然有错误。此外,项目属性中仍然只有 2 个平台工具集变体:Visual Studio 2013 (v120)Visual Studio 2013 - Windows XP (v120_xp)

我应该怎么做才能在当前的 Visual Studio 上编译它?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...