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 

Newb Confusion

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



Joined: 05 Aug 2005
Posts: 14

PostPosted: Sat Aug 06, 2005 5:47 am    Post subject: Newb Confusion Reply with quote

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
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Aug 06, 2005 6:04 am    Post subject: Re: Newb Confusion Reply with quote

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
View user's profile Send private message AIM Address
Chrighton



Joined: 15 Jun 2005
Posts: 58

PostPosted: Sat Aug 06, 2005 1:00 pm    Post subject: Re: Newb Confusion Reply with quote

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
View user's profile Send private message
Thrett



Joined: 05 Aug 2005
Posts: 14

PostPosted: Tue Aug 09, 2005 1:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Tue Aug 09, 2005 2:06 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Thrett



Joined: 05 Aug 2005
Posts: 14

PostPosted: Tue Aug 09, 2005 2:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Tue Aug 09, 2005 6:55 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Thrett



Joined: 05 Aug 2005
Posts: 14

PostPosted: Tue Aug 09, 2005 7:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Tue Aug 09, 2005 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Thrett



Joined: 05 Aug 2005
Posts: 14

PostPosted: Thu Aug 11, 2005 2:01 am    Post subject: Reply with quote

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
View user's profile Send private message
boomint



Joined: 13 Apr 2004
Posts: 80
Location: Sheffield, UK

PostPosted: Thu Aug 11, 2005 2:04 am    Post subject: Reply with quote

have you run ./bootstrap after downloading?
_________________
--( someone stole my sig! )--
Back to top
View user's profile Send private message
Thrett



Joined: 05 Aug 2005
Posts: 14

PostPosted: Thu Aug 11, 2005 3:25 am    Post subject: Reply with quote

No, what does that do?
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Thu Aug 11, 2005 3:39 am    Post subject: Reply with quote

sets stuff up. Do that in the directory that you checked out the information in.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
Thrett



Joined: 05 Aug 2005
Posts: 14

PostPosted: Thu Aug 11, 2005 4:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Thu Aug 11, 2005 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Thrett



Joined: 05 Aug 2005
Posts: 14

PostPosted: Sat Aug 13, 2005 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Aug 13, 2005 10:37 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
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