linjing
驱动小牛
驱动小牛
  • 注册日期2001-06-13
  • 最后登录2008-12-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2023回复:6

各位大虾,小菜鸟KernelDriver的困惑

楼主#
更多 发布于:2001-08-14 13:11
我用windriver做了一个监听ps/2鼠标中断的驱动程序,用核心模式生成代码,在vc6.0下编译就出了以下这些错误,希望各位指点迷经,小弟不慎感激.
--------------------Configuration: ps2 - Win32 Debug--------------------
C:\KernelDriver\include\windrvr_int_thread.h(73): Could not find the file pthread.h.
C:\KernelDriver\include\kdstdlib.h(23): Could not find the file linux/config.h.
C:\KernelDriver\include\kdstdlib.h(28): Could not find the file linux/modversions.h.
C:\KernelDriver\include\windrvr.h(137): Could not find the file linux/types.h.
C:\KernelDriver\include\windrvr.h(138): Could not find the file linux/string.h.
C:\KernelDriver\include\windrvr.h(141): Could not find the file unistd.h.
C:\KernelDriver\include\windrvr.h(143): Could not find the file sys/ioctl.h.
C:\KernelDriver\include\windrvr.h(144): Could not find the file unistd.h.
C:\KernelDriver\include\windrvr.h(146): Could not find the file unistd.h.
C:\KernelDriver\include\windrvr.h(149): Could not find the file vxWorks.h.
C:\KernelDriver\include\windrvr.h(152): Could not find the file memLib.h.
C:\KernelDriver\include\windrvr.h(154): Could not find the file taskLib.h.
C:\KernelDriver\include\windrvr.h(155): Could not find the file ioLib.h.
C:\KernelDriver\include\windrvr.h(156): Could not find the file iosLib.h.
C:\KernelDriver\include\windrvr.h(157): Could not find the file taskLib.h.
C:\KernelDriver\include\windrvr.h(158): Could not find the file semLib.h.
C:\KernelDriver\include\windrvr.h(159): Could not find the file timers.h.
C:\KernelDriver\include\windrvr.h(172): Could not find the file os2.h.
C:\KernelDriver\include\kdstdlib.h(23): Could not find the file linux/config.h.
C:\KernelDriver\include\kdstdlib.h(28): Could not find the file linux/modversions.h.
C:\KernelDriver\include\kd.h(33): Could not find the file wdm.h.
C:\KernelDriver\include\kd.h(35): Could not find the file ntddk.h.
C:\KernelDriver\include\kd.h(45): Could not find the file basedef.h.
C:\KernelDriver\include\kd.h(46): Could not find the file vmm.h.
C:\KernelDriver\include\kd.h(47): Could not find the file debug.h.
C:\KernelDriver\include\kd.h(49): Could not find the file vmmreg.h.
C:\KernelDriver\include\kd.h(51): Could not find the file vxdwraps.h.
C:\KernelDriver\include\kd.h(52): Could not find the file vwin32.h.
C:\KernelDriver\include\kd.h(53): Could not find the file vpicd.h.
C:\KernelDriver\include\kd.h(54): Could not find the file vxdldr.h.
C:\KernelDriver\include\kd.h(55): Could not find the file ndis.h.
C:\KernelDriver\include\kd.h(56): Could not find the file vtd.h.
C:\KernelDriver\include\kd.h(58): Could not find the file regdef.h.
C:\KernelDriver\include\windrvr.h(137): Could not find the file linux/types.h.
C:\KernelDriver\include\windrvr.h(138): Could not find the file linux/string.h.
C:\KernelDriver\include\windrvr.h(141): Could not find the file unistd.h.
C:\KernelDriver\include\windrvr.h(143): Could not find the file sys/ioctl.h.
C:\KernelDriver\include\windrvr.h(144): Could not find the file unistd.h.
C:\KernelDriver\include\windrvr.h(146): Could not find the file unistd.h.
C:\KernelDriver\include\windrvr.h(149): Could not find the file vxWorks.h.
C:\KernelDriver\include\windrvr.h(152): Could not find the file memLib.h.
C:\KernelDriver\include\windrvr.h(154): Could not find the file taskLib.h.
C:\KernelDriver\include\windrvr.h(155): Could not find the file ioLib.h.
C:\KernelDriver\include\windrvr.h(156): Could not find the file iosLib.h.
C:\KernelDriver\include\windrvr.h(157): Could not find the file taskLib.h.
C:\KernelDriver\include\windrvr.h(158): Could not find the file semLib.h.
C:\KernelDriver\include\windrvr.h(159): Could not find the file timers.h.
C:\KernelDriver\include\windrvr.h(172): Could not find the file os2.h.
Compiling...
ps2_driver.c
C:/KernelDriver/include/kd.h(45) : fatal error C1083: Cannot open include file: 'basedef.h': No such file or directory
ps2_lib.c
E:\WINDIRVER\ps2\lib\ps2_lib.h(33) : fatal error C1189: #error :  Please define ISA resources using the Wizard
Generating Code...
Error executing cl.exe.

ps2.vxd - 2 error(s), 0 warning(s)
The following environment variables were not found
$(DDKROOT)

粼粼
lcx119
禁止发言
禁止发言
  • 注册日期2001-07-12
  • 最后登录2018-05-29
  • 粉丝0
  • 关注0
  • 积分2330分
  • 威望11503点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
  • 社区居民
沙发#
发布于:2001-08-14 21:50
用户被禁言,该主题自动屏蔽!
南天灵
驱动牛犊
驱动牛犊
  • 注册日期2001-12-02
  • 最后登录2003-02-14
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-01-15 14:38
怎么会有那么多的Linux路径?
sirroom
驱动大牛
驱动大牛
  • 注册日期2001-07-30
  • 最后登录2018-05-29
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望11点
  • 贡献值1点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-01-15 20:18
linux?????????????
111
whutwx
驱动牛犊
驱动牛犊
  • 注册日期2001-08-06
  • 最后登录2003-03-30
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2002-01-18 09:19
我也遇到同样的问题,请问怎么解决,各位大虾!
whutwx
xjcxc
驱动牛犊
驱动牛犊
  • 注册日期2002-03-27
  • 最后登录2006-08-28
  • 粉丝0
  • 关注0
  • 积分30分
  • 威望3点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2002-03-30 01:10
但是看编译的错误,我觉得应该是环境变量没有设置对,一个是WinDriver本身的路径,另外一个是DDK的路径。
DDK的路径应有ddkroot指定
生成代码,WinDriver本身的路径有错误。
xjcxc
驱动牛犊
驱动牛犊
  • 注册日期2002-03-27
  • 最后登录2006-08-28
  • 粉丝0
  • 关注0
  • 积分30分
  • 威望3点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2002-03-30 01:14
DDKROOT 变量可autoexec.bat中设定如:
DDKROOT=C:\\98DDK :)
游客

返回顶部