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 

tips for getting tool chain running on debian (Debian)

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



Joined: 24 Feb 2008
Posts: 51

PostPosted: Mon Mar 10, 2008 3:42 pm    Post subject: tips for getting tool chain running on debian (Debian) Reply with quote

1. For some reason I had ncurses in /lib instead of /usr/lib. Not sure if this a standard with debian, or a MEPIS oddity.
Fix:
ln -s /lib/libncurses.so.5 /usr/lib/.

2. the newlib package kept failing when it tried to patch. The error message pertained to files (config.sub, configure, etc) being locked by Perforce.
Fix:
modify scripts/newlib.sh to do this after unpacking the newlib.tgz, and cd'ing int the newlib dir the add: chmod -R au+w .

3. gdb won't compile, complains of /etc/termcap missing, due to the fact that libtermcap is deprated by libterminfo in debian.
Fix:
apt-get install ncurses-dev

4. insight does not install be default. No sure why. Perhaps it doesn't work with the psp? Can someone comment on the reason for this. (edit: it seems this was put in because this build fails on some distros).
Fix:
remove the 'exit;' line in scripts/insight.sh

Hopefully this information can help someone else.

~S
Back to top
View user's profile Send private message
snowsquirrel



Joined: 24 Feb 2008
Posts: 51

PostPosted: Wed Mar 26, 2008 3:03 am    Post subject: Reply with quote

bump: just realized that this is debian specific, not mepis. changed title.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Mar 26, 2008 3:38 am    Post subject: Re: tips for getting tool chain running on debian (Debian) Reply with quote

snowsquirrel wrote:
1. For some reason I had ncurses in /lib instead of /usr/lib. Not sure if this a standard with debian, or a MEPIS oddity.
Fix:
ln -s /lib/libncurses.so.5 /usr/lib/.

Why does it need to be in /usr/lib? It shouldn't matter.
The depends/check-ncurses.sh script looks for /usr/include/ncurses.sh which should exist in any case (although it really should just try test-compiling against it, rather than relying on any particular path layout).

Quote:

2. the newlib package kept failing when it tried to patch. The error message pertained to files (config.sub, configure, etc) being locked by Perforce.
Fix:
modify scripts/newlib.sh to do this after unpacking the newlib.tgz, and cd'ing int the newlib dir the add: chmod -R au+w .

This sounds like debian bug 200895 and can likely be fixed by just unsetting your Perforce environment variables.

Quote:

3. gdb won't compile, complains of /etc/termcap missing, due to the fact that libtermcap is deprated by libterminfo in debian.
Fix:
apt-get install ncurses-dev

gdb should use terminfo if it's found. If you hadn't installed libncurses5-dev, you wouldn't have /usr/include/ncurses.h and so depends/check-ncurses.sh should have given an error long before it got to gdb, so I don't know where that issue is coming from.

Quote:

4. insight does not install be default. No sure why. Perhaps it doesn't work with the psp? Can someone comment on the reason for this. (edit: it seems this was put in because this build fails on some distros).

Right, and probably very few people use it anyway.
Back to top
View user's profile Send private message
snowsquirrel



Joined: 24 Feb 2008
Posts: 51

PostPosted: Wed Mar 26, 2008 4:28 am    Post subject: Reply with quote

Haven't tested, but I am guessing you are right about perforce, I do have it installed, and have env vars set.

I just happened to do a clean install, and so came back to this post to remember how I did it. It looks like I have the links already there for ncurses this time. now sure why.

Here is another question. If I run toolchain.sh as 'joe', with PSPDEV set to ~joe/temp/pspdev, can I then just mv pspdev to local? Is the value of PSPDEV actually baked into any executables? Or is it portable?

edit: looks like it is possible to move the dir around, as long as env vars are set.

~S
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