Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to build SDL libs on IOS #1274

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 1 comment
Closed

Script to build SDL libs on IOS #1274

SDLBugzilla opened this issue Feb 10, 2021 · 1 comment

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.1
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2013-12-13 11:16:27 +0000, Sylvain wrote:

Created attachment 1496
script : ios build libs

Hello,

Here is a basic script to automatically build the SDL library and the satellite libs for IOS, configuration Debug/Release of Device/Simulator.

It expects the directory SDL/SDL_image/ttf/mixer in $HOME/release/Release_SDL_IOS
and install the libs in $HOME/release/Release_SDL_IOS/SDL/{Debug,Release}-iphone{os,simulator}/

It saves me one hour each time I want to update to latest SDL version !

On 2015-09-21 12:56:11 +0000, Sylvain wrote:

Created attachment 2268
script to build SDL libs for IOS

This is an update of the previous script, so that it builds for arm64 and armv7 which are the architectures needed to publish on the AppStore.

On 2015-09-21 12:59:34 +0000, Sylvain wrote:

Created attachment 2269
script to build SDL libs for OSTV

Then, here's the same kind of script to build SDL libs for AppleTV / OSTV.

But, currently:

  • you need Xcode-beta 7.1 (installed in /Applications/Xcode-beta)
  • SDL does not compile ... (no CoreMotion framework, some define are forbidden compared to IOS, ...)

On 2015-10-23 16:17:44 +0000, Sylvain wrote:

Created attachment 2289
script to build SDL libs for IOS

Update for xcode 7.1

On 2015-10-23 16:18:32 +0000, Sylvain wrote:

Created attachment 2290
2269: script to build SDL libs for OSTV

Update for xcode 7.1

On 2015-10-23 16:19:57 +0000, Sylvain wrote:

I have added an option "-fembed-bitcode" which is now required to publish on App Store. That is to to embed bitcode.

On 2016-12-02 21:53:57 +0000, philhassey wrote:

This was very helpful.

I found that I had to add "i386 x86_64" to SDL > Build Settings > Valid Architectures > to make proper simulator compatible builds for Xcode 8.1.

I added this line

lipo -create ./Release-iphoneos/libSDL2.a ./Release-iphonesimulator/libSDL2.a -output ./libSDL2.a

To create a universal (device and simulator) library.

On 2018-01-08 08:30:21 +0000, Sylvain wrote:

Created attachment 3125
script to build SDL libs for IOS

Updating the script

On 2020-08-23 19:57:06 +0000, Sylvain wrote:

Created attachment 4444
script to build SDL libs for IOS

Updating the script

@1bsyl
Copy link
Contributor

1bsyl commented Jun 2, 2021

close, to re-create without unformated history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants