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 - Linking SDL2_ttf on iOS platform
Summary: Linking SDL2_ttf on iOS platform
Status: RESOLVED FIXED
Alias: None
Product: SDL_ttf
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.11
Hardware: iPhone/iPod touch iOS 6
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-03 04:08 UTC by Jeffrey Carpenter
Modified: 2014-06-24 09:04 UTC (History)
2 users (show)

See Also:


Attachments
SDL2_ttf fix for using on iOS platform (2.22 KB, text/plain)
2014-01-03 04:08 UTC, Jeffrey Carpenter
Details

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