The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2_gfx framework for Mac OSX
Mattef


Joined: 09 Dec 2015
Posts: 2
Hello everyone!

Recently I stumbled upon the nice custom library SDL2_gfx, which can
be used to draw graphic primitives with SDL:
http://cms.ferzkopp.net/index.php/software/13-sdl-gfx.
SDL2_gfx-1.0.1 perfectly fits my requirements and now I want to use
this library in a simple project.

I have downloaded the source code and managed to build it on Mac OS X
10.11.2, however I miss a framework-version for Mac, that is a library
bundle by the name of SDL2_gfx.framework. I could link the dynamic
libraries (.dylib) against my program as well, but I would rather like
to stay in consistency with my previous SDL-project, which uses only
SDL*.frameworks.

Can I generate in a simple way the SDL2_gfx.framework for Mac? Or has
somebody did this work already for me?
In Version 1 (SDL_gfx-2.0.25) there was a XCode-project which could be
used to generate the framework, but it seems to be deprecated with
XCode 7.

I contacted the author of SDL2_gfx, but unfortunately he answered that
he doesn't know how to build a Mac OS X framework from his source. And
neither do I.

So hopefully somebody could give me a good advice or tell me, how I
can build a *.framework for SDL2_gfx.
Thanks in advance!
Matthias

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL2_gfx framework for Mac OSX
Pallav Nawani


Joined: 19 May 2011
Posts: 122
Location: Dehradun, India
Apple documentation & a bit of googling should help out:
https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html



Pallav Nawani
IronCode Gaming Private Limited
Website: http://www.ironcode.com
Twitter:  http://twitter.com/Ironcode_Gaming
Facebook: http://www.facebook.com/Ironcode.Gaming
Mobile: 9997478768



On Thu, Dec 10, 2015 at 2:55 AM, Matthias Kesenheimer wrote:
Quote:
Hello everyone!

Recently I stumbled upon the nice custom library SDL2_gfx, which can be used to draw graphic primitives with SDL:
http://cms.ferzkopp.net/index.php/software/13-sdl-gfx.
SDL2_gfx-1.0.1 perfectly fits my requirements and now I want to use this library in a simple project.

I have downloaded the source code and managed to build it on Mac OS X 10.11.2, however I miss a framework-version for Mac, that is a library bundle by the name of SDL2_gfx.framework. I could link the dynamic libraries (.dylib) against my program as well, but I would rather like to stay in consistency with my previous SDL-project, which uses only SDL*.frameworks.

Can I generate in a simple way the SDL2_gfx.framework for Mac? Or has somebody did this work already for me?
In Version 1 (SDL_gfx-2.0.25) there was a XCode-project which could be used to generate the framework, but it seems to be deprecated with XCode 7.

I contacted the author of SDL2_gfx, but unfortunately he answered that he doesn't know how to build a Mac OS X framework from his source. And neither do I.

So hopefully somebody could give me a good advice or tell me, how I can build a *.framework for SDL2_gfx.
Thanks in advance!
Matthias

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Mattef


Joined: 09 Dec 2015
Posts: 2
Thank you for your reply.

With some fiddling and trial and error I finally could use XCode to generate the framework.
I informed the author of SDL2_gfx, so he could include the XCode-project eventually in the future.

Cheers,
Matthias
joymaker


Joined: 22 Nov 2016
Posts: 9
Matte - Would you mind sharing your Xcode project that built the framework? I'm facing the same problem and I would like to benefit from your work.