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 

PSPSDK Setup....

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



Joined: 22 Mar 2006
Posts: 14

PostPosted: Wed May 17, 2006 1:33 am    Post subject: PSPSDK Setup.... Reply with quote

Hi all!

I'm installing PSPSDK for make homebrew in C for my psp...

I have already setup Cygwin, lauchn the psptoolchain, and now I want writte an Helloworld...

I lauchn Cygwin, I go in my directory
Code:

CD projets
CD Hello World


I write
Code:
make


And it say :
Code:

Make: psp-config: command not found
Makefile:12 /lib/build.mak: No such file or directory
make: *** No rule to make target '/lib/build.mak'. Stop.


I think it"s because the PSPSDK variable isn't declared but i've writed in the cygwin.bat :(

Can anyone help me?

Thank You!

My File :
Makefile :
Code:

TARGET = hello
OBJS = main.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


Cygwin.bat

Code:

@echo off

C:
chdir C:\cygwin\bin

set path=%path%;C:/cygwin/usr/local/pspdev/bin
set PSPSDK=C:/cygwin/usr/local/pspdev/psp/sdk

bash --login -i



Sorry for my bad english...
Back to top
View user's profile Send private message
0okm0000



Joined: 13 Jan 2006
Posts: 116

PostPosted: Wed May 17, 2006 2:04 am    Post subject: Reply with quote

Code:
@echo off

C:
chdir C:\cygwin\bin

set PSPDEV=/usr/local/pspdev
set PSPSDK=/usr/local/pspdev/psp/sdk
set PATH=%PATH%;%PSPDEV%/bin;%PSPSDK%/bin;/usr/include/mingw

bash --login -i

_________________
PSP hardware hack
http://0okm.blogspot.com/
Back to top
View user's profile Send private message Visit poster's website
spyk



Joined: 22 Mar 2006
Posts: 14

PostPosted: Wed May 17, 2006 4:00 am    Post subject: Reply with quote

I've changed my cygwin.bat with your, but it say too:

Code:

Make: psp-config: command not found
Makefile:12 /lib/build.mak: No such file or directory
make: *** No rule to make target '/lib/build.mak'. Stop.


Why have I always unique problem inthe world!??
Back to top
View user's profile Send private message
zshadow



Joined: 26 Dec 2005
Posts: 42

PostPosted: Wed May 17, 2006 4:05 am    Post subject: Reply with quote

Code:
C:\cygwin\home\Administrator


Code:
.bashrc


add to end of file:

Code:
## PSPDEV PATH SETTINGS
export PATH="/usr/local/pspdev/bin:$PATH"
Back to top
View user's profile Send private message
spyk



Joined: 22 Mar 2006
Posts: 14

PostPosted: Wed May 17, 2006 4:17 am    Post subject: Reply with quote

Already the same error...

Ps : C:\cygwin\home\Administrator doesn't exist of my computer...
My session name is "tous"
Back to top
View user's profile Send private message
Gary13579



Joined: 15 Aug 2005
Posts: 93

PostPosted: Wed May 17, 2006 6:04 am    Post subject: Reply with quote

Then open up c:\cygwin\home\tous\.bashrc and add what he said to the end of it.
Also try using the command "psp-gcc -v". This should show some info about the PSP GCC compiler, else spit out an error about command not found.
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Wed May 17, 2006 7:00 am    Post subject: Reply with quote

ookmoo uses mingw so just edit for cygwin

a really much simpler way is to open up your
computer properties and go into enviroment
settings and then edit your PATH there and then
you will not have to rely on cygwin bash and you
could easily use cmd prompt :)
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
spyk



Joined: 22 Mar 2006
Posts: 14

PostPosted: Wed May 17, 2006 8:39 pm    Post subject: Reply with quote

Same error! lol

I've writed psp-gcc -v :
Code:

$ psp-gcc -v
Using built-in specs.
Target: psp
Configured with: ../configure --prefix=/usr/local/pspdev --target=psp --enable-l
anguages=c --with-newlib --without-headers
Thread model: single
gcc version 4.0.2 (PSPDEV 20051022)
Back to top
View user's profile Send private message
Gary13579



Joined: 15 Aug 2005
Posts: 93

PostPosted: Thu May 18, 2006 5:55 am    Post subject: Reply with quote

As far as I can tell, $PSPSDK isn't getting set properly. Try typing in "echo $PSPDEV".
Back to top
View user's profile Send private message
Viper8896



Joined: 26 Jan 2006
Posts: 110

PostPosted: Thu May 18, 2006 4:13 pm    Post subject: Reply with quote

shouldnt this be in psp sdk support? moderator move this please
Back to top
View user's profile Send private message
spyk



Joined: 22 Mar 2006
Posts: 14

PostPosted: Fri May 19, 2006 12:58 am    Post subject: Reply with quote

Code:

tous@famille ~
$ echo $PSPDEV
/usr/local/pspdev


:]
But when I write MAKE, it say the the always same error...
:[
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri May 19, 2006 1:02 am    Post subject: Reply with quote

Moved to PSPSDK Support and Development.
Back to top
View user's profile Send private message Visit poster's website
mafia1ft



Joined: 29 Mar 2006
Posts: 17

PostPosted: Mon May 22, 2006 5:45 pm    Post subject: Reply with quote

iget the same error and i'm geting really pi**ed off help me
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