| View previous topic :: View next topic |
| Author |
Message |
Thrett
Joined: 05 Aug 2005 Posts: 14
|
Posted: Sat Aug 06, 2005 5:47 am Post subject: Newb Confusion |
|
|
Thanks everyone for the help thus far. I now have the toolchain script running and have compiled the samples. I'm fairly unfamiliar with *nix , meaning I know a few commands, what the X window system is, have installed a few distros of linux, BSD, etc. but don't use *nix as an everyday platform and am totally new to this cygwin and compiling with gcc thing. Hence, the process has left me with a few questions I cannot seem to answer.
From http://wiki.pspdev.org/psp:programming_faq:
| Quote: | When it is done, you will have to add the following lines to your startup configuration:
## PSPDEV PATH SETTINGS
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin"
Under Cygwin, this will be your ‘c:\cygwin\home\<username>\.bashrc’ file. You can edit it with a standard text editor and add those lines to the end of it. |
1 - When I installed Cygwin (On WinXP SP2) I did not have a cygwin\home directory. I created it manually, which didn't seem to cause any problems, but made me uneasy. Is this normal? What may I have done wrong?
2 - I don't have a .bashrc file in my cygwin\home directory. There are bash.bashrc & .bashrc files in the \etc, \etc\skel, \etc\defaults\etc, & \etc\defaults\etc\skel directories. Did I screw something up? Miss a step or three?
3 - I'm dumb and can't figure out where the SDK documentation is, or even what to look for. I assume it's there....somewhere....but I'm just totally lost without a clue on this one. I checked the ps2dev site, and have looked for a sticky or something like that here on the forums. Could someone please point me in the right direction?
4 - Are the cygwin\home directories and the HOME environment variable spoken of at http://cygwin.com/faq.html supposed to be the same? Are they related? Am I way off base?
Okay, I think that about does it for now. Many thanks in advance. If I should be reading some basic how to not suck info on cygwin, gcc, etc. please let me know (and maybe point me to it, lol)
Tnx (^_^) v |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Aug 06, 2005 6:04 am Post subject: Re: Newb Confusion |
|
|
| Thrett wrote: |
1 - When I installed Cygwin (On WinXP SP2) I did not have a cygwin\home directory. I created it manually, which didn't seem to cause any problems, but made me uneasy. Is this normal? What may I have done wrong?
|
Did you ever start up cygwin? If you did, then your home directory is ~/. Usually located in /home/[username]. I never browse thru Explorer, I always use the command prompt.
| Thrett wrote: |
2 - I don't have a .bashrc file in my cygwin\home directory. There are bash.bashrc & .bashrc files in the \etc, \etc\skel, \etc\defaults\etc, & \etc\defaults\etc\skel directories. Did I screw something up? Miss a step or three?
|
You can create that file by doing a 'touch ~/.bashrc', then that will give you the file, and you can edit it. There is also a file called cygwin.bat right off of the cygwin directory, which I *believe* that you can add those to. Not sure about that file though.
| Thrett wrote: |
3 - I'm dumb and can't figure out where the SDK documentation is, or even what to look for. I assume it's there....somewhere....but I'm just totally lost without a clue on this one. I checked the ps2dev site, and have looked for a sticky or something like that here on the forums. Could someone please point me in the right direction?
|
do a 'make doxygen-doc' where you downloaded the SDK. it will created the docs in the [sdk source]/doc directory.
| Thrett wrote: |
4 - Are the cygwin\home directories and the HOME environment variable spoken of at http://cygwin.com/faq.html supposed to be the same? Are they related? Am I way off base?
|
I am beginning to think that it never set you up with an account... although I do no use cygwin that much, I believe that if you start it up, when you get to your prompt, do a 'pwd' and see what your directory is. It will be something like /home/[something] and that [something] is your home directory. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
Chrighton
Joined: 15 Jun 2005 Posts: 58
|
Posted: Sat Aug 06, 2005 1:00 pm Post subject: Re: Newb Confusion |
|
|
| Thrett wrote: | | 1 - When I installed Cygwin (On WinXP SP2) I did not have a cygwin\home directory. I created it manually, which didn't seem to cause any problems, but made me uneasy. Is this normal? What may I have done wrong? |
It shouldn't matter the least, it's more of a convenient rule of thumb. You can add an environment path in windows itself or as Agoln says, directly in the cygwin.bat, before the part where it executes the bash shell.
| Code: | | set path=%path%;c:\<path to your toolchain>\bin;c:\cygwin\bin; |
should do just fine. You could add the other path(s) and stuff, but I personally haven't had a need to, most makefiles take care of the sdk paths and such - seems to have worked out for me thus far. |
|
| Back to top |
|
 |
