Author Topic: How to setup SDL Library  (Read 5029 times)

Offline dreamboy

  • Global Moderator
  • User
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 47
  • Linux Distribution: Ubuntu 12.10 x32
  • XeLL Build: XellReloaded 0.991
How to setup SDL Library
« on: Jun 26, 2011, 22:02:12 »
Credits to: Lantus, Ced2911 and IUNIXI

Setting up SDL Libray:
   
  • Check if you have zlib and libpng first, if you don't you should install them first: Libs
  • Open Terminal
  • If you have tried to install sdl befored - delete all files and folders first
  • Now type:
Code: [Select]
git clone git://github.com/LibXenonProject/libSDLXenon.git
cd libSDLXenon
make -f Makefile.xenon
make -f Makefile.xenon install

Its done, yeah it got a bit shorter tutorial :) 

edit by tuxuser: Uses libSDL by Lantus now
« Last Edit: Mar 06, 2012, 16:15:18 by tuxuser »

xbox 360 Jasper JTAG 16mb - 2TB External 3.5HDD @ Dashboard 2.0.16202.0

Xplorer4x4

  • Guest
Re: How to setup SDL Library
« Reply #1 on: Mar 06, 2012, 03:18:26 »
Looks like SDL was moved from the free60 git repositories to the libxenon repositories. New github link is : git://github.com/LibXenonProject/libSDLXenon.git

Code: [Select]
git clone git://github.com/LibXenonProject/libSDLXenon.git
cd libSDLXenon
make -f Makefile.xenon
make -f Makefile.xenon install

ravendrow

  • Guest
Re: How to setup SDL Library
« Reply #2 on: Jul 21, 2012, 06:51:05 »
please correct the following line in source

https://github.com/LibXenonProject/libSDLXenon/blob/master/src/joystick/xenon/SDL_xenonjoystick.c#L181

line is

Code: [Select]
if (joystick->hwdata->curpad.select)

and it should be

Code: [Select]
if (joystick->hwdata->curpad.back)

changing this fixes issues with new libxenon

thank you

Offline tuxuser

  • Member of Free60
  • Administrator
  • User
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 299
    • http://www.libxenon.org
  • Linux Distribution: Debian Squeeze - Backports
  • XeLL Build: XeLL-Reloaded - git~HEAD
How to setup SDL Library
« Reply #3 on: Jul 21, 2012, 14:11:28 »
will do, thx
I have no idea what I am doing but atleast I am trying

ch.kenned

  • Guest
Re: How to setup SDL Library
« Reply #4 on: Aug 26, 2012, 02:25:33 »
After issuing "sudo make -f Makefile.xenon", I get the following output:
[SDL.c]
make: xenon-gcc: Command not found
make: *** [src/SDL.o] Error 127

If I issue "xenon-gcc" at the shell, the output is:
xenon-gcc: fatal error: no input files
compilation terminated.

Can someone help me resolve this issue, please?

ch.kenned

  • Guest
Re: How to setup SDL Library
« Reply #5 on: Aug 26, 2012, 03:50:09 »
After editing Makefile.xenon to point to the location of xenon-gcc...I get the following error:

sudo make -f Makefile.xenon
[SDL.c]
In file included from /usr/include/string.h:27:0,
                 from ./include/SDL_config_xenon.h:27,
                 from ./include/SDL_config.h:42,
                 from src/SDL.c:22:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make: *** [src/SDL.o] Error 1

sk1080

  • Guest
Re: How to setup SDL Library
« Reply #6 on: Aug 26, 2012, 18:10:17 »
Your OS should have a folder called /etc/profile.d or /etc/bash.d
Insert the export lines the toolchain script should have told you in to a file called xenon.sh in the appropriate folder
If the build script did not spit those lines, chances are that it failed on something like gcc stage 2

ch.kenned

  • Guest
Re: How to setup SDL Library
« Reply #7 on: Aug 26, 2012, 19:43:44 »
Thank you for the reply, but that didn't solve the problem.  I added the lines from the output to xenon.sh in /etc/profile.d.  I've compiled the cube example and run it on my xbox, so I know that libxenon is set up and working.  It appears /bits/predefs.h is missing?  Could it be an issue with cloning libSDL?  Any help is greatly appreciated.  Thanks.

sk1080

  • Guest
Re: How to setup SDL Library
« Reply #8 on: Aug 26, 2012, 19:57:11 »
Cube doesn't rely on environment
If it doesn't automatically find xenon gcc the your environment is set up wrong

Sent from my GT-I9100 using Tapatalk

ch.kenned

  • Guest
Re: How to setup SDL Library
« Reply #9 on: Sep 10, 2012, 22:39:05 »
Okay, I've given up on Netbeans and gone to strictly terminal based compilation...so far, everything appears to be working okay...I'm trying to compile the plasma-1.0 demo included in libSDLXenon...so far, no luck, though....
« Last Edit: Sep 14, 2012, 01:32:45 by ch.kenned »