Problems installing SDL for PSPdevkit

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Problems installing SDL for PSPdevkit

Post by JesusXP »

Hi guys, So I'm having trouble..

Code: Select all

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

If you must use sudo (which you should avoid) you should use "sudo env LDFLAGS..."
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Post by JesusXP »

Code: Select all

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: Select all

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Don't use sudo, just compile it normally. Use chmod to change permissions if necessary.
mbf
Posts: 55
Joined: Fri Aug 18, 2006 7:43 pm

Post by mbf »

Yes, configure and make should be run as a normal user. Only "make install" has to be run as root.
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Post by JesusXP »

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

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

Code: Select all

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
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

JesusXP wrote:is my path's configured properly? It doesn't look like my root path is
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

/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
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Post by JesusXP »

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..
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Your paths aren't set up right as root mate:
root@jesusxp:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Post by JesusXP »

Thank you ;)

Seemingly installed fine now.. Much appreciated
Post Reply