Help compiling Swiss

Discuss one of the most feature filled GameCube applications here :)
Post Reply
HAL9K
Posts: 6
Joined: Sat Apr 02, 2011 11:24 pm

Help compiling Swiss

Post by HAL9K » Sat Apr 02, 2011 11:45 pm

Here's the output. Any help would be greatly appreciated.

> "make"
dol.c
exi.c
gcm.c
main.c
patcher.c
swiss.c
sidestep.c
ssaram.c
deviceHandler.c
deviceHandler-DVD.c
dvd.c
ata.c
c:/Swiss/cube/swiss/source/devices/fat/ata.c: In function '_ataDriveIdentify':
c:/Swiss/cube/swiss/source/devices/fat/ata.c:203:3: warning: left shift count >= width of type
deviceHandler-FAT.c
frag.c
deviceHandler-CARD.c
deviceHandler-Qoob.c
c:/Swiss/cube/swiss/source/devices/qoob/deviceHandler-Qoob.c: In function 'deviceHandler_Qoob_init':
c:/Swiss/cube/swiss/source/devices/qoob/deviceHandler-Qoob.c:88:2: warning: implicit declaration of function 'ipl_set_config'
deviceHandler-WODE.c
wode.c
cheats.c
gcars.c
qchparse.c
backdrop.c
banner.c
gcdvdicon.c
greentick.c
hddicon.c
qoobicon.c
redcross.c
sdicon.c
FrameBufferMagic.c
IPLFontWrite.c
bitmap.c
SlotA-HDD.s
SlotA-SD.s
SlotA-SDHC.s
SlotB-HDD.s
SlotB-SD.s
SlotB-SDHC.s
linking ... swiss.elf
frag.o: In function `get_frag_list':
frag.c:(.text.get_frag_list+0x58): undefined reference to `_FAT_get_fragments'
collect2: ld returned 1 exit status
make[1]: *** [/c/Swiss/cube/swiss/swiss.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:25
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Help compiling Swiss

Post by emu_kidid » Sun Apr 03, 2011 12:55 am

You need to compile the custom libfat and install it first. I'll be releasing a new binary in an hour or two.
Image
HAL9K
Posts: 6
Joined: Sat Apr 02, 2011 11:24 pm

Re: Help compiling Swiss

Post by HAL9K » Sun Apr 03, 2011 1:03 am

Thanks! But can you tell me how to compile and install the custom libfat? LoL.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Help compiling Swiss

Post by emu_kidid » Sun Apr 03, 2011 1:23 am

cd swiss-gc\cube\libfat-frag
make
then copy the .a file into your libs\cube dir.
Image
HAL9K
Posts: 6
Joined: Sat Apr 02, 2011 11:24 pm

Re: Help compiling Swiss

Post by HAL9K » Sun Apr 03, 2011 1:39 am

Wonderful. Thanks!

I was this >< close! I had made the .a file but didn't know what the heck I was supposed to do with it, or if I even had to make it.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Help compiling Swiss

Post by emu_kidid » Sun Apr 03, 2011 1:45 am

I've compiled r39 and it's available on googlecode btw :)
Image
HAL9K
Posts: 6
Joined: Sat Apr 02, 2011 11:24 pm

Re: Help compiling Swiss

Post by HAL9K » Sun Apr 03, 2011 1:51 am

Ha! I just got done compiling r37, then I saw r38 with just the readme updated, and now r39? I assume all three are the same so I can just use the r37 I already made?

Edit: Just looked at the mingw window and saw the following, I just figurd it had compiled properly. :P

c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.5.1/../../../../powerpc-eabi/bin/ld.exe: skipping incompatible c:/devkitPro/libogc/lib/cube\libfat.a when searching for -lfat
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.5.1/../../../../powerpc-eabi/bin/ld.exe: cannot find -lfat
collect2: ld returned 1 exit status
make[1]: *** [/c/Swiss/cube/swiss/swiss.elf] Error 1
"make": *** [build] Error 2

Now what did I do wrong? :P I'll just use your pre-compiled but it's nice to have it working for future use.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Help compiling Swiss

Post by emu_kidid » Sun Apr 03, 2011 3:13 am

Looks like you didn't compile libfat-frag properly.. try building it clean.
Image
User avatar
Dragoon
Posts: 323
Joined: Thu Jan 27, 2011 1:01 pm

Re: Help compiling Swiss

Post by Dragoon » Mon Apr 04, 2011 8:45 am

pspgeek wrote:r33+ doesn't has build errors. You need to compile libfat-frag and overwrite the fat.h,libfatversion.h, and libfat.a in devkitPro\libogc. You need to copy the vgcogc.ld in the downloaded swiss source code to devkitPro\devkitPPC\powerpc-eabi\lib\vgcogc.ld
above = a little bit edited post of pspgeek (original post is in "The swiss cheating guide")
Image
Post Reply