2011-10-14 72 views
0
Hi Friends.. 
    I am try to create a Device driver Application In X-Code, From This Link:- http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptIOKit/iokit_tutorial.html I Got little bit Idea. Based on that I completed 

1)Create a New Project 
    2)Edit the Information Property List 
    3)Fill in the Header File 
    4)Implement the Driver’s Entry Points. 

    The Fifth Step is: **Add Library Declarations** 
    That mention like this . 
    At this stage of creating your driver, you need to find out what those libraries are. The best way to do so is to run the kextlibs tool on your built kext and copy its output into your kext’s Info.plist file. 

    But I a can't understand this lines,more over I can't fount $MyDriver/Build/Debug Folder. I opened Info.Plist file On Terminal I got Kext File . now I trying this in X-Code 4. 

设备驱动程序如果有这个想法的任何一个请给一些提示.. 谢谢你的重播创建和Xcode Cocoa应用程序

回答

0

需要注意的是,一旦你已经实施了运行的代码kextlibs只会工作你的驱动程序,并成功建立。一旦你得到那么远,在XCode中:

  • 建立自己的内核扩展
  • 在项目的文件树中,找到下的“产品”
  • 打开一个终端窗口中,键入kextlibs后跟一个空格的KEXT 。
  • 拖累Xcode中的kext并将其拖放到终端窗口
  • 按Enter键,几秒钟后,你应该得到像下面这样的一些输出:
 For all architectures: 
     com.apple.iokit.IOStorageFamily = 1.6.3 
     com.apple.kpi.bsd = 10.8 
     com.apple.kpi.iokit = 10.8 
     com.apple.kpi.libkern = 10.8 
     com.apple.kpi.mach = 10.8

然后添加那些库标识符和版本Info.plist和重建。请注意,如果您希望kext在比操作系统更早的Mac OS X版本上运行,则需要提供较旧的库版本。 (理想情况是通过在最旧的支持版本上运行kextlibs)

相关问题