| View previous topic :: View next topic |
| Author |
Message |
JesusXP
Joined: 17 Jan 2006 Posts: 80 Location: Ontario, Canada
|
Posted: Tue Sep 26, 2006 2:53 pm Post subject: Problems installing SDL for PSPdevkit |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Sep 26, 2006 4:51 pm Post subject: |
|
|
| If you must use sudo (which you should avoid) you should use "sudo env LDFLAGS..." |
|
| Back to top |
|
 |
JesusXP
Joined: 17 Jan 2006 Posts: 80 Location: Ontario, Canada
|
Posted: Tue Sep 26, 2006 11:32 pm Post subject: |
|
|
| 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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Sep 27, 2006 5:26 am Post subject: |
|
|
| Don't use sudo, just compile it normally. Use chmod to change permissions if necessary. |
|
| Back to top |
|
 |
mbf
Joined: 18 Aug 2006 Posts: 55
|
Posted: Wed Sep 27, 2006 6:36 am Post subject: |
|
|
| Yes, configure and make should be run as a normal user. Only "make install" has to be run as root. |
|
| Back to top |
|
 |
JesusXP
Joined: 17 Jan 2006 Posts: 80 Location: Ontario, Canada
|
Posted: Wed Sep 27, 2006 10:16 am Post subject: |
|
|
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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Wed Sep 27, 2006 10:19 am Post subject: |
|
|
| JesusXP wrote: | | is my path's configured properly? It doesn't look like my root path is |
|
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Wed Sep 27, 2006 10:34 am Post subject: |
|
|
| 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 |
|
 |
JesusXP
Joined: 17 Jan 2006 Posts: 80 Location: Ontario, Canada
|
Posted: Wed Sep 27, 2006 12:25 pm Post subject: |
|
|
| 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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Wed Sep 27, 2006 1:34 pm Post subject: |
|
|
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 |
|
 |
JesusXP
Joined: 17 Jan 2006 Posts: 80 Location: Ontario, Canada
|
Posted: Thu Sep 28, 2006 3:09 am Post subject: |
|
|
Thank you ;)
Seemingly installed fine now.. Much appreciated |
|
| Back to top |
|
 |
|