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 

Problems installing SDL for PSPdevkit

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



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Tue Sep 26, 2006 2:53 pm    Post subject: Problems installing SDL for PSPdevkit Reply with quote

Hi guys, So I'm having trouble..

Code:

jesusxp@jesusxp:~/SDL$ sudo ./autogen.sh
Generating build information using aclocal, automake and autoconf
This may take a while ...
configure.in: installing `./install-sh'
configure.in: installing `./mkinstalldirs'
configure.in: installing `./missing'
src/Makefile.am: installing `./depcomp'
Now you are ready to run ./configure


jesusxp@jesusxp:~/SDL$ sudo LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./configure --host psp --prefix=$(psp-config --psp-prefix)
sudo: LDFLAGS=-L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser: command not found
jesusxp@jesusxp:~/SDL$




Anyone know why it wont build properly?

jesusxp@jesusxp:~$ echo $PATH
/usr/local/pspdev/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
Back to top
View user's profile Send private message MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Sep 26, 2006 4:51 pm    Post subject: Reply with quote

If you must use sudo (which you should avoid) you should use "sudo env LDFLAGS..."
Back to top
View user's profile Send private message
JesusXP



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Tue Sep 26, 2006 11:32 pm    Post subject: Reply with quote

Code:

jesusxp@jesusxp:~/SDL$ sudo env LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./configure --host psp --prefix=$(psp-config --psp-prefix)
Password:
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... mipsallegrexel-psp-elf
checking target system type... mipsallegrexel-psp-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for psp-strip... no
checking for strip... strip
checking for style of include used by make... GNU
checking for psp-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

root@jesusxp:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin


is my path's configured properly? It doesn't look like my root path is, but my regular user path should be correct, right?
Code:

jesusxp@jesusxp:~$ echo $PATH
/usr/local/pspdev/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
Back to top
View user's profile Send private message MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Sep 27, 2006 5:26 am    Post subject: Reply with quote

Don't use sudo, just compile it normally. Use chmod to change permissions if necessary.
Back to top
View user's profile Send private message
mbf



Joined: 18 Aug 2006
Posts: 55

PostPosted: Wed Sep 27, 2006 6:36 am    Post subject: Reply with quote

Yes, configure and make should be run as a normal user. Only "make install" has to be run as root.
Back to top
View user's profile Send private message
JesusXP



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Wed Sep 27, 2006 10:16 am    Post subject: Reply with quote

almost.. but at make install something went wrong..

Where should i be when i checkout SDL?? /usr/local/pspdev/psp/sdk ?

Code:
sudo make install
Password:
Making install in src
make[1]: Entering directory `/home/jesusxp/SDL/src'
Making install in main
make[2]: Entering directory `/home/jesusxp/SDL/src/main'
make[3]: Entering directory `/home/jesusxp/SDL/src/main'
/bin/sh ../../mkinstalldirs /usr/local/pspdev/psp/lib
 /usr/bin/install -c -m 644 libSDLmain.a /usr/local/pspdev/psp/lib/libSDLmain.a
 psp-ranlib /usr/local/pspdev/psp/lib/libSDLmain.a
/bin/sh: line 4: psp-ranlib: command not found
make[3]: *** [install-libLIBRARIES] Error 127
make[3]: Leaving directory `/home/jesusxp/SDL/src/main'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/jesusxp/SDL/src/main'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/jesusxp/SDL/src'
make: *** [install-recursive] Error 1
Back to top
View user's profile Send private message MSN Messenger
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Wed Sep 27, 2006 10:19 am    Post subject: Reply with quote

JesusXP wrote:
is my path's configured properly? It doesn't look like my root path is
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Wed Sep 27, 2006 10:34 am    Post subject: Reply with quote

Quote:
/bin/sh ../../mkinstalldirs /usr/local/pspdev/psp/lib
/usr/bin/install -c -m 644 libSDLmain.a /usr/local/pspdev/psp/lib/libSDLmain.a
psp-ranlib /usr/local/pspdev/psp/lib/libSDLmain.a
/bin/sh: line 4: psp-ranlib: command not found


either that or the ranlib isnt installed
Back to top
View user's profile Send private message AIM Address
JesusXP



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Wed Sep 27, 2006 12:25 pm    Post subject: Reply with quote

know where to get psp-ranlib? shouldn't it already be with the sdk? I am pretty up to date, i updated the toolchain not too long ago.. Is there a similar method to update the pspsdk? I am just lost..
Back to top
View user's profile Send private message MSN Messenger
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Wed Sep 27, 2006 1:34 pm    Post subject: Reply with quote

Your paths aren't set up right as root mate:

Quote:
root@jesusxp:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
Back to top
View user's profile Send private message
JesusXP



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Thu Sep 28, 2006 3:09 am    Post subject: Reply with quote

Thank you ;)

Seemingly installed fine now.. Much appreciated
Back to top
View user's profile Send private message MSN Messenger
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