forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SDL : experiencing a hang-up with checkkeys example

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Sun Mar 23, 2008 5:55 am    Post subject: SDL : experiencing a hang-up with checkkeys example Reply with quote

I compiled SDL with HAVE_INPUT_DEVICES=1 setting in the makefile to enable keyboard support.

When I execute the checkkeys example, it hangs.
For debugging, I put a "printf("#");" just before the SDL_WaitEvent(&event) call and I get two # characters before hanging...

Could someone test it, please?

My USB keyboard works well with the PS2 since I already used with it PS2IRC, uLaunchELF4.12 and RadShell.
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Apr 08, 2008 8:21 am    Post subject: Re: SDL : experiencing a hang-up with checkkeys example Reply with quote

ptek wrote:
I compiled SDL with HAVE_INPUT_DEVICES=1 setting in the makefile to enable keyboard support.

When I execute the checkkeys example, it hangs.
For debugging, I put a "printf("#");" just before the SDL_WaitEvent(&event) call and I get two # characters before hanging...

Could someone test it, please?

My USB keyboard works well with the PS2 since I already used with it PS2IRC, uLaunchELF4.12 and RadShell.


If you want someone to test this, you really should post some code. :)
Back to top
View user's profile Send private message AIM Address
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Tue Apr 08, 2008 9:49 am    Post subject: Re: SDL : experiencing a hang-up with checkkeys example Reply with quote

J.F. wrote:
If you want someone to test this, you really should post some code. :)

It's just the sdl supplied example checkkeys.c. It's located at the sdl's test folder.
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Apr 08, 2008 11:14 am    Post subject: Re: SDL : experiencing a hang-up with checkkeys example Reply with quote

ptek wrote:
J.F. wrote:
If you want someone to test this, you really should post some code. :)

It's just the sdl supplied example checkkeys.c. It's located at the sdl's test folder.


Oh, okay. I'll try to compile that and see how it works for me.
Back to top
View user's profile Send private message AIM Address
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Sat Apr 12, 2008 8:17 pm    Post subject: Reply with quote

So JF, any luck? :)
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Apr 13, 2008 6:23 am    Post subject: Reply with quote

ptek wrote:
So JF, any luck? :)


Thanks for reminding me... I almost forgot about this. :)

Okay... it dunna work... at all. When I run it from ps2client, it simply gives me a blank screen on the ps2, and nothing in the ps2client window in the way of prints. Ps2client resets the ps2 fine, so it isn't crashed, I just can't see any response from the test.

The ps2 does switch from the ps2link screen to some blank screen when you run checkkeys, so maybe there's an issue with gsKit. Any "quirks" in gsKit I need to know about when I build it?
Back to top
View user's profile Send private message AIM Address
diegox758



Joined: 30 Mar 2008
Posts: 13
Location: Brasil, Sao Paulo

PostPosted: Sun Apr 13, 2008 6:54 am    Post subject: Reply with quote

Here my test, nope my UlaunchELF function and my modchip(who has the function to boot from mc0:/boot/boot.elf) doesn't function too, this is really disappointing new for the ps2 homebrewing
Back to top
View user's profile Send private message
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Sun Apr 13, 2008 7:15 am    Post subject: Reply with quote

J.F. wrote:
The ps2 does switch from the ps2link screen to some blank screen when you run checkkeys, so maybe there's an issue with gsKit.

Yes, same here. The black screen is a normal behaviour and the result of the SDL_Init(SDL_INIT_VIDEO).
J.F. wrote:
Any "quirks" in gsKit I need to know about when I build it?
No, as far I know. If any other ELF that uses SDL you have compiled works fine visually and the gsKit examples as well, your build of gsKit and SDL must be ok.

You can also try this and report if the same happens to you :
ptek wrote:
When I execute the checkkeys example, it hangs.
For debugging, I put a "printf("#");" just before the SDL_WaitEvent(&event) call and I get two # characters before hanging...
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Apr 13, 2008 10:09 am    Post subject: Reply with quote

I don't get ANY of the printf's in the checkkeys example. I added extra printf's and I get nothing. The video does change which is after some printf's, so there's something wrong with printf on my toolchain. Any suggestion on that?

EDIT: Uh, under ps2link, where are the irx's loaded from? What irx's are needed for this test? I've gotten the dreamgl examples to work, and the ito test for the textures, so I know ps2link is working, and my toolchain compiles dreamgl and libito fine, so it's not totally farg'd.
Back to top
View user's profile Send private message AIM Address
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Sun Apr 13, 2008 8:08 pm    Post subject: Reply with quote

