How to build SDL2 dmg on Xcode 4.1?

Hi.

I’m trying to create a SDL2 dmg on my mac including the templates for
new ios projects. I can’t find any documentation on how to do this. Can
anyone please give me a few hints on how to do it?

Thanks a lot

Martin

Are you trying to package SDL2 as a framework and distribute it on a dmg?

As far as making a framework is concerned I’m not sure, just wade through
it until you get it down :stuck_out_tongue: I never actually tried the 1.3 projects for
making a framework, but I think they’ve been stagnating for a while.

You create DMG files with disk utility in Applications/Utilities.

Sorry if that answer seems patronizing, perhaps you can explain more fully
what it is you’re trying to do.On Sat, Feb 4, 2012 at 2:43 PM, Martin Gerhardy <martin.gerhardy at gmail.com>wrote:

Hi.

I’m trying to create a SDL2 dmg on my mac including the templates for new
ios projects. I can’t find any documentation on how to do this. Can anyone
please give me a few hints on how to do it?

Thanks a lot

Martin
_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Well, in general I’m just trying to compile my little game with SDL2 and
run it on iOS. But I would like to understand the backgrounds.

I tried to create the Xcode templates from the Xcode-iOS project that is
in the hg repo - without any luck. I don’t know where to put these files
and the pathes given in the README.iOS are no longer valid with Xcode
4.1. Are those templates even compatible with Xcode 4.1? I saw a new set
of templates for each new OSX release - but there is no template for
10.7.x yet.

On the long run I would like to create a 2.0 framework to easily share
it with some other devs.

Btw. i also tried to build it “only” for mac and found a bug about the
fatbuild.sh - see http://bugzilla.libsdl.org/show_bug.cgi?id=1410Am 04.02.2012 07:56, schrieb Jeremy Jurksztowicz:

Are you trying to package SDL2 as a framework and distribute it on a dmg?

As far as making a framework is concerned I’m not sure, just wade
through it until you get it down :stuck_out_tongue: I never actually tried the 1.3
projects for making a framework, but I think they’ve been stagnating
for a while.

You create DMG files with disk utility in Applications/Utilities.

Sorry if that answer seems patronizing, perhaps you can explain more
fully what it is you’re trying to do.

On Sat, Feb 4, 2012 at 2:43 PM, Martin Gerhardy <@Martin_Gerhardy mailto:Martin_Gerhardy> wrote:

Hi.

I'm trying to create a SDL2 dmg on my mac including the templates
for new ios projects. I can't find any documentation on how to do
this. Can anyone please give me a few hints on how to do it?

Thanks a lot


Martin
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

You can pick the DMG target from the drop down in the Xcode IDE once you’ve
opened the project. That will build a framework and include SDLmain.m/h
which is all someone needs to build an SDL application on Mac OS X.

Eric Wing created some templates, here’s his e-mail:
I posted some initial Xcode 4 templates for SDL.

You can find the hg repo here:
http://www.assembla.com/code/sdlxcode4templates/mercurial/nodes

Copy them to
~/Library/Developer/Xcode/Templates/SDL
or
/Library/Developer/Xcode/Templates/SDL

They need work.

The Mac ones mostly work provided you have the SDL.framework in
/Library/Frameworks and you always pick the correct version (1.2 or
1.3). However, I don’t know how to hook into the copy files to bundle
phase to embed the SDL.framework into the .app bundle. You’ll have to
set this up manually. The compatibility targets are set to 10.5 and
x86_64 and i386, but using the latest SDK.

The iOS template does not work out of the box. I don’t know how to set
up a link dependency on a (static) library instead of a framework. I
think we should include the static library inside the template if we
figure out the other thing.

Help on this is welcome.On Sat, Feb 4, 2012 at 1:43 AM, Martin Gerhardy <martin.gerhardy at gmail.com>wrote:

Hi.

I’m trying to create a SDL2 dmg on my mac including the templates for new
ios projects. I can’t find any documentation on how to do this. Can anyone
please give me a few hints on how to do it?

Thanks a lot

Martin
_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org