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 - iOS cmake build fails
Summary: iOS cmake build fails
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: iPhone/iPod touch iOS (All)
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.14
Depends on:
Blocks:
 
Reported: 2019-12-26 23:08 UTC by daegon.dhsk
Modified: 2020-04-13 22:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.