libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.11k stars 1.71k forks source link

iOS compilation fails #10206

Open ronaaron opened 1 month ago

ronaaron commented 1 month ago

Apart from the previous configure issue, if I manually jigger the SDL_config.h, I get an error in video/uikit/SDL_uikitopenglview.h line 51: "error: cannot synthesize weak property in file using manual reference counting"

Perhaps because I'm using an older XCode (12.5.1) on this machine.

slime73 commented 1 month ago

You should use the Xcode project, you can do so from the command line via xcodebuild .

ronaaron commented 1 month ago

OK, tried it with XCode 15, and I get additional problems compiling via configure:

...src/SDL-release-2.30.5/src/video/uikit/SDL_uikitmodes.m:500:9: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
    int i, j;
ronaaron commented 1 month ago

You should use the Xcode project, you can do so from the command line via xcodebuild .

My entire toolset is based around clang/gcc cli tools, so...