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 

Code::Blocks + PSPDEV

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



Joined: 25 Nov 2006
Posts: 23

PostPosted: Sat Nov 25, 2006 6:04 am    Post subject: Code::Blocks + PSPDEV Reply with quote

Hey guys,

I've been setting up Code::Blocks for use with the PSPDEV sdk. I've setup the compilers, linkers and even managed to fix a niggling problem with the static library archiver.

But now I'm running into issuse when linking an elf. I can't for the life of me figure out which of the libraries MUST link in before I need to worry about GE, display, VFPU and all the other groovy hardware libraries.

So...my question is; what libraries do I need to support the most basic executeable that has basic io and debugging services? Despite searching through the sdk make file and just blindly adding libs, I still have a lot of link errors.

thanks in advance!
Back to top
View user's profile Send private message
IronAvatar



Joined: 25 Nov 2006
Posts: 23

PostPosted: Sat Nov 25, 2006 7:41 am    Post subject: Reply with quote

I've actually solved this myself by playing around with the link order. Incase anybody is interested in using Code::Blocks instead of Dev-C++, then it's important to get the link order correct for the most basic of apps that use the VFPU, GU and GE.

The order of my libs is currently like this (if there's anything there that is redundant, then somebody please let me know).

Code:

D:\sdk\psp\pspdev\psp\lib\libg.a
D:\sdk\psp\pspdev\psp\lib\libm.a
D:\sdk\psp\pspdev\psp\lib\libstdc++.a
D:\sdk\psp\pspdev\psp\lib\libsupc++.a
D:\sdk\psp\pspdev\psp\lib\libg.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsprtc.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspuser.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsputility.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspdebug.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsplibc.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspgum.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspvfpu.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspgu.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspge.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspdisplay_driver.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspdisplay.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspge_driver.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspsdk.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsppower.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsppower_driver.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspgum_vfpu.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspkernel.a


If anybody wants me to, I'll post more complete instructions on using Codeblocks plus a Win32 build of the Toolchain that runs using the Cygwin dll's.

But really, it's pretty straight forward stuff and you're all pretty smart people, do you won't need me to tell you what to do ;)
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Sat Nov 25, 2006 3:59 pm    Post subject: Reply with quote

why
D:\sdk\psp\pspdev\psp\lib\libg.a
twice?
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
IronAvatar



Joined: 25 Nov 2006
Posts: 23

PostPosted: Sat Nov 25, 2006 6:09 pm    Post subject: Reply with quote

dot_blank wrote:
why
D:\sdk\psp\pspdev\psp\lib\libg.a
twice?


Because it was quite late at night when I finaly got the program to link, and I accidentaly added it twice :)
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