Thrett
Joined: 05 Aug 2005 Posts: 14
|
Posted: Tue Aug 09, 2005 1:49 am Post subject: |
|
|
Okay, got the whole home directory thing sorted out. Thanks for the help on that.
I tried "make doxygen-doc" from the PSPSDK folder and get "make: *** No rule to make target 'doxygen-doc'. Stop." Any suggestions? |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Tue Aug 09, 2005 2:06 am Post subject: |
|
|
| Thrett wrote: | | I tried "make doxygen-doc" from the PSPSDK folder |
which folder? the /user/local/pspdev/psp/sdk? Because that's not the folder you want. You want the folder where you downloaded the SDK from. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
Thrett
Joined: 05 Aug 2005 Posts: 14
|
Posted: Tue Aug 09, 2005 2:25 am Post subject: |
|
|
Yeah, I was trying it from /usr/local/pspdev/psp/sdk.
The folder I downloaded the SDK from? Having used the psptoolchain script, which folder would that be? The folder with toolchain.sh in it? ./devel or ./svn under that? Somewhere completely different? |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Tue Aug 09, 2005 6:55 am Post subject: |
|
|
since you have svn, you can do a 'svn checkout svn://svn.pspdev.org/trunk/pspsdk' and that will checkout the sdk. Then in that folder, do a 'make doxygen-doc' and the docs will be in the 'doc' folder. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
Thrett
Joined: 05 Aug 2005 Posts: 14
|
Posted: Tue Aug 09, 2005 7:23 am Post subject: |
|
|
Okay, I ran that and got a good old fashioned error:
| Code: | Clint@wsc-notebook ~
$ svn checkout svn://svn.pspdev.org/trunk/pspsdk
svn: No repository found in 'svn://svn.pspdev.org/trunk/pspsdk' |
=(
Is there a way to run "toolchain.sh -p" and have it save the downloaded files so that I can make the documentation from them? |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Tue Aug 09, 2005 7:39 am Post subject: |
|
|
Heh, my bad, wrong url :)
it's svn://svn.pspdev.org/psp/trunk/pspsdk.
You can read the README that is with the toolchain, maybe it has some information on what to do to just download it. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
Thrett
Joined: 05 Aug 2005 Posts: 14
|
Posted: Thu Aug 11, 2005 2:01 am Post subject: |
|
|
Hehe, the new url worked great.
However, running "make doxygen-doc" from the PSPSDK folder that was downloaded still results in:
make: *** No rule to make target `doxygen-doc'. Stop.
=( |
|
| Back to top |
|
 |
boomint
Joined: 13 Apr 2004 Posts: 80 Location: Sheffield, UK
|
Posted: Thu Aug 11, 2005 2:04 am Post subject: |
|
|
have you run ./bootstrap after downloading? _________________ --( someone stole my sig! )-- |
|
| Back to top |
|
 |
Thrett
Joined: 05 Aug 2005 Posts: 14
|
Posted: Thu Aug 11, 2005 3:25 am Post subject: |
|
|
| No, what does that do? |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Thu Aug 11, 2005 3:39 am Post subject: |
|
|
sets stuff up. Do that in the directory that you checked out the information in. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
Thrett
Joined: 05 Aug 2005 Posts: 14
|
Posted: Thu Aug 11, 2005 4:14 am Post subject: |
|
|
| Code: | Clint@wsc-notebook ~
$ cd pspsdk
Clint@wsc-notebook ~/pspsdk
$ ./bootstrap
.
/usr/share/aclocal/libsmi.m4:8: warning: underquoted definition of AM_PATH_LIBSM
I
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/freetype2.m4:7: warning: underquoted definition of AC_CHECK_F
T2
/usr/share/aclocal/cppunit.m4:4: warning: underquoted definition of AM_PATH_CPPU
NIT
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
sdk/audio/Makefile.am: installing `./depcomp'
Clint@wsc-notebook ~/pspsdk
$ make doxygen-doc
make: *** No rule to make target `doxygen-doc'. Stop. |
|
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Thu Aug 11, 2005 4:27 am Post subject: |
|
|
do a:
./configure
make
make doxygen-doc
(not sure if first make is necessary, but just do it any ways)
Read the README file that is in that directory. It should help. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
Thrett
Joined: 05 Aug 2005 Posts: 14
|
Posted: Sat Aug 13, 2005 6:22 am Post subject: |
|
|
Got the docs, thanks for the help. I'll just hit the README next time and save us all my ineptitude, lol. You guys rock
^_^ v
btw, can anyone recommend a good text viewer for files such as the README that comes with the pspsdk source from subversion? I installed emacs and have *kinda* figured it out, still a ways to go though. |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Aug 13, 2005 10:37 am Post subject: |
|
|
| Thrett wrote: | | btw, can anyone recommend a good text viewer for files such as the README that comes with the pspsdk source from subversion? I installed emacs and have *kinda* figured it out, still a ways to go though. |
Heh, I like your *kinda* figured it out. emacs is more powerful then you could imagine... Once you get more into emacs, you'll realize that it is much like it's own operating system :). emacs and vi(m) are the two biggest text editors in *nix. You can also open them in notepad. But if you find that you are getting little white boxes everwhere instead of line breaks, then you can do a: | Code: | | unix2dos [filename] > [new filename] | and that will convert the file from a unix file to a dos file (and similar make it go back with dos2unix). The reason of this is because in *nix, a new line is marked by a \n, while in windows, it is marked by a \r\n. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
|