Page 1 of 1
Can't compile swiss r149
Posted: Sun May 06, 2012 1:02 am
by andzlay
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?
Re: Can't compile swiss r149
Posted: Sun May 06, 2012 1:50 am
by emu_kidid
Update libogc from git
Re: Can't compile swiss r149
Posted: Sun May 06, 2012 2:10 am
by Extrems
Re: Can't compile swiss r149
Posted: Sun May 06, 2012 9:30 pm
by Cubelover
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.
Re: Can't compile swiss r149
Posted: Mon May 07, 2012 7:24 am
by andzlay
Nice after libogc update it works.
@Cubelover: have you copied the libfat-frag after the libogc update or before?

Re: Can't compile swiss r149
Posted: Mon May 07, 2012 11:29 am
by Cubelover
You mean the libfat.a file compiled from /libfat-frag/src ? Of course I copied it after the update.
Re: Can't compile swiss r149
Posted: Mon May 07, 2012 8:17 pm
by Cubelover
@andylazy: Would you mind sharing your compiled r149 with me?
Re: Can't compile swiss r149
Posted: Mon May 07, 2012 8:26 pm
by andzlay
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...
Re: Can't compile swiss r149
Posted: Mon May 07, 2012 8:41 pm
by Cubelover
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

Re: Can't compile swiss r149
Posted: Tue May 08, 2012 9:37 am
by infact
try with a clean swiss checkout and if that not helps a clean build environment. i guess something is wrong with your dkppc install.
Re: Can't compile swiss r149
Posted: Tue May 08, 2012 1:32 pm
by andzlay
Cubelover, have you already tried it out?
Re: Can't compile swiss r149
Posted: Thu May 10, 2012 12:20 am
by Cubelover
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.
Re: Can't compile swiss r149
Posted: Tue Dec 04, 2012 4:29 pm
by andzlay
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
Re: Can't compile swiss r149
Posted: Tue Dec 04, 2012 8:22 pm
by megalomaniac
just downloaded, compiled fine
make clean and try again??
Re: Can't compile swiss r149
Posted: Tue Dec 04, 2012 9:56 pm
by emu_kidid
don't use --jobs=9 in makeme.bat. that's just a shortcut for me.
Re: Can't compile swiss r149
Posted: Tue Dec 04, 2012 10:51 pm
by BenoitRen
Thanks for this, going to try it on my Wii. If it works I'll be able to start testing for regressions.

Re: Can't compile swiss r149
Posted: Tue Dec 04, 2012 11:14 pm
by emu_kidid
r146 is from before 0.3 though?
Re: Can't compile swiss r149
Posted: Wed Dec 05, 2012 2:43 pm
by BenoitRen
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.