How to setup SDL Library

Tutorials and Guides about LibXenon / Toolchain / Libraries
Post Reply
User avatar
dreamboy
Global Moderator
Global Moderator
Posts: 48
Joined: Tue May 17, 2011 1:12 am
Location: Portugal

How to setup SDL Library

Post by dreamboy » Sun Jun 26, 2011 8:02 pm

Credits to: [glow=red,2,300]Lantus[/glow], [glow=red,2,300]Ced2911[/glow] and [glow=red,2,300]IUNIXI[/glow]

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 all

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 edited by dreamboy on Tue Mar 06, 2012 3:15 pm, edited 1 time in total.
[align=center]ImageImage
xbox 360 Jasper JTAG 16mb - 2TB External 3.5HDD @ Dashboard 2.0.16202.0[/align]

Xplorer4x4

Re: How to setup SDL Library

Post by Xplorer4x4 » Tue Mar 06, 2012 2:18 am

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 all

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

ravendrow

Re: How to setup SDL Library

Post by ravendrow » Sat Jul 21, 2012 4:51 am

please correct the following line in source

https://github.com/LibXenonProject/libS ... ick.c#L181

line is

Code: Select all

if (joystick->hwdata->curpad.select)
and it should be

Code: Select all

if (joystick->hwdata->curpad.back)
changing this fixes issues with new libxenon

thank you

User avatar
tuxuser
Administrator
Administrator
Posts: 301
Joined: Sat Feb 19, 2011 4:53 pm
Location: Germany
Contact:

How to setup SDL Library

Post by tuxuser » Sat Jul 21, 2012 12:11 pm

will do, thx
I have no idea what I am doing but atleast I am trying

ch.kenned

Re: How to setup SDL Library

Post by ch.kenned » Sun Aug 26, 2012 12:25 am

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

Re: How to setup SDL Library

Post by ch.kenned » Sun Aug 26, 2012 1:50 am

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

Re: How to setup SDL Library

Post by sk1080 » Sun Aug 26, 2012 4:10 pm

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

Re: How to setup SDL Library

Post by ch.kenned » Sun Aug 26, 2012 5:43 pm

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

Re: How to setup SDL Library

Post by sk1080 » Sun Aug 26, 2012 5:57 pm

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

Re: How to setup SDL Library

Post by ch.kenned » Mon Sep 10, 2012 8:39 pm

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 edited by ch.kenned on Thu Sep 13, 2012 11:32 pm, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests