PSPSDK Setup....

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
spyk
Posts: 14
Joined: Wed Mar 22, 2006 9:50 pm

PSPSDK Setup....

Post by spyk »

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: Select all

CD projets
CD Hello World
I write

Code: Select all

make
And it say :

Code: Select all

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: Select all

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: Select all

@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...
User avatar
0okm0000
Posts: 116
Joined: Fri Jan 13, 2006 9:51 am
Contact:

Post by 0okm0000 »

Code: Select all

@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/
spyk
Posts: 14
Joined: Wed Mar 22, 2006 9:50 pm

Post by spyk »

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

Code: Select all

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!??
zshadow
Posts: 42
Joined: Mon Dec 26, 2005 5:36 am

Post by zshadow »

Code: Select all

C:\cygwin\home\Administrator

Code: Select all

.bashrc
add to end of file:

Code: Select all

## PSPDEV PATH SETTINGS
export PATH="/usr/local/pspdev/bin:$PATH"
spyk
Posts: 14
Joined: Wed Mar 22, 2006 9:50 pm

Post by spyk »

Already the same error...

Ps : C:\cygwin\home\Administrator doesn't exist of my computer...
My session name is "tous"
Gary13579
Posts: 93
Joined: Mon Aug 15, 2005 7:43 am

Post by Gary13579 »

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.
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

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
spyk
Posts: 14
Joined: Wed Mar 22, 2006 9:50 pm

Post by spyk »

Same error! lol

I've writed psp-gcc -v :

Code: Select all

$ 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)
Gary13579
Posts: 93
Joined: Mon Aug 15, 2005 7:43 am

Post by Gary13579 »

As far as I can tell, $PSPSDK isn't getting set properly. Try typing in "echo $PSPDEV".
Viper8896
Posts: 110
Joined: Thu Jan 26, 2006 6:20 pm

Post by Viper8896 »

shouldnt this be in psp sdk support? moderator move this please
spyk
Posts: 14
Joined: Wed Mar 22, 2006 9:50 pm

Post by spyk »

Code: Select all

tous@famille ~
$ echo $PSPDEV
/usr/local/pspdev
:]
But when I write MAKE, it say the the always same error...
:[
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Moved to PSPSDK Support and Development.
mafia1ft
Posts: 17
Joined: Wed Mar 29, 2006 4:45 pm

Post by mafia1ft »

iget the same error and i'm geting really pi**ed off help me
Post Reply