Hacking NeoGamma R8 beta test

  • Thread starter Thread starter WiiPower
  • Start date Start date
  • Views Views 702,708
  • Replies Replies 1,083
Status
Not open for further replies.
source code won't compile for me when previous versions have compiled no bother

here's the error

Code:
main.c
d:/sourcecode/source/main.c: In function 'main':
d:/sourcecode/source/main.c:168: error: 'screenheight' undeclared (first use in
this function)
d:/sourcecode/source/main.c:168: error: (Each undeclared identifier is reported
only once
d:/sourcecode/source/main.c:168: error: for each function it appears in.)
d:/sourcecode/source/main.c:178: error: 'xfb' undeclared (first use in this func
tion)
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
 
source code won't compile for me either (previous versions compiled w/ no problems)

although my error is different than longtom's, it seems I am getting further than he is though

@longtom, make sure ur using the right libogc and u should at least get as far as I did

Code:
> "make" 
background.png
bin2s -a 32 /c/projects/Neogamma/data/background.png | powerpc-eabi-as -o background.png.o
echo "extern const u8" `(echo background.png | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo background.png | tr . _)`.h
echo "extern const u8" `(echo background.png | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo background.png | tr . _)`.h
echo "extern const u32" `(echo background.png | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo background.png | tr . _)`.h
gcbackuplauncher.dol
bin2s -a 32 /c/projects/Neogamma/data/gcbackuplauncher.dol | powerpc-eabi-as -o gcbackuplauncher.dol.o
echo "extern const u8" `(echo gcbackuplauncher.dol | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo gcbackuplauncher.dol | tr . _)`.h
echo "extern const u8" `(echo gcbackuplauncher.dol | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo gcbackuplauncher.dol | tr . _)`.h
echo "extern const u32" `(echo gcbackuplauncher.dol | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo gcbackuplauncher.dol | tr . _)`.h
Toy.c
Toy_video.c
apploader.c
arial16.c
background.c
codes.c
config.c
dol.c
dolmenu.c
dvd_broadway.c
easywbfs.c
font.c
geckodvd.c
geckogreen.c
geckogrey.c
geckomenu.c
identify.c
libcios.c
main.c
multidol.c
patchcode.c
sdhc.c
storage.c
c:/projects/Neogamma/source/storage.c:27: error: conflicting type qualifiers for '__io_usbstorage'
c:/devkitPro/libogc/include/ogc/usbstorage.h:67: note: previous declaration of '__io_usbstorage' was here
make[1]: *** [storage.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:08
 
think it's a corrupted zip files or something cause downloaded both links from the first page and both give different errors on compiling the one from mediafire gives me the error I got and the rapidshare one gives me xflaks error
 
longtom1 said:
think it's a corrupted zip files or something cause downloaded both links from the first page and both give different errors on compiling the one from mediafire gives me the error I got and the rapidshare one gives me xflaks error
that's weird, because I downloaded the one from mediafire, not rapidshare
 
xflak40 said:
source code won't compile for me either (previous versions compiled w/ no problems)

although my error is different than longtom's, it seems I am getting further than he is though

@longtom, make sure ur using the right libogc and u should at least get as far as I did

Code:
> "make" 
background.png
bin2s -a 32 /c/projects/Neogamma/data/background.png | powerpc-eabi-as -o background.png.o
echo "extern const u8" `(echo background.png | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo background.png | tr . _)`.h
echo "extern const u8" `(echo background.png | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo background.png | tr . _)`.h
echo "extern const u32" `(echo background.png | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo background.png | tr . _)`.h
gcbackuplauncher.dol
bin2s -a 32 /c/projects/Neogamma/data/gcbackuplauncher.dol | powerpc-eabi-as -o gcbackuplauncher.dol.o
echo "extern const u8" `(echo gcbackuplauncher.dol | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo gcbackuplauncher.dol | tr . _)`.h
echo "extern const u8" `(echo gcbackuplauncher.dol | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo gcbackuplauncher.dol | tr . _)`.h
echo "extern const u32" `(echo gcbackuplauncher.dol | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo gcbackuplauncher.dol | tr . _)`.h
Toy.c
Toy_video.c
apploader.c
arial16.c
background.c
codes.c
config.c
dol.c
dolmenu.c
dvd_broadway.c
easywbfs.c
font.c
geckodvd.c
geckogreen.c
geckogrey.c
geckomenu.c
identify.c
libcios.c
main.c
multidol.c
patchcode.c
sdhc.c
storage.c
c:/projects/Neogamma/source/storage.c:27: error: conflicting type qualifiers for '__io_usbstorage'
c:/devkitPro/libogc/include/ogc/usbstorage.h:67: note: previous declaration of '__io_usbstorage' was here
make[1]: *** [storage.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:08


Bud,

Try removing the line from storage.c
 
comment out the line in usbstorage.h

//extern const DISC_INTERFACE __io_usbstorage;

linking ... boot.elf
output ... boot.dol

> Process Exit Code: 0
> Time Taken: 00:08
 
that got it to compile!

I was going to do that myself, but I have trouble figuring out if a line is very important and if commenting it out would screw something else up... i'm assuming commenting this line won't affect the stability of the app, right?

also, how could this compile for wiipower but not longtom or I? Did he maybe accidentally share an incomplete source? Or is there some other reason why that line isn't causing problems for wiipower but it is for others.

edit: i also noticed it compiled very quickly, almost too quickly, other RCs took over 30 seconds to compile, this one did it in about 10 seconds... its probably nothing, but i thought it was worth mentioning
 
or it could of been a test lol, un-commenting a line to see if ppl ask for help lolz, who know has his crazy brilliant mind works lol
 
pepxl said:
or it could of been a test lol, un-commenting a line to see if ppl ask for help lolz, who know has his crazy brilliant mind works lol
lmao, seriously man, i'm at my cubicle right now chuckling... people in the next cube are gonna think i'm nuts!

Well, wiipower... we eventually passed your test and got it to compile
tongue.gif
... ur still the man, even if u are putting us to the test
wink.gif
 
if you open up the project file there's no makefile in the project where in previous versions there's always a makefile listed in the project
 
longtom1 said:
if you open up the project file there's no makefile in the project where in previous versions there's always a makefile listed in the project

make no difference i dont think, as long as its in the source folder PN will use it and will give errors if its not there
 
I know this is a REALLY stupid question, but what does the gameconfig.txt do?
 
xflak40 said:
pepxl said:
or it could of been a test lol, un-commenting a line to see if ppl ask for help lolz, who know has his crazy brilliant mind works lol
lmao, seriously man, i'm at my cubicle right now chuckling... people in the next cube are gonna think i'm nuts!

Well, wiipower... we eventually passed your test and got it to compile
tongue.gif
... ur still the man, even if u are putting us to the test
wink.gif

LOL. RC3* had the same compiling problem, guess wiipower forgot to remove it.
 
bula said:
xflak40 said:
pepxl said:
or it could of been a test lol, un-commenting a line to see if ppl ask for help lolz, who know has his crazy brilliant mind works lol
lmao, seriously man, i'm at my cubicle right now chuckling... people in the next cube are gonna think i'm nuts!

Well, wiipower... we eventually passed your test and got it to compile
tongue.gif
... ur still the man, even if u are putting us to the test
wink.gif

LOL. RC3* had the same compiling problem, guess wiipower forgot to remove it.
compiled ok for me about 1 hour ago
 
bula said:
xflak40 said:
pepxl said:
or it could of been a test lol, un-commenting a line to see if ppl ask for help lolz, who know has his crazy brilliant mind works lol
lmao, seriously man, i'm at my cubicle right now chuckling... people in the next cube are gonna think i'm nuts!

Well, wiipower... we eventually passed your test and got it to compile
tongue.gif
... ur still the man, even if u are putting us to the test
wink.gif

LOL. RC3* had the same compiling problem, guess wiipower forgot to remove it.
I also never had the same problem with RC3*, only RC4... meh, no biggie
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum