I'm not sure what I'm doing wrong but I cannot get Boost recognized by Xcode. I recently got a Mac so I'm not used to the environment. :p I downloaded the latest boost and copied the boost folder from that into "/usr/local/include". I could not find "Edit Active Project" So I just edited the header search path in the Project Settings and Project Target instead.
I think everything else is fine though. Thanks. :]
BTW: how do you have the time to answer all of our annoying questions?
Project>Edit Active Target does the same as right-clicking the target in the list to the left and editing it there, and you should add /usr/local/include to the header search paths in both configurations (not .../boost itself). So, you should actually be fine. If you want you can upload the zipped project, though.
And hah, every answer means one other feature isn't implemented on that day :P ;)
/Developer/usr/include Test It compiles fine but now the GDB ( or something ) says it gets interrupted and GosuTest returns with a status or value of 5. Also the _dyld_dyld_fatal_error shows on a little bar above the code. The window doesn't show up. ( I'm using the basic code from setting up Gosu on OSX )
There is a difference between /usr/local. /usr gets mapped to the SDK in /Developer, /usr/local doesn't, so you should be fine if you put everything into /usr/local/include and use it from there…
And there should be a message about which dynamic library is missing. Which one is it? :)
[Session started at 2009-06-09 22:14:33 -0500.] dyld: Library not loaded: @executable_path/../Frameworks/Gosu.framework/Versions/A/Gosu Referenced from: /Users/brianpeppers/Documents/GosuTest/build/Debug/GosuTest.app/Contents/MacOS/GosuTest Reason: image not found
The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).
[Session started at 2009-06-09 22:14:44 -0500.] Loading program into debugger… GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin".tty /dev/ttys001 warning: Unable to read symbols for "@executable_path/../Frameworks/Gosu.framework/Versions/A/Gosu" (file not found). warning: Unable to read symbols from "Gosu" (not yet mapped into memory). Program loaded. sharedlibrary apply-load-rules all run [Switching to process 183 local thread 0x2d03] Running… dyld: Library not loaded: @executable_path/../Frameworks/Gosu.framework/Versions/A/Gosu Referenced from: /Users/brianpeppers/Documents/GosuTest/build/Debug/GosuTest.app/Contents/MacOS/GosuTest Reason: image not found (gdb)
Yeah..... dunno what this means. Only had Xcode for three days. ^^
Ah, ok, so it's Gosu itself that is missing. You have to set up the "Copy Files" build phase as outlined in the GettingStartedOnOsx wiki page. If you do this, building will copy Gosu.framework into the .app where it needs to be.
When I go to "New Build Phase" I drag the Gosu.Framework into the Path and I set the thingie above to Framework. However there is no "OK" button. I just press "X". Is that where I'm going wrong?
EDIT: When I do the above nothing branches out like your screen shot on the tutorial did. How you "OK" it?
No, in the Info window of the build phase you just tell it to point to "Frameworks". The text field is just in case you want to specify another path. Then you look up your target (not executable) in the left pane of Xcode, expand it and drag Gosu.framework on the Copy Files build phase.