Random Homebrew: Impossible Mission
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

1.50 to 6.60

Forum rules
Any post not directly related to programming will be moderated.
Do not request people to code something for you.
Avoid posting messages that do not bring anything to the conversation. We want the threads in this subforum to stay focused.

1.50 to 6.60

Postby npissoawsome » Wed Mar 21, 2012 10:43 pm

So, I'm following this tutorial: http://www.psp-programming.com/forums/i ... c,359.html

And I did everything they said, compiled it, and I had no errors

When I ran it on my psp, it just froze, then crashed, so I looked at the log when I built it, and it said this
Code: Select all
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150  -L. -L/usr/local/pspdev/psp/sdk/lib   main.o graphics.o framebuffer.o -lpspgu -lpng -lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o main.elf


and I saw this line
Code: Select all
-D_PSP_FW_VERSION=150


I'm assuming that means that this was compiled for a PSP firmware of 1.50, my question is, how would I change that so I could use this on my 6.60 PRO-B10 PSP Go
npissoawsome
 
Posts: 40
Joined: Mon Mar 19, 2012 10:01 pm

Re: 1.50 to 6.60

Postby Xian Nox » Wed Mar 21, 2012 11:59 pm

Code: Select all
-D_PSP_FW_VERSION=660

There was something else in the Makefile too, iirc BUILD_PRX=1, though not sure. Been a while for me.
Spoiler
Disturbed0ne wrote:PS. EVERYONE should like girls. they're just so soft. :oops:
Moderator 80% corrupt. That's funny, I don't feel corrupt. In fact, I feel pretty good.
What looks like a blog of mine can be seen here.
User avatar
Xian Nox
Moderator
 
Posts: 6003
Joined: Fri Nov 05, 2010 5:27 pm
Location: /home/xian/n-field

Re: 1.50 to 6.60

Postby m0skit0 » Thu Mar 22, 2012 8:47 am

Xian Nox wrote:There was something else in the Makefile too, iirc BUILD_PRX=1, though not sure. Been a while for me.

You're correct.

Code: Select all
BUILD_PRX=1
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4783
Joined: Mon Sep 27, 2010 6:01 pm

Re: 1.50 to 6.60

Postby npissoawsome » Fri Mar 23, 2012 1:28 am

m0skit0 wrote:
Xian Nox wrote:There was something else in the Makefile too, iirc BUILD_PRX=1, though not sure. Been a while for me.

You're correct.

Code: Select all
BUILD_PRX=1


Alright, so I made my main.prx, is it automatically included in my EBOOT.PBP, or do I have to put that into the same directory as my EBOOT.PBP, on my PSP?

Also, I added this line
Code: Select all
<command-line>: warning: "_PSP_FW_VERSION" redefined

to the CFLAGS part of my makefile, and this is what came up in my terminal window
Code: Select all
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=660 -D_PSP_FW_VERSION=150   -c -o framebuffer.o framebuffer.c
<command-line>: warning: "_PSP_FW_VERSION" redefined


My machine made multiple files for me,
- Converted all .c files to .o
- Made main.elf
- Made EBOOT.PBP
- Made main.prx
- Made PARAM.SFO

The files I assume that I need are EBOOT.PBP and main.prx, so I plopped those into a folder in PSP/GAME, and when I run it, it still crashes my PSP, is there anything that will help me debug this, so I can see what caused the crash, and therefor fix it?

Alright, so I just compiled a HelloWorld app, with the exact same options (except. the .o and name of EBOOT.PBP), and it worked fine on my PSP, there's definitely something wrong with my code, or some incompatibility issues

Alright, I've figured out that this wasn't compiled wrong, I'm using incompatible code
npissoawsome
 
Posts: 40
Joined: Mon Mar 19, 2012 10:01 pm

Re: 1.50 to 6.60

Postby noname120 » Fri Mar 23, 2012 10:43 am

better you compile it for 550 or so: it':ll allow more guys to play it
noname120
 
Posts: 658
Joined: Thu Oct 07, 2010 4:29 pm

Re: 1.50 to 6.60

Postby m0skit0 » Fri Mar 23, 2012 11:05 am

npissoawsome wrote:Alright, so I made my main.prx, is it automatically included in my EBOOT.PBP, or do I have to put that into the same directory as my EBOOT.PBP, on my PSP?

By doing make, the PRX should be included into EBOOT.PBP automatically. You don't need to copy main.prx to the PSP.

npissoawsome wrote:Also, I added this line

Code: Select all
<command-line>: warning: "_PSP_FW_VERSION" redefined


to the CFLAGS part of my makefile

This makes no sense at all.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4783
Joined: Mon Sep 27, 2010 6:01 pm

Re: 1.50 to 6.60

Postby JJS » Fri Mar 23, 2012 11:13 am

Don't pass the FW version on the CFLAGS. Instead add the line
Code: Select all
PSP_FW_VERSION = 660
to the makefile.

Edit: Also there appears to be confusion about what this variable does. There are only very few instances in the SDK where it is used. Code generation is completely independent of it, so there is probably no difference at all between defining it to e.g. 300 or 660. The resulting binary will run on any PSP with CFW.
JJS
Big Beholder
 
Posts: 1516
Joined: Mon Sep 27, 2010 2:18 pm

Re: 1.50 to 6.60

Postby npissoawsome » Fri Mar 23, 2012 7:25 pm

JJS wrote:Don't pass the FW version on the CFLAGS. Instead add the line
Code: Select all
PSP_FW_VERSION = 660
to the makefile.

Edit: Also there appears to be confusion about what this variable does. There are only very few instances in the SDK where it is used. Code generation is completely independent of it, so there is probably no difference at all between defining it to e.g. 300 or 660. The resulting binary will run on any PSP with CFW.


Thanks for the help, and yeah, I got a chunk of the code to run, I think the problem I'm having, is when I try to set the background image, do you know how to include Images into my game?
npissoawsome
 
Posts: 40
Joined: Mon Mar 19, 2012 10:01 pm

Re: 1.50 to 6.60

Postby Yoti » Mon Mar 26, 2012 12:44 pm

npissoawsome wrote:psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=660 -D_PSP_FW_VERSION=150 -c -o framebuffer.o framebuffer.c

So, it's redefined from 660 to 150 =)
User avatar
Yoti
VIP
 
Posts: 246
Joined: Sun Oct 17, 2010 4:49 am
Location: Russia

Re: 1.50 to 6.60

Postby npissoawsome » Mon Mar 26, 2012 7:28 pm

Does anyone know how to add PNG images to my game? So I could set the background image or something
npissoawsome
 
Posts: 40
Joined: Mon Mar 19, 2012 10:01 pm

Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests