Where are the headers for libbz2.dylib for iPhone?
The headers for libbz2.dylib on iPhone are missing or in a less obvious place. I searched for bzlib.h, bz2lib.h, bz2.h, etc. Grepped for templates and didn't find anything - are they included in the SDK or do I just need to pull the header from the main libbz2 distribution and use that instead?
a source to share
Since the library is clearly available on the device, the title should indeed be in the SDK, but it doesn't seem to be the case. I would use the one that was packaged for the simulator, as it will most likely be the same as on the device:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/usr/include/bzlib.h
Then open Radar to ask if the spread will be fixed.
a source to share
From the site below, download 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
While this works, I was able to read the contents of the .bz2 file with BZ2_bzReadOpen and then BZ2_bzRead functions.
a source to share