Can't compile swiss r149

Discuss one of the most feature filled GameCube applications here :)
Post Reply
User avatar
andzlay
Posts: 447
Joined: Thu Jul 08, 2010 12:53 am
Location: Germany

Can't compile swiss r149

Post by andzlay » Sun May 06, 2012 1:02 am

Hey guys

I svn-checked out r149 and can't compile it... I get these errors:

Code: Select all

C:\devkitPro\swiss-gc\cube\swiss>make
main.c
c:/devkitPro/swiss-gc/cube/swiss/source/main.c: In function 'populateVideoStr':
c:/devkitPro/swiss-gc/cube/swiss/source/main.c:55:15: error: 'TVPal576ProgScale' undeclared (first use in this function)
c:/devkitPro/swiss-gc/cube/swiss/source/main.c:55:15: note: each undeclared identifier is reported only once for each function it appears in
c:/devkitPro/swiss-gc/cube/swiss/source/main.c:61:20: error: 'TVPal576IntDfScale' undeclared (first use in this function)
c:/devkitPro/swiss-gc/cube/swiss/source/main.c: In function 'Initialise':
c:/devkitPro/swiss-gc/cube/swiss/source/main.c:94:14: error: 'TVPal576ProgScale' undeclared (first use in this function)
c:/devkitPro/swiss-gc/cube/swiss/source/main.c:103:14: error: 'TVPal576IntDfScale' undeclared (first use in this function)
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
Any hints?
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Can't compile swiss r149

Post by emu_kidid » Sun May 06, 2012 1:50 am

Update libogc from git
Image
User avatar
Extrems
Posts: 1312
Joined: Tue Aug 17, 2010 10:40 pm
Location: Québec, Canada
Contact:

Re: Can't compile swiss r149

Post by Extrems » Sun May 06, 2012 2:10 am

User avatar
Cubelover
Posts: 313
Joined: Wed Apr 07, 2010 1:22 am

Re: Can't compile swiss r149

Post by Cubelover » Sun May 06, 2012 9:30 pm

I had the same error. Then I updated to latest libogc and this time I got different errors:

Code: Select all

c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c: In function 'deviceHandler_FAT_readDir':
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:71:2: error: 'DIR' undeclared (first use in this function)
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:71:2: note: each undeclared identifier is reported only once for each function it appears in
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:71:7: error: 'dp' undeclared (first use in this function)
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:71:2: warning: implicit declaration of function 'opendir'
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:85:2: warning: implicit declaration of function 'readdir'
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:86:18: error: dereferencing pointer to incomplete type
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:86:43: error: dereferencing pointer to incomplete type
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:86:70: error: dereferencing pointer to incomplete type
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:90:53: error: dereferencing pointer to incomplete type
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:99:55: error: dereferencing pointer to incomplete type
c:/TortoiseSVN/swiss-gc/cube/swiss/source/devices/fat/deviceHandler-FAT.c:116:2: warning: implicit declaration of function 'closedir'
make[1]: *** [deviceHandler-FAT.o] Error 1
rm boxouter.tpl backdrop.tpl hdd.tpl btnhilight.tpl btnrefresh.tpl qoob.tpl boxinner.tpl btndevice.tpl btnnohilight.tpl gcdvdsmall.tpl sdsmall.tpl btnexit.tpl btnsettings.tpl wodeimg.tpl btninfo.tpl
"make": *** [build] Error 2
I don't know why I get FAT errors. I have compiled the libfat library with fragmentation support according to the steps in this wiki and replaced it wth the libfat.a that was bundled in latest libogc.
User avatar
andzlay
Posts: 447
Joined: Thu Jul 08, 2010 12:53 am
Location: Germany

Re: Can't compile swiss r149

Post by andzlay » Mon May 07, 2012 7:24 am

Nice after libogc update it works.
@Cubelover: have you copied the libfat-frag after the libogc update or before? ;)
User avatar
Cubelover
Posts: 313
Joined: Wed Apr 07, 2010 1:22 am

Re: Can't compile swiss r149

Post by Cubelover » Mon May 07, 2012 11:29 am

You mean the libfat.a file compiled from /libfat-frag/src ? Of course I copied it after the update.
User avatar
Cubelover
Posts: 313
Joined: Wed Apr 07, 2010 1:22 am

Re: Can't compile swiss r149

Post by Cubelover » Mon May 07, 2012 8:17 pm

@andylazy: Would you mind sharing your compiled r149 with me?
User avatar
andzlay
Posts: 447
Joined: Thu Jul 08, 2010 12:53 am
Location: Germany

Re: Can't compile swiss r149

