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 2333

Summary: Linking SDL2_ttf on iOS platform
Product: SDL_ttf Reporter: Jeffrey Carpenter <i8degrees>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 CC: i8degrees, vivaladav
Version: 2.0.11   
Hardware: iPhone/iPod touch   
OS: iOS 6   
Attachments: SDL2_ttf fix for using on iOS platform

Description Jeffrey Carpenter 2014-01-03 04:08:55 UTC
Created attachment 1511 [details]
SDL2_ttf fix for using on iOS platform

Linking to SDL2_ttf in an application fails -- said app dumps the terminal usage text of the apinames utility and then immediately exits. 

This is because of external/freetype/apinames.c being compiled into SDL2_ttf. Removing this file from compiling within the supplied iOS xcode project file fixes the problem for me.

Cheers!
Jeffrey Carpenter <i8degrees@gmail.com>
Comment 1 Davide Coppola 2014-06-23 09:10:45 UTC
confirmed in 2.0.12 and in mercurial.

A fix is straightforward and takes only few seconds, just remove apinames.c from the project.
Comment 2 Sam Lantinga 2014-06-24 09:04:54 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_ttf/rev/b4e2b0ac9723