vvopensource icon indicating copy to clipboard operation
vvopensource copied to clipboard

iOS compatibility for VVMIDI framework

Open Krxtopher opened this issue 11 years ago • 1 comments

Is there a way to use the VVMIDI framework in an iOS app? What modifications or special steps might I need to follow to make this work? (Assume that I've compiled and installed VVOSC and VVBasics as iOS SDKs.)

Krxtopher avatar Aug 03 '13 19:08 Krxtopher

"Is there a way to use the VVMIDI framework in an iOS app?"

probably, but i've never tried so the source for VVMIDI may need to be modified a bit (specifically, i assume there'd be a problem somewhere with a header file that doesn't exist in iOS or vice versa). beyond that, i've never done anything with MIDI on iOS so i can't say for sure what sort of problems you'd run into.

take a look at the list targets in the project- see how VVBasics and VVOSC each have three targets, one for the iOS sim, one for iOS dev, and one for os x? VVMIDI only has one (for os x): the other two targets for this framework would have to be created and set up similarly to the sim/dev targets for the other frameworks (pay particular attention to the "Build Settings" and "Build Phases".

"gotchas":

  • use the "OTHER_CFLAGS" build setting to define "-DIPHONE" for the iOS SDKs. this lets you use the precompiler macro "#if IPHONE" in source code to include/exclude iOS-specific code and headers.
  • the SDK is actually assembled by the "./scripts/assembleSDK.sh", which needs to be the last "Build Phase"

mrRay avatar Aug 04 '13 09:08 mrRay