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 

Help test the newtoolchain script.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Wed Feb 15, 2006 4:27 am    Post subject: Reply with quote

Just because there new to something, you shouldn't dumb down things you say to them. It's a simple command and its the basics. If i didn't tell him, then he would always think you have to close it. I was only trying to help.
Sorry, ill keep my mouth shut in the future.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Feb 15, 2006 5:29 am    Post subject: Reply with quote

There's a difference between 'dumbing down' and 'sticking to the basics'.

Your method did nothing to tell the user about how the .bashrc file is run when you start a new shell, a concept that is far more important to understand than an arcane command the user is being told to memorize.

The mind works with logical, intuitive concepts. Edit a startup script and you'll know it is run when you start. Edit a text file and execute it with some poorly-named 'source' command and you'll have him wondering if he has to do that each time he makes a change, or each time he logs in, or who knows what else he'll possibly think up.
Back to top
View user's profile Send private message Visit poster's website
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Wed Feb 15, 2006 6:16 am    Post subject: Reply with quote

It's pretty obvious though, but yes, i should of mentioned that.
When editing the ~/.bashrc file, if you cannot log out and in again, you should use source ~/.bashrc. Else, you should log out / in.
Sorry ooPo.
Back to top
View user's profile Send private message
Paolo



Joined: 08 Nov 2005
Posts: 12

PostPosted: Wed Feb 15, 2006 5:29 pm    Post subject: Reply with quote

ooPo wrote:
When you added those lines to your .bashrc, did you quit and re-open the cygwin shell window before trying to run the toolchain script?

Adding stuff to your startup script only works if you restart.

Yes, I re-opened the shell.
This is strange, I had pspsdk up and running for a long time. Then I had some
troubles with Visual C++ IDE, which I had to re-install several times, and as a
side effect I wasn't able to build my PSP projects anymore.
I tried to reinstall pspsdk with the latest version of "traditional" toolchain script,
but it didn't work anymore, even if completely reinstalled cygwin etc.

Oh my, getting desperate here... :(
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Feb 16, 2006 1:36 am    Post subject: Reply with quote

Well, I'm stumped then...

There are some strange problems with the latest version of cygwin, but not being able to find psp-ar isn't one of them. That usually points to a path problem as it would have failed much earlier in the process if it couldn't build psp-ar during the binutils step.
Back to top
View user's profile Send private message Visit poster's website
Paolo



Joined: 08 Nov 2005
Posts: 12

PostPosted: Thu Feb 16, 2006 6:52 pm    Post subject: Reply with quote

Is there anything I could add/modify in toolchain script in order to get some debugging data...?

Edit: Here's my ENV variables, could there be something in them?

!:: = ::\
!C: = C:\cygwin\bin
ALLUSERSPROFILE = C:\Documents and Settings\All Users
APPDATA = C:\Documents and Settings\Administrator\Application Data
CLASSPATH = C:\Program Files\Java\j2re1.4.2\lib\ext\QTJava.zip
COMMONPROGRAMFILES = C:\Program Files\Common Files
COMPUTERNAME = ASUKA
COMSPEC = C:\WINDOWS\system32\cmd.exe
CVS_RSH = /bin/ssh
DXSDK_DIR = C:\Program Files\Microsoft DirectX SDK (December 2005)\
FP_NO_HOST_CHECK = NO
HOME = /home/Administrator
HOMEDRIVE = C:
HOMEPATH = \Documents and Settings\Administrator
HOSTNAME = Asuka
INCLUDE = C:\Program Files\Common Files\SpeechEngines\Microsoft Visual Studio .NET\FrameworkSDK\include\;c:\Program Files\Common Files\SpeechEngines\Microsoft
INFOPATH = /usr/local/info:/usr/share/info:/usr/info:
LIB = C:\Program Files\MagicDraw\lib;
LOGONSERVER = \\ASUKA
MAKE_MODE = unix
MANPATH = /usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man
NUMBER_OF_PROCESSORS = 1
OLDPWD = /home/Administrator
OS = Windows_NT
PATH = /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:"C:/Program Files/Microsoft DirectX SDK (December 2005)/Utilities/Bin/x86":/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/ATI Technologies/ATI Control Panel:/cygdrive/c/Program Files/backburner 2/:/cygdrive/c/Program Files/Common Files/Adobe/AGL:/cygdrive/c/Program Files/QuickTime/QTSystem/:.: /winnt: c:/Program Files/Photoshop CS2/Presets/Tools: c:/Program Files/MagicDraw/bin: :/usr/local/pspdev/bin
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PKG_CONFIG_PATH = /usr/X11R6/lib/pkgconfig
PRINTER = HP Color LaserJet 4650 PS
PROCESSOR_ARCHITECTURE = x86
PROCESSOR_IDENTIFIER = x86 Family 6 Model 13 Stepping 6, GenuineIntel
PROCESSOR_LEVEL = 6
PROCESSOR_REVISION = 0d06
PROGRAMFILES = C:\Program Files
PROMPT = $P$G
PS1 = \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
PSPDEV = /usr/local/pspdev
PWD = /home/Administrator/newtoolchain
QMAKESPEC = /usr/lib/qt3/mkspecs/cygwin-g++
QTDIR = /usr/lib/qt3
QTJAVA = C:\Program Files\Java\j2re1.4.2\lib\ext\QTJava.zip
SESSIONNAME = Console
SHLVL = 1
SYSTEMDRIVE = C:
SYSTEMROOT = C:\WINDOWS
TEMP = /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
TERM = cygwin
TMP = /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
USER = Administrator
USERDOMAIN = ASUKA
USERNAME = Administrator
USERPROFILE = C:\Documents and Settings\Administrator
VS71COMNTOOLS = C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\
WINDIR = C:\WINDOWS
_ = ./toolchain.pl
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Feb 17, 2006 1:13 am    Post subject: Reply with quote

If you're running the newtoolchain script, it logs everything to logfile.txt.
Back to top
View user's profile Send private message Visit poster's website
Paolo



Joined: 08 Nov 2005
Posts: 12

PostPosted: Tue Feb 21, 2006 8:22 pm    Post subject: Reply with quote

Ok, solved. Apparently DirectX SDK caused the problem. After uninstalling
the dx sdk, and manually removing some leftover garbage from enviroment
variables, I finally managed to run the toolchain script succesfully! :)

It only took 12 re-installations of cygwin and something like 20 attempts to
run the toolchain script! LOL! Lesson; check your paths, and then re-check them...

New toolchain script is really really sweet! Thanks! :)
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Feb 22, 2006 12:43 am    Post subject: Reply with quote

I'm happy it is finally working for you. Perhaps this will help others who are having similar problems.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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