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 prx giving me 0x8002013C

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



Joined: 19 Jan 2006
Posts: 50

PostPosted: Thu Sep 20, 2007 6:22 pm    Post subject: SDL prx giving me 0x8002013C Reply with quote

Hi,

I have 3.30 OE. I want to use SDL in my prx, but it is always giving me SCE_KERNEL_ERROR_LIBRARY_NOTFOUND error. I have built one of the test SDL programs using the build system of tyranid's template prx.

When I build the same program as kxploit PBP and put it in GAME150, it works. Also, template prx (Hello World) works as well, so I believe I am not having any compile/build/psplinkusb issues.

Do I have to load some special prx before loading SDL prx? I have loaded flash0:/vsh/module/vshmain.prx, but it still failed with the same error.

Next, I've inspected SDL_psp_main.c that is linked to the application. The weird thing is that it is configured to run in kernel mode (I believe someone should correct that). I have changed that to the user mode and rebuilt the entire SDL. It didn't help. I have also changed the name in the PSP_MODULE_INFO macro to reflect the binary name with no success.

Any hints what I might be missing?

Thank you,
B.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri Sep 21, 2007 3:04 am    Post subject: Reply with quote

Yes you are very much correct, it does build it in kernel mode cause of the age of the code. In all likelyhood it is just down to the fact that something in SDL trys to pull in kernel libraries which are obviously not there in user mode. It probably really should be sorted out cause it really isn't necessary anymore (it was questionable whether it was ever needed :P)

Hmm of course do you really need to incluse libSDLmain.a which I can only guess you are doing? You should be able to implement your out main function and dump all the existing SDL kernel crap.
Back to top
View user's profile Send private message
bulb



Joined: 19 Jan 2006
Posts: 50

PostPosted: Fri Sep 21, 2007 4:37 am    Post subject: Reply with quote

Tyranid,

Yes, I know about the age of the code - it was last updated on December 2005! :)

Actually I was linking directly SDL_psp_main.c, because I didn't want to rebuild SDL every time I change something in that file. Now, I removed everything (update thread creation, etc.), having very simple main() and suddenly it loads and executes! Although it soon fails with Bus error exception. I have probably removed too much. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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