We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4919

Summary: iOS cmake build fails
Product: SDL Reporter: daegon.dhsk
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 Keywords: target-2.0.14
Version: don't know   
Hardware: iPhone/iPod touch   
OS: iOS (All)   

Description daegon.dhsk 2019-12-26 23:08:38 UTC
Hi, I'm seeing failed builds for iOS using the cmake build. I was recommended using the toolchain here (https://github.com/leetal/ios-cmake), but to no avail.

I get errors along the lines of:

SDL_rwops.c:386:9: error: implicit declaration of function 'fseeko64' is invalid in C99

if (fseek(context->hidden.stdio.fp, (fseek_off_t)offset, stdiowhence) == 0 {

SDL_rwops.c:313:17: note: expanded from macro 'fseek'
#define fseek fseeko64



I'm using the SDL github mirror here: https://github.com/SDL-mirror/SDL
Comment 1 Ryan C. Gordon 2020-04-13 22:16:49 UTC
I just put a patch in revision control to fix the fseeko64 thing, so I think this bug can also be resolved. Please reopen if this is still broken for you!

--ryan.