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 

PSPToolchain Installation Help.

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



Joined: 15 Nov 2005
Posts: 4

PostPosted: Wed Nov 16, 2005 6:45 am    Post subject: PSPToolchain Installation Help. Reply with quote

The other day I decided I wanted to get into homebrew.
I installed Cygwin and all the correct components, then ran toolchain.sh.
After about 8 hours, I ended up with quite a few errors. I forgot which errors they were, and I don't want to run the toolchain another time just to find the errors :(.
I don't know much about Cygwin, but I know that errors aren't good.
I tried compiling some things I wrote from tutorials anyway, but no go.
Here's what I got:

So ok, I know where the build.mak is so I changed the directory on the makefile trying to fix the problem.
Here's the errors this time.
I know the warnings can be ignored sometimes, but that many errors isn't good.
Please help me out! I'm sure all I did was something stupid along the way, just don't know what.
_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Nov 16, 2005 9:00 am    Post subject: Reply with quote

It looks like you forgot a step as indicated on the wiki:

Quote:
It will take a long time to download and build all the software from scratch, from half an hour to a couple hours depending on the speed of your internet connection and the processing power of your computer. 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.

http://wiki.pspdev.org/psp:programming_faq

This information was also included in the README.TXT file that came with the toolchain script.
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Nov 16, 2005 5:57 pm    Post subject: Reply with quote

I updated the Wiki and psptoolchain's README.TXT to remove the PSPDEV (and PSPSDK) environment settings. PSPDEV should only be used if you need to switch between multiple PSPDEV installations. PSPSDK isn't used at all.
Back to top
View user's profile Send private message
memon



Joined: 03 Oct 2005
Posts: 63

PostPosted: Thu Nov 17, 2005 5:05 am    Post subject: Reply with quote

mrbrown, after that change the cd command in the final step propably does not work anymore since it is referring to the PSPSDK envvar:

Quote:

4) As a final test, build the sdktest sample.
$ cd $PSPSDK/samples/sdktest
...
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Nov 17, 2005 7:00 am    Post subject: Reply with quote

There's no longer any 'sdktest' sample so it wouldn't have worked anyway.

Wiki updated to remove step 4.
Back to top
View user's profile Send private message
TsukasaX



Joined: 15 Nov 2005
Posts: 4

PostPosted: Thu Nov 17, 2005 7:37 am    Post subject: Reply with quote

I added those lines to the .bashrc file, but I still get the errors even after running 'psp-gcc -v'.
make: psp-config: Command not found
Makefile:12: /lib/build.mak: No such file or directory

--

Guess i'll try a re-install.
_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
TsukasaX



Joined: 15 Nov 2005
Posts: 4

PostPosted: Fri Nov 18, 2005 2:26 am    Post subject: Reply with quote

x2cube wrote:
Quote:

Making all in sdk
if psp-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../sdk/base -I../../sdk/kernel -I../../sdk/user -I../../sdk/net -I../../sdk/utility -g -O2 -G0 -Wall -MT query_mod.o -MD -MP -MF ".deps/query_mod.Tpo" -c -o query_mod.o query_mod.c; \
then mv -f ".deps/query_mod.Tpo" ".deps/query_mod.Po"; else rm -f ".deps/query_mod.Tpo"; exit 1; fi
if psp-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../sdk/base -I../../sdk/kernel -I../../sdk/user -I../../sdk/net -I../../sdk/utility -g -O2 -G0 -Wall -MT fixup.o -MD -MP -MF ".deps/fixup.Tpo" -c -o fixup.o fixup.c; \
then mv -f ".deps/fixup.Tpo" ".deps/fixup.Po"; else rm -f ".deps/fixup.Tpo"; exit 1; fi
if psp-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../sdk/base -I../../sdk/kernel -I../../sdk/user -I../../sdk/net -I../../sdk/utility -g -O2 -G0 -Wall -MT inethelper.o -MD -MP -MF ".deps/inethelper.Tpo" -c -o inethelper.o inethelper.c; \
then mv -f ".deps/inethelper.Tpo" ".deps/inethelper.Po"; else rm -f ".deps/inethelper.Tpo"; exit 1; fi
inethelper.c:16:24: error: pspNetInet.h: No such file or directory
inethelper.c:17:28: error: pspNetResolver.h: No such file or directory
inethelper.c:18:25: error: pspNetApctl.h: No such file or directory
inethelper.c: In function 'initInet':
inethelper.c:97: warning: implicit declaration of function 'sceNetInetInit'
inethelper.c:101: warning: implicit declaration of function 'sceNetResolverInit'
inethelper.c:105: warning: implicit declaration of function 'sceNetApctlInit'
inethelper.c: In function 'termInet':
inethelper.c:119: warning: implicit declaration of function 'sceNetApctlTerm'
inethelper.c:120: warning: implicit declaration of function 'sceNetResolverTerm'
inethelper.c:121: warning: implicit declaration of function 'sceNetInetTerm'
make[3]: *** [inethelper.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
ERROR BUILDING PSPSDK

:( help

That's the problem I had after the re-install.
_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
blazintildadeath



Joined: 14 Dec 2005
Posts: 14

PostPosted: Wed Dec 14, 2005 12:50 pm    Post subject: Reply with quote

t will take a long time to download and build all the software from scratch, from half an hour to a couple hours depending on the speed of your internet connection and the processing power of your computer. 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.

where am i suppose to write this at?...in the install.sh file??? in the terminal????..im having a problem it keeps sayin psp-config not found and then i found this forum saying this but where do i put it...which file where would it be located at
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Dec 14, 2005 1:42 pm    Post subject: Reply with quote

Quote:
You can edit it with a standard text editor and add those lines to the end of it.

At this rate I wonder if you'll even be able to write code.
Back to top
View user's profile Send private message Visit poster's website
blazintildadeath



Joined: 14 Dec 2005
Posts: 14

PostPosted: Wed Dec 14, 2005 2:05 pm    Post subject: nope but im studying it real hard.... Reply with quote

im starting off by taking open source codes and modifying some stuff....come on ...we all have to start somewhere....well...i opened terminal and went into where my file was.....(where my C file and MAKEFILE was at and wrote those lines in them line by line....then i typed make...presto...i got an eboot.pbp...suckaaaa ...now i gotta get real familiar with the C C++ code Lua. Python...it seems easy though...just by looking at the sources....(such as an NES emulator) its pretty easy..... they declare int variables and apply a shit load of bullshit and all u have to do is anaylze and experiment....i got allllllllllllll day and night to be fyking with this...lol
Back to top
View user's profile Send private message
blazintildadeath



Joined: 14 Dec 2005
Posts: 14

PostPosted: Wed Dec 14, 2005 2:10 pm    Post subject: Reply with quote

i also wanted to know if there was an easy way to load that string of code instead of having to write it over and over again before i compile my code i know there is a way...
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