Problem with SDL under (K)ubuntu

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

Moderators: cheriff, TyRaNiD

Post Reply
nrg753
Posts: 3
Joined: Mon Jul 09, 2007 1:07 am

Problem with SDL under (K)ubuntu

Post by nrg753 »

Hey all, you're probably sick of answering these sort of questions, I know what it's like :D I cant seem to find an answer to it though. So here goes...

After giving up on the Cygwin method, I got some Virtualization going and installed Edgy. The PSP toolchain has installed perfectly, and I've built a good ol' Hello World without a problem..

But, now I want to port my SDL games over to the psp. I downloaded SDL over SVN, and ran the commands according to README.PSP. The 1st three work fine:

Code: Select all

./autogen.sh
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
./configure --host psp --prefix=$(psp-config --psp-prefix)
make 
however when I get to:

Code: Select all

make install
it seems to give me a number of errors.

When I run make install, here is what I get:

Code: Select all

matt@kubuntu:~/trunk/SDL$ make install
make: Warning: File `Makefile' has modification time 3.1e+04 s in the future
Making install in src
make[1]: Entering directory `/home/matt/trunk/SDL/src'
make[1]: Warning: File `.deps/SDL_loadso.Plo' has modification time 3.1e+04 s in the future
Making install in main
make[2]: Entering directory `/home/matt/trunk/SDL/src/main'
make[2]: Warning: File `.deps/arch.Plo' has modification time 3.1e+04 s in the future
make[3]: Entering directory `/home/matt/trunk/SDL/src/main'
make[3]: Warning: File `.deps/arch.Plo' has modification time 3.1e+04 s in the future
test -z "/usr/local/pspdev/psp/lib" || mkdir -p -- "/usr/local/pspdev/psp/lib"
 /usr/bin/install -c -m 644 'libSDLmain.a' '/usr/local/pspdev/psp/lib/libSDLmain.a'
/usr/bin/install: cannot remove `/usr/local/pspdev/psp/lib/libSDLmain.a': Permission denied
make[3]: *** [install-libLIBRARIES] Error 1
make[3]: Leaving directory `/home/matt/trunk/SDL/src/main'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/matt/trunk/SDL/src/main'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/matt/trunk/SDL/src'
make: *** [install-recursive] Error 1
And when I run it with sudo:

Code: Select all

matt@kubuntu:~/trunk/SDL$ sudo make install
Password:
make: Warning: File `Makefile' has modification time 3.1e+04 s in the future
Making install in src
make[1]: Entering directory `/home/matt/trunk/SDL/src'
make[1]: Warning: File `.deps/SDL_loadso.Plo' has modification time 3.1e+04 s in the future
Making install in main
make[2]: Entering directory `/home/matt/trunk/SDL/src/main'
make[2]: Warning: File `.deps/arch.Plo' has modification time 3.1e+04 s in the future
make[3]: Entering directory `/home/matt/trunk/SDL/src/main'
make[3]: Warning: File `.deps/arch.Plo' has modification time 3.1e+04 s in the future
test -z "/usr/local/pspdev/psp/lib" || mkdir -p -- "/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/bash: line 4: psp-ranlib: command not found
make[3]: *** [install-libLIBRARIES] Error 127
make[3]: Leaving directory `/home/matt/trunk/SDL/src/main'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/matt/trunk/SDL/src/main'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/matt/trunk/SDL/src'
make: *** [install-recursive] Error 1
(strange how it cant find psp-ranlib when running as the super user)

and here is my $PATH :D

Code: Select all

matt@kubuntu:~/trunk/SDL$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/local/pspdev/bin
It's strange how I get "modification time 3.1e+04 s in the future" it must be something to do with the VM.I really doubt that's the problem though.

Anyway, I bet this is a really simple fix, my best bet is it must be something to do with Ubuntu not having a root account or something.

Thanks for the help :)
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Post by SamuraiX »

To be on the safe side i would recall the PSPDEV/PATH variables after typing sudo su.


As for the modification time..... I've seen this in the past... If I'm not mistaken you have two headers with the same name.
nrg753
Posts: 3
Joined: Mon Jul 09, 2007 1:07 am

Post by nrg753 »

SamuraiX wrote:To be on the safe side i would recall the PSPDEV/PATH variables after typing sudo su.

As for the modification time..... I've seen this in the past... If I'm not mistaken you have two headers with the same name.
Alright thanks, problem solved. I knew it was simple.

For anyone who gets stuck with this, you need to install SDL, and quite possibly other packages, by using the root account and setting the variables:

sudo su
(type your root password)
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:/usr/local/pspdev/bin

./autogen.sh
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
./configure --host psp --prefix=$(psp-config --psp-prefix)
make
make install
You can't just use sudo <command name> by itself.
Last edited by nrg753 on Mon Jul 09, 2007 11:44 am, edited 2 times in total.
nrg753
Posts: 3
Joined: Mon Jul 09, 2007 1:07 am

Post by nrg753 »

btw, the clock problem was fixed by setting the clock to a public time server. It seems to loose a bit of time being a VM.
Post Reply