| View previous topic :: View next topic |
| Author |
Message |
Umin
Joined: 08 May 2009 Posts: 6
|
Posted: Sun Jun 14, 2009 2:22 pm Post subject: The program witch i Compiled by devkitPro cannot be run |
|
|
My PSP system : 5.00M33
Error code :8002013C
this is Makefile:
| Code: | PSPSDK=$(shell psp-config --pspsdk-path)
PSPLIBSDIR=$(PSPSDK)/..
TARGET = Demo
OBJS = main.o gui.o error.o EXTERN/freemem.o EXTERN/graphics.o EXTERN/framebuffer.o
BUILD_PRX = 1
PSP_FW_VERSION=500
CFLAGS = -G0 -w -O2 -D_DEBUG_LOG
CXXFLAGS = $(CFLAGS) -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS =
LIBS = -lpspgum -lpspgu -lpng -lz -lm -lpsppower -lstdc++
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Demo
PSP_EBOOT_ICON = ICON0.PNG
PSP_EBOOT_PIC1 = PIC1.PNG
PSPSDK=$(shell psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin
include $(PSPSDK)/lib/build.mak |
and main.c
| Code: | #include "main.h"
PSP_MODULE_INFO("YouRlayer", 0, 1, 0);
PSP_MAIN_THREAD_ATTR(0);
//PSP_HEAP_SIZE_KB(16 * 1024);
PSP_HEAP_SIZE_MAX();
/*************/
/* Globals */
/*************/
extern unsigned selection_Status=0;
//0:menu; 1:play;
extern unsigned selection_selector=1;
//1:play; 2:music library; 3:visual; 4:EQ;...9:quit
extern unsigned selection_selector_bakup=0;
extern unsigned kindOfMusic=1;
//1:ATRAC; 2:MP3; 3:FLAC
extern unsigned play_status=0;
//0:stop; 1:playing; 2:pause;
extern unsigned play_load=0;
//extern Conf *config;
/******************************************************************************************/
/******************************************************************************************/
int Exit=1;
SceCtrlData pad;
int oldpad;
/******************************************************************************************/
/******************************************************************************************/
/* Power callback */
static int exit_callback(int arg1, int arg2, void *common){
sceKernelExitGame();
return 0;
}
int CallbackThread(SceSize args, void *argp){
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCallback(cbid);
return 0;
}
/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void){
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, THREAD_ATTR_USER, 0);
if(thid >= 0)
{
sceKernelStartThread(thid, 0, 0);
}
return thid;
}
/******************************************************************************************/
/******************************************************************************************/
void ctrl_menu(int * quit){
sceCtrlPeekBufferPositive(&pad,1);
if(pad.Buttons!=oldpad){
if(pad.Buttons&PSP_CTRL_LEFT)
selection_selector-=3;
if(pad.Buttons&PSP_CTRL_RIGHT)
selection_selector+=3;
if(pad.Buttons&PSP_CTRL_CIRCLE){
switch(selection_selector){
case 1:
selection_Status=1;
break;
case 2:
selection_Status=2;
break;
case 3:
selection_Status=3;
break;
case 4:
selection_Status=4;
break;
case 5:
selection_Status=5;
break;
case 6:
selection_Status=6;
break;
case 7:
selection_Status=7;
break;
case 8:
selection_Status=8;
break;
case 9:
selection_Status=9;
Exit=0;
}
*quit=0;
}
}
if(selection_selector>9)selection_selector=1;
if(selection_selector<1)selection_selector=9;
oldpad=pad.Buttons;
}
void ctrl_playing(int *quit){
sceCtrlPeekBufferPositive(&pad,1);
if(pad.Buttons!=oldpad){
if(pad.Buttons&PSP_CTRL_CROSS)
*quit=0;
if(pad.Buttons&PSP_CTRL_START)
/*Play_PP()*/;
if(pad.Buttons&PSP_CTRL_SQUARE){
/*Music_Stop()*/;
play_status=0;
}
if(pad.Buttons&PSP_CTRL_TRIANGLE);
if(pad.Buttons&PSP_CTRL_SELECT);
if(pad.Buttons&PSP_CTRL_LTRIGGER)
/*Play_Next()*/;
if(pad.Buttons&PSP_CTRL_RTRIGGER)
/*Play_PREW()*/;
}
if(pad.Buttons&PSP_CTRL_LEFT)
/*Music_SetPos(Music_GetPos()+5000000)*/;
if(pad.Buttons&PSP_CTRL_RIGHT)
/*Music_SetPos(Music_GetPos()-5000000)*/;
oldpad=pad.Buttons;
}
void playing(){
load_playing_images();
int *quit=1;
while(*quit){
ctrl_playing(quit);
gui_playing();
}
gui_freeImagePlaying();
}
void menu(){
load_menu_images();
int *quit=1;
while(*quit){
ctrl_menu(quit);
gui_menu();
}
gui_freeImageMenu();
}
main(){
gui_init();
SetupCallbacks();
//pspDebugInstallErrorHandler(errorHandler);
while(Exit){
switch(selection_Status){
case 0:
menu();
break;
case 1:
playing();
break;
}
}
gui_freeImageCommon();
gui_distroyFonts();
sceKernelExitGame();
} |
who can tell me whats the broblem please?[/code]
Last edited by Umin on Sun Jun 14, 2009 3:04 pm; edited 2 times in total |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Sun Jun 14, 2009 2:30 pm Post subject: |
|
|
Its look like your using a library that can not be found. You should use the precompile toolchain thats on this forum, for its updated with the libraries needed to prevent this. If you are liading a prx library, make sure its existing, spelt right. _________________ PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ? |
|
| Back to top |
|
 |
Umin
Joined: 08 May 2009 Posts: 6
|
Posted: Sun Jun 14, 2009 3:11 pm Post subject: |
|
|
I removed some no-use library in makefile,seem like it neednt load prx library now,but it still cannot be run...
And I cannot download the precompile toolchain on this forum,the link has been failure. |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Sun Jun 14, 2009 3:25 pm Post subject: |
|
|
It should work.... Which DevKit are you using? _________________ PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ? |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Sun Jun 14, 2009 3:33 pm Post subject: |
|
|
Try instead of
PSP_HEAP_SIZE_MAX();
PSP_HEAP_SIZE_KB(-256);
That'll allocate all memory but 256kb to the app |
|
| Back to top |
|
 |
Umin
Joined: 08 May 2009 Posts: 6
|
Posted: Sun Jun 14, 2009 3:49 pm Post subject: |
|
|
DevKit installed by devkitProUpdater-1.5.0...
It still not work whatever I redit PSP_HEAP_SIZE_MAX() to PSP_HEAP_SIZE_KB(-256)....
Orz... |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun Jun 14, 2009 5:48 pm Post subject: |
|
|
Old devkits are for 1.50 based homebrew and won't work on newer firmwares without something to run that old stuff, like LEDA. If you're in Windows, use Heimdall's win32 devkit (look in the thread in this forum).
Also, you should make your homebrew user mode.
| Code: | PSP_MODULE_INFO("name", 0, 1, 0);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER);
PSP_HEAP_SIZE_KB(-256);
|
|
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Mon Jun 15, 2009 1:43 am Post subject: |
|
|
And download any thing you need from the svn _________________ PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ? |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Mon Jun 15, 2009 8:40 am Post subject: |
|
|
| Really the program witch is pure evil. |
|
| Back to top |
|
 |
Umin
Joined: 08 May 2009 Posts: 6
|
Posted: Sun Jun 28, 2009 1:52 am Post subject: |
|
|
| Thank you guys,i have found the error yet. |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Sun Jun 28, 2009 8:10 am Post subject: |
|
|
And remember this:
If you get an error, its best to look at the pspkerror.h in your sdk, or look online for an answer. For its most likely that your sdk could be out-of-date. _________________ PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ? |
|
| Back to top |
|
 |
slasher2661996
Joined: 22 Feb 2009 Posts: 91 Location: Melbourne Australia ZOMG
|
|
| Back to top |
|
 |
|