| View previous topic :: View next topic |
| Author |
Message |
kouky

Joined: 25 Sep 2007 Posts: 48 Location: London
|
Posted: Mon Apr 14, 2008 7:51 am Post subject: How to use the SDL port? |
|
|
Hi,
I'd like to port a SDL software to PS2.
I've succesfully setup CodeBlocks for ps2dev and built a hello world not using SDL.
Then I wanted to enable SDL functions so I've downloaded the SDL folder from the ps2dev SVN and tried to build the examples provided (checkkeys.c...)
But couldn't make it :(
CodeBlocks complains about
"
ld:: cannot find -lsdl
:: === Build finished: 1 errors, 0 warnings ===
"
Is this SDL library ready to use?
I mean I just have to include <SDL.h> and it's supposed to work ??
Thanks for you help |
|
| Back to top |
|
 |
cosmito
Joined: 04 Mar 2007 Posts: 314 Location: Portugal
|
Posted: Mon Apr 14, 2008 8:44 pm Post subject: |
|
|
Did you tried first the "traditional" way of making the example, that is, issuing a "make" on the command line / shell ?
Did it compiled with success? |
|
| Back to top |
|
 |
kouky

Joined: 25 Sep 2007 Posts: 48 Location: London
|
Posted: Tue Apr 15, 2008 12:49 am Post subject: |
|
|
| Oops, I don't know how to do the traditionnal way! |
|
| Back to top |
|
 |
kouky

Joined: 25 Sep 2007 Posts: 48 Location: London
|
|
| Back to top |
|
 |
cosmito
Joined: 04 Mar 2007 Posts: 314 Location: Portugal
|
Posted: Tue Apr 15, 2008 9:58 am Post subject: |
|
|
Nope, these instructions do not apply to the PS2 (unpacking a dll doesn't make sense).
Yes, you need to do a "make" and a "make install".
The SDL installation for the PS2 sdk requires some steps, although not too much difficult... I may do a tutorial (not very soon I'm afraid...) |
|
| Back to top |
|
 |
kouky

Joined: 25 Sep 2007 Posts: 48 Location: London
|
Posted: Tue Apr 15, 2008 10:05 am Post subject: |
|
|
Thank you,
I've finally been able to make it work.
I've succesfully compiled a elf file displaying a few SDL rectangle. Very exciting :)
Now I'm trying to figure out why
FILE * f=fopen("someFile","r");
always returns NULL...
Anyway, I'm happy to finally be able to develop on PS2! |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue Apr 15, 2008 1:06 pm Post subject: |
|
|
Try:
fopen("host:someFile","r"); |
|
| Back to top |
|
 |
|