oksunp / vvopensource

Automatically exported from code.google.com/p/vvopensource
0 stars 0 forks source link

newbie question: how to build the framework in Xcode? #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please forgive my lack of understanding, I've searched around a bit but I can't 
find any guides or instructions.

How do I build the vvopensource framework in Xcode?  Specifically, what do I do 
with the project.pbxproj file?  This is not the .xcodeproj extension that I'm 
familiar with.  I have tried importing all the .m and .h files from the vvMIDI 
framework source into an Xcode project, but I will not build successfully.  
I've also tried opening the project.pbxproj file with Xcode, but it opens as 
one single file filled with text, not a project.

Like I mentioned, I'm not very familiar with objective-c or Xcode.  I'm trying 
to send midi information from some code I wrote to the IAC driver and I have 
been unsuccessful using the CoreMIDI framework.  

Original issue reported on code.google.com by michael....@gmail.com on 19 Apr 2011 at 5:07

GoogleCodeExporter commented 8 years ago
I had a little trouble with this too - from 
http://code.google.com/p/vvopensource/

How to use VVOSC in your iPhone application
To the best of my knowledge, Apple doesn't allow you to use external libraries 
in iPhone apps, so the workaround is to compile VVOSC as a static library, 
install it on your dev machine as an SDK, and compile against it. This entire 
process has been automated: here's all you need to do:

Open the VVOpenSource project in XCode
In XCode, make "Build/Install VVOSC iPhone SDK" your active target. Make sure 
the build mode is set to "Release", and build the target. Each of the static 
libraries (iPhone, iPhone sim, and OS X) executes a shellscript which installs 
it as an SDK in ~/Library/SDKs/VVOSC.
When it's done building, quit XCode, and then open your application's XCode 
project.
Double-click your application/target in the left-hand list in your project 
window (or select it and get its info). Click on the "Build" tab.
Find the "Additional SDKs" option, and add 
"$HOME/Library/SDKs/VVOSC/$(PLATFORM_NAME).sdk"
Still in the "Additional SDKs" option, add 
"$HOME/Library/SDKs/VVBasics/$(PLATFORM_NAME).sdk"
Find the "Other Linker Flags" option, and add "-ObjC -lVVOSC -lVVBasics"
That's it- you're done now. You can import/include objects from the VVOSC 
framework in your source code as you normally would.

Original comment by doctorha...@gmail.com on 17 Aug 2011 at 8:30

GoogleCodeExporter commented 8 years ago

Original comment by raycut...@gmail.com on 31 Aug 2011 at 3:54