使用 Xcode Cocoa 应用程序创建设备驱动程序
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.
如果有人对此有想法,请提供一些提示.. 感谢您的重播
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.
If Any one having idea about this please give some tips..
Thanks For Your Replay
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,只有在您实现了驱动程序的代码并且构建成功后,运行 kextlibs 才会起作用。一旦您完成了这一步,在 XCode 中:
kextlibs
后跟一个空格。然后将这些库标识符和版本添加到 Info.plist 并重建。请注意,如果您希望 kext 在比您正在运行的系统更旧的 Mac OS X 版本上运行,则需要提供旧的库版本。 (最好是在最旧的受支持版本上运行 kextlibs)
Note that running kextlibs will only work once you have implemented the code for your driver, and it builds successfully. Once you have got that far, in XCode:
kextlibs
followed by a space.You then add those library identifiers and versions to the Info.plist and rebuild. Note that if you want the kext to work on older versions of Mac OS X than your running system, you'll need to supply older library versions. (ideally by running kextlibs on your oldest supported version)