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 

Problem with SDL under (K)ubuntu

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



Joined: 09 Jul 2007
Posts: 3

PostPosted: Mon Jul 09, 2007 2:16 am    Post subject: Problem with SDL under (K)ubuntu Reply with quote

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:

./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:

make install


it seems to give me a number of errors.

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

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:

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:

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 :)
Back to top
View user's profile Send private message
SamuraiX



Joined: 31 Jan 2006
Posts: 76
Location: USA

PostPosted: Mon Jul 09, 2007 4:44 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
nrg753



Joined: 09 Jul 2007
Posts: 3

PostPosted: Mon Jul 09, 2007 11:22 am    Post subject: Reply with quote

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:
Quote:


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
Back to top
View user's profile Send private message
nrg753



Joined: 09 Jul 2007
Posts: 3

PostPosted: Mon Jul 09, 2007 11:27 am    Post subject: Reply with quote

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.
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