J.F. wrote:
I don't get ANY of the printf's in the checkkeys example. I added extra printf's and I get nothing. The video does change which is after some printf's, so there's something wrong with printf on my toolchain. Any suggestion on that?

Weird. Have you tried a simple hello world alike example, which only do printf?

J.F. wrote:
EDIT: Uh, under ps2link, where are the irx's loaded from? What irx's are needed for this test? I've gotten the dreamgl examples to work, and the ito test for the textures, so I know ps2link is working, and my toolchain compiles dreamgl and libito fine, so it's not totally farg'd.
If I recall correctly, the ps2link I'm using have the irx embedded in the ELF. It's version 1.46 and a single ELF. How about yours ?
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Apr 14, 2008 7:12 am    Post subject: Reply with quote

ptek wrote:
J.F. wrote:
I don't get ANY of the printf's in the checkkeys example. I added extra printf's and I get nothing. The video does change which is after some printf's, so there's something wrong with printf on my toolchain. Any suggestion on that?

Weird. Have you tried a simple hello world alike example, which only do printf?

J.F. wrote:
EDIT: Uh, under ps2link, where are the irx's loaded from? What irx's are needed for this test? I've gotten the dreamgl examples to work, and the ito test for the textures, so I know ps2link is working, and my toolchain compiles dreamgl and libito fine, so it's not totally farg'd.
If I recall correctly, the ps2link I'm using have the irx embedded in the ELF. It's version 1.46 and a single ELF. How about yours ?


Even the testver from the SDL tests does nothing, but as I said above, the dreamgl and libito tests work fine. I can't get SDL to do anything as far as visible output goes. Weird.

I'm using ps2link v1.46 - it's a single elf file. I can't remember ever having this trouble before, but this is a new setup on Ubuntu where I used to use Fedora. I'm worried I might have missed something somewhere. In the process of recompiling all the misc junk, I ran into a few things that I posted in other threads, like my corrections to the libito tool for 64 bit OSes.

I think the primary issue is that there aren't any PS2 specific SDL samples. Makes it kinda hard to test if SDL is working or not. :)
Back to top
View user's profile Send private message AIM Address
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Apr 14, 2008 8:10 am    Post subject: Reply with quote

J.F. wrote:
I think the primary issue is that there aren't any PS2 specific SDL samples. Makes it kinda hard to test if SDL is working or not. :)

Why don't you compile the lsdldoom I'm mantaining ? ;)
Gte the source from http://svn2.assembla.com/svn/pedroduarteps2dev_public/lsdldoom_PS2
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Apr 14, 2008 9:19 am    Post subject: Reply with quote

ptek wrote:
J.F. wrote:
I think the primary issue is that there aren't any PS2 specific SDL samples. Makes it kinda hard to test if SDL is working or not. :)

Why don't you compile the lsdldoom I'm mantaining ? ;)
Gte the source from http://svn2.assembla.com/svn/pedroduarteps2dev_public/lsdldoom_PS2


Um... what's supposed to be in the romdisk directory? I put the shareware wad file. I get a 5.7MB elf file that does nothing at all. Just sits at the ps2link screen saying it's running host:DOOM.ELF.

EDIT: I think I might be having trouble compiling IOP stuff. All the EE stuff I compile works, but some of the IOP stuff I compile doesn't. I tried recompiling the latest ps2link, for example, and it just hangs.
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Apr 14, 2008 4:03 pm    Post subject: Reply with quote

Okay, there's definitely something whacked with the toolchain or gsKit - none of the gsKit examples work. Funny enough, all the libito and dreamgl examples work. Thinking it was perhaps a 4.x gcc issue, I deleted the whole toolchain and recompiled using gcc 3.4 (which used to be mandatory) - same problem. Given that SDL uses gskit, I don't think anything I do with gskit will work until I figure out why gskit isn't working. Has someone been making changes on gskit recently?
Back to top
View user's profile Send private message AIM Address
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Apr 14, 2008 10:29 pm    Post subject: Reply with quote

J.F. wrote:
Um... what's supposed to be in the romdisk directory? I put the shareware wad file. I get a 5.7MB elf file that does nothing at all. Just sits at the ps2link screen saying it's running host:DOOM.ELF.

There you put the shareware wad and the boomlump.wad you can found on data directory, so even if your toolchain was ok it wouldn't work without this file. I must put a read-me along with the source files describing this ...
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Apr 15, 2008 6:56 am    Post subject: Reply with quote

Ah! No wonder my file was not quite as big... I didn't have the boom wad file in the dir.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group