Search code examples
objective-ciosberkeley-db

How can I use the Berkeley DB within an iOS application?


I would like to use the Berkeley DB within an iOS application, but I'm not sure how to go about this.

How do you integrate the Berkeley DB within an iOS project? How do you communicate with it via Objective-C?

Are there any tutorials or examples out there that might demonstrate how to do this?


Solution

  • The first thing to note is that the library is C++, not objective-c. This isn't an issue since objective-c can call C++. Also, there isn't much in the way of tutorials, but here is what you will need to do it yourself:

    Download

    API

    Everything you probably need to know to install is here

    The specific section on building it on an iOS device is here

    C++ Examples

    Calling C++ from Objective-C