genericptr
2016-10-06 08:14:39 UTC
I'm doing some tests with SDL now to see if it's viable but after getting it run on OS X I'm getting errors on iOS. I was able to get the test project in C working but my Free Pascal project is failing after building and running successfully in the Simulator.
The error I'm getting is from SDL_Init(SDL_INIT_VIDEO) returning -1 and SDL_GetError returning "Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?"
In the Xcode log I found this one warning which is interesting. Does anyone know why this one file is being problematic for the linker? The error message I'm getting isn't very helpful either and I'm not sure if it's related to this or not.
ld: warning: ObjC object file (/Developer/Projects/OpenGL-Sandbox/Sources/libSDL2.a(SDL_rwopsbundlesupport.o)) was compiled for iOS Simulator, but linking for MacOSX
The error I'm getting is from SDL_Init(SDL_INIT_VIDEO) returning -1 and SDL_GetError returning "Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?"
In the Xcode log I found this one warning which is interesting. Does anyone know why this one file is being problematic for the linker? The error message I'm getting isn't very helpful either and I'm not sure if it's related to this or not.
ld: warning: ObjC object file (/Developer/Projects/OpenGL-Sandbox/Sources/libSDL2.a(SDL_rwopsbundlesupport.o)) was compiled for iOS Simulator, but linking for MacOSX