xboxscene.org forums

Author Topic: Sdl_image Port To Openxdk  (Read 124 times)

d0wnlab

  • Archived User
  • Sr. Member
  • *
  • Posts: 326
Sdl_image Port To Openxdk
« on: January 04, 2005, 10:46:00 PM »

----------------------------------------
 SDL_Image v0.05 for OpenXDK
     by th0mas - th0mas.sixbit.org
----------------------------------------

I just got PNG support working, which marks the first public beta release of sdlImage for OpenXDK.  Tested and compiled against OpenXDK 0.06 binary release.

I put together both binary and source releases for this.

For binary distributions, download http://th0mas.sixbit...e-Xbox-0.05.tgz.

Unpack into /usr/local/openxdk or wherever your openxdk root directory is.

For source distributions, get:

http://th0mas.sixbit...-1.2.1-xbox.tgz
http://th0mas.sixbit...-1.2.7-xbox.tgz
http://th0mas.sixbit...-1.2.3-xbox.tgz

Unpack wherever you want, set the proper compiler name in the Makefile.xbox in each directory (mine is gcc, yours might differ - i686-pc-xbox-gcc for example), and run make -f Makefile.xbox.  Make sure the libraries and include files are copied to the openxdk distribution directories.

Compile and install in order of: zlib, libpng, libSDL_image.

For a quick test showing that it works, download, compile, and upload to your xbox (including necessary images, put into XBE's working directory) http://th0mas.sixbit...st-sdlimage.tgz.

Any troubles PM me or reply here.
Logged

nangsyde

  • Archived User
  • Newbie
  • *
  • Posts: 12
Sdl_image Port To Openxdk
« Reply #1 on: January 12, 2005, 06:30:00 AM »

Finally got round to testing this out, and it works beatifully.  So far I've only churned out a gif and a coupla bmps, but it all looks great.  On an equally positive note I've finally got SFont working, so cheers for the help on that!  Off to test out SDL_Joystick, funn  :D
Logged

d0wnlab

  • Archived User
  • Sr. Member
  • *
  • Posts: 326
Sdl_image Port To Openxdk
« Reply #2 on: January 12, 2005, 10:03:00 AM »

smile.gif

I should have another library release within a week, knocking another thing off edwardaux's pre-vacation list ph34r.gif
Logged

nangsyde

  • Archived User
  • Newbie
  • *
  • Posts: 12
Sdl_image Port To Openxdk
« Reply #3 on: January 12, 2005, 10:45:00 AM »

Ohh ohh *guesses*  MP3???  Mmm, edwardaux's list was what got me going in the first place, I've really been messing round trying to make a stupidly simple dash (and by stupidly I mean it  :) ) cause he's done an awful lot of work and I wouldn't  wan't him to have to actually code in his creation!

Meh well, more lib's will be great, I should really learn to compile em up myself.  Is it very tricky?  Anottheer thing to look at.  Ah well, good stuff.  I've got a list as long as my arm of stuff to do at the moment so I can just add that to it.
Logged

d0wnlab

  • Archived User
  • Sr. Member
  • *
  • Posts: 326
Sdl_image Port To Openxdk
« Reply #4 on: January 12, 2005, 01:13:00 PM »

It's not very tricky.  Basically just try to compile each of the source files in the library using the flags from the usual openxdk sample makefile, then archive them together.  usually you also though have to figure out how the thing is configured and possibly supply some define flags at compile time, or edit a header or two.  Very little source modification has been necessary for myself personally because all of this is pretty high-level stuff that only depends on libc and SDL.
Logged