From 39e3752e0b7c8d7fe968995166a9ec07865582e4 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 10 Jul 2015 23:16:24 +0200 Subject: [PATCH] added compile instructions --- platforms/ios/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/platforms/ios/README.md b/platforms/ios/README.md index 771d038bf..258c284bb 100644 --- a/platforms/ios/README.md +++ b/platforms/ios/README.md @@ -14,3 +14,32 @@ Note: As BTstack directly uses the Bluetooth hardware, the iOS Bluetooth is auto Please visit the [project page at GitHub](https://github.com/bluekitchen/btstack/) for technical information and check the platform/ios subfolder. +== How to develop == + +To write BTstack-based applications, you don't need to compile the BTstack Cydia package. You can just install it on your +JB iOS device and copy /usr/lib/libBTstack.dylib into your project and add btstack/include to your project includes. +See btstack/platforms/example/WiiMoteOpenGLDemo for a Xcode-base example. In general, I highly recommend to use theos +to create apps & daemons for JB iOS devices instead of using Xcode. + +== Compile Instructions == + +Install the following tools: +- Xcode 6.4 as /Applications/Xcode.app +- Xcode 4.4.1 as /Applications/Xcode-4.4.1.app/ +- rpetrich's theos fork with "lippoplastic" support from https://github.com/rpetrich/theos + +Set the $THEOS environment variable to the location of theos, e.g. like: + + export THEOS=/Projects/theos + +Go to btstack/platforms/ios and run make + + cd btstack + make package + +If everything went right, you'll end up with a .deb package that you can install via: + + make install + + +