QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Compiling eboot need help

This is a discussion on Compiling eboot need help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I have installed psp toolchain and now on CYGWIN I get this error screen: Could this be because my code ...

Reply
 
LinkBack Thread Tools
Old 04-05-2006, 12:47 AM   #1
 
Join Date: Jan 2006
Posts: 256
Trader Feedback: 0
Question Compiling eboot need help

I have installed psp toolchain and now on CYGWIN I get this error screen:



Could this be because my code is wrongor is it something else?

This is my main.c code:

Code:
// Hello World - My First App for the PSP

/*
     This program was created by Christopher Cooke
     It is a simple "Hello World" Application.
*/
#include <pspkernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("HELLOWORLD",0,1,1);
 #define printf pspDebugScreenPrintf
 /* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
          sceKernelExitGame();
          return 0;
}

/* Callback thread */
int CallbackThread(SceSize args, void *argp) {
          int cbid;

          cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
          sceKernelRegisterExitCallback(cbid);

          sceKernelSleepThreadCB();

          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, 0, 0);
          if(thid >= 0) {
                    sceKernelStartThread(thid, 0, 0);
          }

          return thid;

int myFunction() {
          //Print Out 'A'
          return 0;
}
int main() {
          //Print Out 'B'
          myFunction();
          //Print Out 'C'
          return 0;
}
 int main() {
      pspDebugScreenInit();
SetupCallbacks()
 printf("Hello World");
  sceKernelSleepThread();
   return 0;
    }
And this is my Makefile code:

Code:
 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
chriscooke109 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 12:55 AM   #2

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

....this is quite funny actually, the tutorials said in the example code to NOT do the print out A fake function junk...
try this lol...
Code:
// Hello World - My First App for the PSP

/*
     This program was created by Christopher Cooke
     It is a simple "Hello World" Application.
*/
#include <pspkernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("HELLOWORLD",0,1,1);
#define printf pspDebugScreenPrintf
 /* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
          sceKernelExitGame();
          return 0;
}

/* Callback thread */
int CallbackThread(SceSize args, void *argp) {
          int cbid;

          cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
          sceKernelRegisterExitCallback(cbid);

          sceKernelSleepThreadCB();

          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, 0, 0);
          if(thid >= 0) {
                    sceKernelStartThread(thid, 0, 0);
          }

          return thid;
}
int main() {
pspDebugScreenInit();
SetupCallbacks();
printf("Hello World");
sceKernelSleepThread();
return 0;
}
lol, and copying and pasting isnt the right way to go just so ya know....
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 12:59 AM   #3
 
Join Date: Jan 2006
Posts: 256
Trader Feedback: 0
Default

Thanks but it's still not working, any othe ideas?

Last edited by chriscooke109; 04-05-2006 at 01:02 AM..
chriscooke109 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 02:22 AM   #4
 
Join Date: Jan 2006
Posts: 256
Trader Feedback: 0
Default

Anyone?
chriscooke109 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 04:29 AM   #5
 

 
Join Date: Mar 2006
Location: LOLWUT
Posts: 2,625
Trader Feedback: 1
Lightbulb

Instead of using SetupCallbacks(); use SetupCallback();. Drop the S. I was having the same problem, and i compiled without a problem. See if that works.
If it doesn't, then I don't know what else to tell you. :sad:

Last edited by PSPduh; 04-05-2006 at 04:30 AM.. Reason: I put an l next to SetupCallbacks();
PSPduh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 04:34 AM   #6
 

 
Join Date: Mar 2006
Location: LOLWUT
Posts: 2,625
Trader Feedback: 1
Default Sorry for the double post but....

Here is my main.c:
// Hello World - My First App for the PSP

/*
This program was created by PSPduh on 3/31/2006
It is a simple "Hello World" Application.
*/
#include <pspkernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("Hello World", 0, 1, 1);
#define printf pspDebugScreenPrintf
/* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}

/*Callback thread */
int CallbackThread(SceSize args, void *argp) {
int cbid;

cbid = sceKernelCreateCallback(" Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCall back(cbid);

sceKernelSleepThreadCB();

return 0;
}

/* Sets up the callback thread and returns it thread id */
int SetupCallback(void) {
int thid = 0;

thid = sceKernelCreateThread("up date_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >=0) {
sceKernelStartThread(thid , 0, 0);
}

return thid;
}

int main() {
pspDebugScreenInit();
SetupCallback();
printf("Hello World");
sceKernelSleepThread();
return 0;
}

Try to compare it with yours, and I compiled this without a problem.

EDITTED on 10/15/2006 - to hide my first name.

Last edited by duh; 10-15-2006 at 06:58 AM..
PSPduh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 03:33 AM   #7
Mindless Fanboy
 
Join Date: Mar 2006
Posts: 1,907
Trader Feedback: 0
Default

yeh i never put in that crap and it worked for me, eventually
FLai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
compiling , eboot

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 11:59 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us