How can I compile Hellopsp with PSPSDK??

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

Moderators: cheriff, TyRaNiD

Post Reply
ironbird
Posts: 6
Joined: Sat Jul 02, 2005 11:59 am

How can I compile Hellopsp with PSPSDK??

Post by ironbird »

I tried to compile the well-known hellopsp source.
I changed function psp** -> sce**.
But I just got some error messanges

Code: Select all

/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o:../../../sdk/star
tup/crt0.S:110: undefined reference to `main'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o: In function `__entrytable':
../../../sdk/startup/crt0.S:(.rodata.sceResident+0xc): undefined reference to `module_info'
collect2: ld returned 1 exit status


What is the problem?? How can I fix it?
Plz Help me...
etx
Posts: 33
Joined: Sat Apr 02, 2005 12:54 am
Location: Detroit

Post by etx »

helloworld dosen't depend on any external headers or libs, what's the point?
striker
Posts: 1
Joined: Thu Jul 07, 2005 3:45 pm

Post by striker »

Just follow the directions in this link to compile helloworld with the gcc-4.0.0-based toolchain.

http://staff.philau.edu/barberej/psp_dev_guide.htm

--Striker
laichung
Posts: 123
Joined: Fri May 06, 2005 2:02 pm

Re: How can I compile Hellopsp with PSPSDK??

Post by laichung »

Change psp to sce is not enough.
you need to include those library in program (for example , <pspkernel.h>)
and need to call "PSP_MODULE_INFO("HELLOPSP", 0, 1, 1);" function to set the module_info <- this is what the error come from.


ironbird wrote:I tried to compile the well-known hellopsp source.
I changed function psp** -> sce**.
But I just got some error messanges

Code: Select all

/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o&#58;../../../sdk/star
tup/crt0.S&#58;110&#58; undefined reference to `main'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o&#58; In function `__entrytable'&#58;
../../../sdk/startup/crt0.S&#58;&#40;.rodata.sceResident+0xc&#41;&#58; undefined reference to `module_info'
collect2&#58; ld returned 1 exit status


What is the problem?? How can I fix it?
Plz Help me...
dingofr
Posts: 3
Joined: Fri May 06, 2005 11:10 pm

Re: How can I compile Hellopsp with PSPSDK??

Post by dingofr »

HI!

thx, its works great for me.
laichung wrote:Change psp to sce is not enough.
you need to include those library in program (for example , <pspkernel.h>)
and need to call "PSP_MODULE_INFO("HELLOPSP", 0, 1, 1);" function to set the module_info <- this is what the error come from.


ironbird wrote:I tried to compile the well-known hellopsp source.
I changed function psp** -> sce**.
But I just got some error messanges

Code: Select all

/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o&#58;../../../sdk/star
tup/crt0.S&#58;110&#58; undefined reference to `main'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o&#58; In function `__entrytable'&#58;
../../../sdk/startup/crt0.S&#58;&#40;.rodata.sceResident+0xc&#41;&#58; undefined reference to `module_info'
collect2&#58; ld returned 1 exit status


What is the problem?? How can I fix it?
Plz Help me...
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

striker wrote:Just follow the directions in this link to compile helloworld with the gcc-4.0.0-based toolchain.

http://staff.philau.edu/barberej/psp_dev_guide.htm
Although these instructions may be quite valid for building hellopsp... it would be far better use of time to install the pspsdk and learn from the samples.
Post Reply