Post by andzlay » Mon May 07, 2012 8:26 pm

I also copied fat.h from include to include in libogc... maybe that helps?
my compiled version: https://www.dropbox.com/s/hdvz49hmyg1cl ... s_r149.dol
but i haven't tested it on my cube yet...
User avatar
Cubelover
Posts: 313
Joined: Wed Apr 07, 2010 1:22 am

Re: Can't compile swiss r149

Post by Cubelover » Mon May 07, 2012 8:41 pm

andzlay wrote:I also copied fat.h from include to include in libogc... maybe that helps?
Sadly, no. Actually I have never been able to compile Swiss myself, even though I did all the steps.
Thanks for the link :)
User avatar
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: Can't compile swiss r149

Post by infact » Tue May 08, 2012 9:37 am

try with a clean swiss checkout and if that not helps a clean build environment. i guess something is wrong with your dkppc install.
infact
Image Image
User avatar
andzlay
Posts: 447
Joined: Thu Jul 08, 2010 12:53 am
Location: Germany

Re: Can't compile swiss r149

Post by andzlay » Tue May 08, 2012 1:32 pm

Cubelover, have you already tried it out?
User avatar
Cubelover
Posts: 313
Joined: Wed Apr 07, 2010 1:22 am

Re: Can't compile swiss r149

Post by Cubelover » Thu May 10, 2012 12:20 am

Yes I tried it out on my Wii but for some reason Swiss can't read the disc inserted. I can't get past the error screen. That's weird because I never had such a problem with Swiss before. Granted the last version I tried was an old one. Don't remember the rev, but the file size was around 1MB less than the file size of the current latest Swiss.

Will it give another try later but perhaps someone can test latest Swiss on their Wii and report the result?

Btw, I still can't compile Swiss. Same error as above. I guess Swiss just doesn't like me, lol.
User avatar
andzlay
Posts: 447
Joined: Thu Jul 08, 2010 12:53 am
Location: Germany

Re: Can't compile swiss r149

Post by andzlay » Tue Dec 04, 2012 4:29 pm

Well I tried to compile r183 today but I can't compile it...

Code: Select all

c:/Users/Andy/GC/swiss-gc/cube/swiss/source/gui/FrameBufferMagic.c:24:26: fatal
error: backdrop_tpl.h: No such file or directory
compilation terminated.
blankbanner.c
make[1]: *** [FrameBufferMagic.o] Error 1
make[1]: *** Waiting for unfinished jobs....
rm boxouter.tpl backdrop.tpl hdd.tpl btnhilight.tpl btnrefresh.tpl qoob.tpl boxi
nner.tpl btndevice.tpl btnnohilight.tpl gcdvdsmall.tpl sdsmall.tpl btnexit.tpl b
tnsettings.tpl wodeimg.tpl btninfo.tpl
make: *** [build] Error 2
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: Can't compile swiss r149

Post by megalomaniac » Tue Dec 04, 2012 8:22 pm

just downloaded, compiled fine

make clean and try again??
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Can't compile swiss r149

Post by emu_kidid » Tue Dec 04, 2012 9:56 pm

don't use --jobs=9 in makeme.bat. that's just a shortcut for me.
Image
BenoitRen
Posts: 263
Joined: Sun Jul 29, 2012 3:37 pm

Re: Can't compile swiss r149

Post by BenoitRen » Tue Dec 04, 2012 10:51 pm

andzlay wrote:I also copied fat.h from include to include in libogc... maybe that helps?
my compiled version: https://www.dropbox.com/s/hdvz49hmyg1cl ... s_r149.dol
but i haven't tested it on my cube yet...
Thanks for this, going to try it on my Wii. If it works I'll be able to start testing for regressions. :)
Hardware: Wii (PAL)
Hardware configuration: System Menu 4.1E, Priiloader
Swiss boot method: Modified Wii Swiss Booter provided by Extrems
Software medium: Retail discs
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Can't compile swiss r149

Post by emu_kidid » Tue Dec 04, 2012 11:14 pm

r146 is from before 0.3 though?
Image
BenoitRen
Posts: 263
Joined: Sun Jul 29, 2012 3:37 pm

Re: Can't compile swiss r149

Post by BenoitRen » Wed Dec 05, 2012 2:43 pm

Yes, but some games worked correctly on r136 that don't anymore on r174 (0.3). If I can find when the regression occurred, it could be fixed.
Hardware: Wii (PAL)
Hardware configuration: System Menu 4.1E, Priiloader
Swiss boot method: Modified Wii Swiss Booter provided by Extrems
Software medium: Retail discs
Post Reply