SDL 1.2 Setup On Mac OS X?

SDL 1.2 Setup On Mac OS X ?

Hi,

I just got an OS X system.
I have never used OS X before.
I’ve installed the current OS X Developer Tools.
Also downloaded current Code::Blocks C++ IDE for OS X.

How do I setup:

  • SDL 1.2
  • SDL_image
  • SDL_mixer
  • SDL_ttf
    to work in Code::Blocks under OS X?

Trying to build a cross-platform game that I made.
(game builds and runs on all Windows® and all Linux OS’s)

Any help would be appreciated, thanks!

Jesse

I’m not a full-time mac user, but if you have the libraries installed, you
should simple just do an #include <SDL/SDL.h> and whichever other addons you
want, then link to the libraries: SDL, SDLmain, SDL_* (* being image or
mixer or ttf)

You should be able to build after that.
I should note that using XCode should be much easier on a mac than
Code::Blocks, but I can’t say I’ve tried code::blocks on mac.

Take care,
-AlexOn Mon, Jul 5, 2010 at 1:08 PM, Jesse Palser wrote:

SDL 1.2 Setup On Mac OS X ?

Hi,

I just got an OS X system.
I have never used OS X before.
I’ve installed the current OS X Developer Tools.
Also downloaded current Code::Blocks C++ IDE for OS X.

How do I setup:

  • SDL 1.2
  • SDL_image
  • SDL_mixer
  • SDL_ttf
    to work in Code::Blocks under OS X?

Trying to build a cross-platform game that I made.
(game builds and runs on all Windows® and all Linux OS’s)

Any help would be appreciated, thanks!

Jesse


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

Hi,

Thank you for your response.

How do I install SDL 1.2, SDL_image, SDL_mixer, and SDL_ttf into Mac OS X?

I downloaded each DMG file from the SDL web site,
but running those only creates a folder?

Thanks for your help!

JesseOn 07/05/2010 01:12 PM, Alex Barry wrote:

I’m not a full-time mac user, but if you have the libraries installed,
you should simple just do an #include <SDL/SDL.h> and whichever other
addons you want, then link to the libraries: SDL, SDLmain, SDL_* (*
being image or mixer or ttf)

You should be able to build after that.
I should note that using XCode should be much easier on a mac than
Code::Blocks, but I can’t say I’ve tried code::blocks on mac.

Take care,
-Alex

On Mon, Jul 5, 2010 at 1:08 PM, Jesse Palser <SLNTHERO at aol.com <mailto:SLNTHERO at aol.com>> wrote:

 SDL 1.2 Setup On Mac OS X ?

Hi,

I just got an OS X system.
I have never used OS X before.
I've installed the current OS X Developer Tools.
Also downloaded current Code::Blocks C++ IDE for OS X.

How do I setup:
- SDL 1.2
- SDL_image
- SDL_mixer
- SDL_ttf
to work in Code::Blocks under OS X?

