Moderator: Coders of Rage
Yeah, that's right.starpause wrote:-) where am i stealing from? what file exactly? i guessed and grabbed SDLMain.m and SDLMain.h from a template.
Every library is distributed as some form of a binary with header files. These are what you downloaded from the SDL website. SDL.h is one of the files.starpause wrote:-) same question as step two, where are these from and how do i do it?
avansc wrote:I just tried the templates with Xcode4 for shits and giggles, and yeah they are broken, but you only have to change like 2 things.
starpause wrote:Guys, thanks for the fast response!avansc wrote:I just tried the templates with Xcode4 for shits and giggles, and yeah they are broken, but you only have to change like 2 things.
Could you point the things out or share your fixed templates? It's not obvious to me what needs to be changed but I'm glad you were able to iron out the issues.
I'm aware of the minimal template borealkiss made but when I load it up I don't see any references to SDL in the application (no SDL.framework included etc). Am I missing something obvious?
My issue with templates isn't with when they just work, but when they are broken it's more effort to fix them. If there was a clear step-by-step for doing a project then it's easier to identify which steps are broken. Hard to say which method boils down to less work in the big picture.
Back to FTT w/ GyroVorbis, I copied the Headers folder from the SDL runtime DMG into my project and linked to the SDL.h file, that got rid of many errors. I then changed #import <Cocoa/Cocoa.h> in SDLMain.h to <Foundation/Foundation.h> (based on http://stackoverflow.com/questions/7455 ... oa-cocoa-h). Down to 12 issues in just the SDLMain.m file ... first one is SDLMain.m:17: error: cannot find interface declaration for 'NSApplication'
Is this because I copied the SDLMain.m file for a desktop application into an iPhone project? Ideas on work arounds?
Users browsing this forum: Bing [Bot] and 2 guests