iPhone 的 libbz2.dylib 的标头在哪里?
iPhone 上的 libbz2.dylib 标头丢失,或者包含在不太明显的位置。 我查找了 bzlib.h、bz2lib.h、bz2.h 等,查找了模式,但什么也没找到 - 它们是否包含在 SDK 中,或者我是否需要从主 libbz2 发行版中提取标头并用那个代替?
The headers for libbz2.dylib on the iPhone are missing, or contained in a less than obvious location. I've looked for bzlib.h, bz2lib.h, bz2.h, etc., grepped for patterns, and found nothing - are they included with the SDK, or do I need to just pull the header from the main libbz2 distro and use that instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于该库在设备上显然可用,因此标头确实应该位于 SDK 中,但似乎并非如此。 我会使用为模拟器打包的那个,因为这很可能与设备上的那个相同:
然后打开一个 Radar 情况下要求修复分配。
Since the library is clearly available on the device, the header really should be in the SDK, but it appears that it isn't. I'd use the one that's packaged for the Simulator, since this is most likely to be the same as the one on the device:
Then open a Radar case to ask that the distribution be fixed.
从下面的站点获取 bzlib-0.5.0.0.tar.gz 文件并将 cbits 目录中的文件(.h 和 .c)复制到您的 Xcode 项目。
http://hackage.haskell.org/package/bzlib
到目前为止,它似乎有效,我已成功使用函数 BZ2_bzReadOpen 和 BZ2_bzRead 读取 .bz2 文件的内容。
From the site below get the bzlib-0.5.0.0.tar.gz file and copy the files (.h and .c) inside the cbits directory to your Xcode project.
http://hackage.haskell.org/package/bzlib
So far it seems to work, I've managed to read the contents of a .bz2 file with the functions BZ2_bzReadOpen and then BZ2_bzRead.