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 

How do you compile gnu programs?

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



Joined: 12 Aug 2005
Posts: 3

PostPosted: Fri Aug 12, 2005 12:27 pm    Post subject: How do you compile gnu programs? Reply with quote

Sorry for the double post but figured this would be a better place to ask.
Hi guys, I'm going to work on a project to start porting standard gnu stuff over to the psp. I noticed that there was a version of gcc for psp so I was like "wow, this would be perfect to start porting gnu stuff over!"
Anyway! I was about to compile bash when I realized that it might be a little harder than I had first thought since bash install involves the standard configure, make, make install process.
So, my question is. Has anyone tried to install anything like this that uses a configure make process for the psp? Anyone have any idea what would be required to do this?
I've just assumed that psp-gcc will produce a binary that can run on a psp, if that is the case, maybe it would only require me to change the configure process to use psp-gcc instead of gcc, but I am somehow doubtful that this would actually work seeing as the configure script is generally made to compile something on the architecture the files resides on.
Anyway, I obviously have no experience with compiling something for an architecture other than for the machine doing the compiling, so any help or direction would be appreciated
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Aug 12, 2005 1:33 pm    Post subject: Reply with quote

There is no POSIX-compatible development environment for the PSP. You can't just port bash and crap like that over without the libraries that support them. And that's not even getting into why you would want to blithely port POSIX software over to the PSP anyway...
Back to top
View user's profile Send private message
protomech



Joined: 15 Jul 2005
Posts: 1

PostPosted: Mon Aug 15, 2005 2:33 am    Post subject: Reply with quote

This might have already be answered..

You're going to run into a lot of problems due to incomplete library implementations for the psp .. there's a basic sockets library, but a lot of the POSIX layer stuff will be inoperable.

You can try running the configure script as a cross-compile.. on my machine (winxp + cygwin) it might go something like this..

$ cat > config.site
CC=psp-gcc
CPP=psp-g++
CFLAGS=-I/usr/local/pspdev/psp/include
LDFLAGS=-L/usr/local/pspdev/psp/lib -lpspsdk -lc -lpspuser -lpspkernel
^D
$ export CONFIG_SITE=./config.site
$ ./configure --host=mips-r4000 --build=i686-cygwin --other-various-options-go-here ...

Anyways, I'm slogging through some of this too at the moment.
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