Compile for psp from linux

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

Moderators: cheriff, TyRaNiD

keit.c
Posts: 21
Joined: Wed Aug 16, 2006 10:52 am
Contact:

Post by keit.c »

thanks for the answers and your interest:
Here what I have made:

Code: Select all

saw@ubuntu:~$ cd /usr/local/pspdev/psp/sdk/samples/debug$
saw@ubuntu:/usr/local/pspdev/psp/sdk/samples/debug$ export  PATH="/usr/local/psp dev/bin:$PATH"
saw@ubuntu:/usr/local/pspdev/psp/sdk/samples/debug$ sudo make kxploit
Password:
make: *** No rule to make target `kxploit'.  Stop.
saw@ubuntu:/usr/local/pspdev/psp/sdk/samples/debug$
What mistake?

ty
keit.c
Posts: 21
Joined: Wed Aug 16, 2006 10:52 am
Contact:

Post by keit.c »

Help Me,,
Ty
__count
Posts: 22
Joined: Thu Mar 23, 2006 8:40 pm

Post by __count »

Did you install the PSP toolchain and have you run toolchain.sh?
keit.c
Posts: 21
Joined: Wed Aug 16, 2006 10:52 am
Contact:

Post by keit.c »

yy
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

kxploit isnt installed mate..

you have to find it ( i havent got it)
keit.c
Posts: 21
Joined: Wed Aug 16, 2006 10:52 am
Contact:

Post by keit.c »

Wally4000 wrote:kxploit isnt installed mate..

you have to find it ( i havent got it)
where i find??
keit.c
Posts: 21
Joined: Wed Aug 16, 2006 10:52 am
Contact:

Post by keit.c »

help Me!
please...
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

The pspsdk doesn't need any extra programs installed for "make kxploit" to work. The reason for your original problem is probably because there's nothing in "/usr/local/pspdev/psp/sdk/samples/debug" to actually build -- it's just subdirectories in there. Try building the sio sample instead:

Code: Select all

cd /usr/local/pspdev/psp/sdk/samples/debug/sio
export PATH="/usr/local/pspdev/bin:$PATH"
sudo env PATH=$PATH make kxploit
The "env PATH=$PATH" part is necessary only when using sudo, because sudo likes to clear the PATH variable. You won't need that when building normal code in a directory you own.
keit.c
Posts: 21
Joined: Wed Aug 16, 2006 10:52 am
Contact:

Post by keit.c »

Code: Select all

saw@ubuntu:~$ nautilus /usr/local/pspdev/psp/sdk/samples/debug
saw@ubuntu:~$ cd /usr/local/pspdev/psp/sdk/samples/debug/sio
saw@ubuntu:/usr/local/pspdev/psp/sdk/samples/debug/sio$ export PATH="/usr/local/ pspdev/bin:$PATH"
saw@ubuntu:/usr/local/pspdev/psp/sdk/samples/debug/sio$ sudo env PATH=$PATH make  kxploit
Password:
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk /include -O2 -G0 -Wall   -c -o main.o main.c
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk /include -O2 -G0 -Wall  -L. -L/usr/local/pspdev/psp/sdk/lib   main.o  -lpspdebug  -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lpspnet -lpspnet_inet -lpspn et_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -lpsphprm_driver - o sio.elf
psp-fixup-imports sio.elf
mksfo 'SIO Test' PARAM.SFO
mkdir -p "sio"
psp-strip sio.elf -o sio/EBOOT.PBP
mkdir -p "sio%"
pack-pbp "sio%/EBOOT.PBP" PARAM.SFO NULL  \
                NULL NULL NULL  \
                NULL NULL NULL

Thanks thousands! The two cartelle has been created with the eboot!
YYYYYYYyyyyy!!!!!!!!!!!!!!!
jimparis 4 president !
keit.c
Posts: 21
Joined: Wed Aug 16, 2006 10:52 am
Contact:

Post by keit.c »

Code: Select all

saw@ubuntu:/usr/local/pspdev/psp/sdk/samples/debug/profiler$ export PATH="/usr/local/pspdev/bin:$PATH"
saw@ubuntu:/usr/local/pspdev/psp/sdk/samples/debug/profiler$ sudo env PATH=$PATH make kxploit
Password:
env: pspdev/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games: Nessun file o directory
saw@ubuntu:/usr/local/pspdev/psp/sdk/samples/debug/profiler$
Why now it does not compile?
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Code: Select all

export PATH="/usr/local/ pspdev/bin:$PATH"
most likely because you have extra spaces in there... fix that, and also try

Code: Select all

sudo env PATH="$PATH" make kxploit
or do away with all this sudo and env nonsense by building code as your normal user, in directories you have access to:

Code: Select all

cp -rv /usr/local/pspdev/psp/sdk/samples/debug /tmp/debug
cd /tmp/debug
make kxploit
keit.c
Posts: 21
Joined: Wed Aug 16, 2006 10:52 am
Contact:

Post by keit.c »

jimparis wrote:

Code: Select all

export PATH="/usr/local/ pspdev/bin:$PATH"
most likely because you have extra spaces in there... fix that, and also try

Code: Select all

sudo env PATH="$PATH" make kxploit
or do away with all this sudo and env nonsense by building code as your normal user, in directories you have access to:

Code: Select all

cp -rv /usr/local/pspdev/psp/sdk/samples/debug /tmp/debug
cd /tmp/debug
make kxploit
Thanks Thousands for the attention that you have dedicated to me!
Byeeeeeeeeeee
Post Reply