Trying to build a cross-platform game that I made.
(game builds and runs on all Windows(R) and all Linux OS's)

Any help would be appreciated, thanks!

Jesse
_______________________________________________
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

I’ve only installed from source, but I’ll presume you only downloaded the
dynamic libraries (which would probably just create the folder) - see if you
can find a package with the development libraries in there, and if that
fails, get a source package, open up the terminal, and do this:
su -
./configure & make & make install
That will install everything automatically for you

Hope that helps,
-AlexOn Mon, Jul 5, 2010 at 1:15 PM, Jesse Palser wrote:

Hi,

Thank you for your response.

How do I install SDL 1.2, SDL_image, SDL_mixer, and SDL_ttf into Mac OS X?

I downloaded each DMG file from the SDL web site,
but running those only creates a folder?

Thanks for your help!

Jesse

On 07/05/2010 01:12 PM, Alex Barry wrote:

I’m not a full-time mac user, but if you have the libraries installed, you
should simple just do an #include <SDL/SDL.h> and whichever other addons you
want, then link to the libraries: SDL, SDLmain, SDL_* (* being image or
mixer or ttf)

You should be able to build after that.
I should note that using XCode should be much easier on a mac than
Code::Blocks, but I can’t say I’ve tried code::blocks on mac.

Take care,
-Alex

On Mon, Jul 5, 2010 at 1:08 PM, Jesse Palser wrote:

SDL 1.2 Setup On Mac OS X ?

Hi,

I just got an OS X system.
I have never used OS X before.
I’ve installed the current OS X Developer Tools.
Also downloaded current Code::Blocks C++ IDE for OS X.

How do I setup:

  • SDL 1.2
  • SDL_image
  • SDL_mixer
  • SDL_ttf
    to work in Code::Blocks under OS X?

Trying to build a cross-platform game that I made.
(game builds and runs on all Windows® and all Linux OS’s)

Any help would be appreciated, thanks!

Jesse


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


SDL mailing listSDL at lists.libsdl.orghttp://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

Hi,

I currently have Code::Blocks compiling my game project on Mac OS X,
but it won’t link the project successfully.

In OS X Code::Blocks “Linker Settings” I have:------------------------------------------------------------------------
-lSDL_mixer
-lSDL_ttf
-lSDL_image
-lSDLmain
-lSDL
-lGLU
-lGL

Receiving link error: “ld: library not found for -lSDL_mixer”

I think i have to add the directories of the SDL 1.2 link libraries,
but do not know where they are
in the each downloaded DMG folder from SDL site.

Sorry, but need more help!

Jesse

On 07/05/2010 01:25 PM, Alex Barry wrote:

I’ve only installed from source, but I’ll presume you only downloaded
the dynamic libraries (which would probably just create the folder) -
see if you can find a package with the development libraries in there,
and if that fails, get a source package, open up the terminal, and do
this:
su -
./configure & make & make install
That will install everything automatically for you

Hope that helps,
-Alex

On Mon, Jul 5, 2010 at 1:15 PM, Jesse Palser <SLNTHERO at aol.com <mailto:SLNTHERO at aol.com>> wrote:

Hi,

Thank you for your response.

How do I install SDL 1.2, SDL_image, SDL_mixer, and SDL_ttf into
Mac OS X?

I downloaded each DMG file from the SDL web site,
but running those only creates a folder?

Thanks for your help!

Jesse



On 07/05/2010 01:12 PM, Alex Barry wrote:
I'm not a full-time mac user, but if you have the libraries
installed, you should simple just do an #include <SDL/SDL.h> and
whichever other addons you want, then link to the libraries: SDL,
SDLmain, SDL_* (* being image or mixer or ttf)

You should be able to build after that.
I should note that using XCode should be much easier on a mac
than Code::Blocks, but I can't say I've tried code::blocks on mac.

Take care,
-Alex

On Mon, Jul 5, 2010 at 1:08 PM, Jesse Palser <SLNTHERO at aol.com <mailto:SLNTHERO at aol.com>> wrote:

     SDL 1.2 Setup On Mac OS X ?

    Hi,

    I just got an OS X system.
    I have never used OS X before.
    I've installed the current OS X Developer Tools.
    Also downloaded current Code::Blocks C++ IDE for OS X.

    How do I setup:
    - SDL 1.2
    - SDL_image
    - SDL_mixer
    - SDL_ttf
    to work in Code::Blocks under OS X?

    Trying to build a cross-platform game that I made.
    (game builds and runs on all Windows(R) and all Linux OS's)

    Any help would be appreciated, thanks!

    Jesse
    _______________________________________________
    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  <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_______________________________________________
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

Download the official .dmg packages from the SDL website for each
library. (It sounds like you’ve already done that from a later post.)
You might also want to install the development extras for OS X:
SDL-devel-1.2.14-extras.dmg

Eveything is a drag-and-drop installation by design. Inside the
SDL.dmg and maybe the SDL-development dmgs are various READMEs. They
contain a lot of information on how to install and build. I spent a
lot of time writing this stuff.

Also check out my screencasts on OSG here (the bottom 5):
http://playcontrol.net/ewing/screencasts/

Even though it is not SDL, it’s pretty much the same thing since I did
the packages for both.

I don’t know anything about Code::Blocks.

-EricOn 7/5/10, Jesse Palser wrote:

SDL 1.2 Setup On Mac OS X ?

Hi,

I just got an OS X system.
I have never used OS X before.
I’ve installed the current OS X Developer Tools.
Also downloaded current Code::Blocks C++ IDE for OS X.

How do I setup:

  • SDL 1.2
  • SDL_image
  • SDL_mixer
  • SDL_ttf
    to work in Code::Blocks under OS X?

Trying to build a cross-platform game that I made.
(game builds and runs on all Windows® and all Linux OS’s)

Any help would be appreciated, thanks!

should simple just do an #include <SDL/SDL.h>

This isn’t guaranteed to work for all distributions.

#include “SDL.h” is the recommended approach and set your compiler’s
search paths correctly.

-Eric

Keep in mind that some libraries are actually .framework (a different thing than a .dso library), and the correct way to use them is to supply the -framework SDL option on the commandline for example
rather than -lSDL, but I could be wrong about the intended way to use each library.

Also you may find it easier to static link to libraries than to include .dso files in your .app folder for distribution.

I am by no means an expert on OS X however, my experience is limited (DarkPlaces quake engine, and the initial porting of QuakeLive to OS X which took a considerable amount of research and guesswork
to get going).

Hope this helps.On 07/05/2010 10:12 AM, Alex Barry wrote:

I’m not a full-time mac user, but if you have the libraries installed,
you should simple just do an #include <SDL/SDL.h> and whichever other
addons you want, then link to the libraries: SDL, SDLmain, SDL_* (*
being image or mixer or ttf)

You should be able to build after that.
I should note that using XCode should be much easier on a mac than
Code::Blocks, but I can’t say I’ve tried code::blocks on mac.

Take care,
-Alex

On Mon, Jul 5, 2010 at 1:08 PM, Jesse Palser <SLNTHERO at aol.com <mailto:SLNTHERO at aol.com>> wrote:

 SDL 1.2 Setup On Mac OS X ?

Hi,

I just got an OS X system.
I have never used OS X before.
I've installed the current OS X Developer Tools.
Also downloaded current Code::Blocks C++ IDE for OS X.

How do I setup:
- SDL 1.2
- SDL_image
- SDL_mixer
- SDL_ttf
to work in Code::Blocks under OS X?

Trying to build a cross-platform game that I made.
(game builds and runs on all Windows(R) and all Linux OS's)

Any help would be appreciated, thanks!

Jesse
_______________________________________________
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


LordHavoc
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier