The program witch i Compiled by devkitPro cannot be run

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

Moderators: cheriff, TyRaNiD

Post Reply
Umin
Posts: 6
Joined: Fri May 08, 2009 11:13 am

The program witch i Compiled by devkitPro cannot be run

Post by Umin »

My PSP system : 5.00M33
Error code :8002013C

this is Makefile:

Code: Select all

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

#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&#40;selection_selector<1&#41;selection_selector=9;
    oldpad=pad.Buttons;
&#125;

void ctrl_playing&#40;int *quit&#41;&#123;
    sceCtrlPeekBufferPositive&#40;&pad,1&#41;;
    if&#40;pad.Buttons!=oldpad&#41;&#123;
        if&#40;pad.Buttons&PSP_CTRL_CROSS&#41;
          *quit=0;
        if&#40;pad.Buttons&PSP_CTRL_START&#41;
          /*Play_PP&#40;&#41;*/;
        if&#40;pad.Buttons&PSP_CTRL_SQUARE&#41;&#123;
          /*Music_Stop&#40;&#41;*/;
          play_status=0;
        &#125;
        if&#40;pad.Buttons&PSP_CTRL_TRIANGLE&#41;;
        if&#40;pad.Buttons&PSP_CTRL_SELECT&#41;;
        if&#40;pad.Buttons&PSP_CTRL_LTRIGGER&#41;
          /*Play_Next&#40;&#41;*/;
        if&#40;pad.Buttons&PSP_CTRL_RTRIGGER&#41;
          /*Play_PREW&#40;&#41;*/;
    &#125;
    if&#40;pad.Buttons&PSP_CTRL_LEFT&#41;
      /*Music_SetPos&#40;Music_GetPos&#40;&#41;+5000000&#41;*/;
    if&#40;pad.Buttons&PSP_CTRL_RIGHT&#41;
      /*Music_SetPos&#40;Music_GetPos&#40;&#41;-5000000&#41;*/;
    oldpad=pad.Buttons;
&#125;

void playing&#40;&#41;&#123;
    load_playing_images&#40;&#41;;
    int *quit=1;
    while&#40;*quit&#41;&#123;
        ctrl_playing&#40;quit&#41;;
        gui_playing&#40;&#41;;
    &#125;
    gui_freeImagePlaying&#40;&#41;;
&#125;

void menu&#40;&#41;&#123;
    load_menu_images&#40;&#41;;
    int *quit=1;
    while&#40;*quit&#41;&#123;
        ctrl_menu&#40;quit&#41;;
        gui_menu&#40;&#41;;
    &#125;
    gui_freeImageMenu&#40;&#41;;
&#125;

main&#40;&#41;&#123;
    gui_init&#40;&#41;;   
    SetupCallbacks&#40;&#41;;
    //pspDebugInstallErrorHandler&#40;errorHandler&#41;;
    while&#40;Exit&#41;&#123;
        switch&#40;selection_Status&#41;&#123;
            case 0&#58;
                menu&#40;&#41;;
                break;
            case 1&#58;
                playing&#40;&#41;;
                break;
        &#125;
    &#125;
    gui_freeImageCommon&#40;&#41;;
    gui_distroyFonts&#40;&#41;;
    sceKernelExitGame&#40;&#41;;
&#125;
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.
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

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 - ?
Umin
Posts: 6
Joined: Fri May 08, 2009 11:13 am

Post by Umin »

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.
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

It should work.... Which DevKit are you using?
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Try instead of
PSP_HEAP_SIZE_MAX();

PSP_HEAP_SIZE_KB(-256);

That'll allocate all memory but 256kb to the app
Umin
Posts: 6
Joined: Fri May 08, 2009 11:13 am

Post by Umin »

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...
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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

PSP_MODULE_INFO&#40;"name", 0, 1, 0&#41;;
PSP_MAIN_THREAD_ATTR&#40;PSP_THREAD_ATTR_USER&#41;;
PSP_HEAP_SIZE_KB&#40;-256&#41;;
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

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 - ?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Really the program witch is pure evil.
Umin
Posts: 6
Joined: Fri May 08, 2009 11:13 am

Post by Umin »

Thank you guys,i have found the error yet.
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

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 - ?
slasher2661996
Posts: 91
Joined: Sun Feb 22, 2009 8:32 am
Location: Melbourne Australia ZOMG

Post by slasher2661996 »

Post Reply