Let's suppose that I enter Xcode, and select File>New Project...>Cocoa Application. I'll call this new project StupidTest. Now, once the project window opens up, I can select Build>Build and Run, and the project will build and run, creating a nice blank window.
Now, lets suppose that I have a library, libStupid.so, or libStupid.dylib, which I'd like to add to the project (the C++ method doSomethingStupid() is in this library and I'd like to use it in my program).
The question is this: How do I add the library, which resides at $STUPIDPATH/lib on whatever computer will be running my program (and on the computer which is building the project), to my project? Please describe both scenarios: how do I add it so that it gets copied into the .app bundle; and also how do I add it to my project so that the binary will have to go find it at $STUPIDPATH/lib at runtime (so no copying into the bundle).
This question comes from several weeks worth of fighting with Qt, ROOT, and some stupid errors. The conclusion I've come to is that I really don't freaking know how to add shared libraries, so PLEASE HELP!
Thanks
Paul