Swiss Compiling Help

Discuss one of the most feature filled GameCube applications here :)
Post Reply
User avatar
RazorX2014
Posts: 172
Joined: Sun Feb 23, 2014 6:50 pm

Swiss Compiling Help

Post by RazorX2014 » Sun Jun 19, 2016 8:33 pm

hi guys is there anyone who will help me figure out how to set it up so i can compile swiss i installed devkitpro and created a folder on the root of my C:\ called SWISS-SOURCE then cd into it from cmd and did git clone https://github.com/emukidid/swiss-gc.git then went into C:\SWISS-SOURCE\swiss-gc\cube\libfat-frag\src and did make then copied the libfat.a to C:\devkitPro\libogc\lib\cube then i added d0lz.exe and elf2dol.exe to C:\SWISS-SOURCE\swiss-gc\cube\swiss and ran makeme.dat and i get:


C:\SWISS-SOURCE\swiss-gc\cube\swiss>del *.o /s
Could Not Find C:\SWISS-SOURCE\swiss-gc\cube\swiss\*.o

C:\SWISS-SOURCE\swiss-gc\cube\swiss>del *.d /s
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\backdrop.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\boxinner.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\boxouter.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\btndevice.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\btnexit.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\btnhilight.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\btninfo.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\btnnohilight.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\btnrefresh.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\btnsettings.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\checked_32.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\dirimg.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\dolimg.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\fileimg.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\gcdvdsmall.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\hdd.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\memcardimg.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\mp3img.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\ntscj.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\ntscu.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\pal.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\qoob.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\sambaimg.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\sdsmall.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\systemimg.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\unchecked_32.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\usbgeckoimg.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\wiikeyimg.d
Deleted file - C:\SWISS-SOURCE\swiss-gc\cube\swiss\build\wodeimg.d

C:\SWISS-SOURCE\swiss-gc\cube\swiss>del *.dol
Could Not Find C:\SWISS-SOURCE\swiss-gc\cube\swiss\*.dol

C:\SWISS-SOURCE\swiss-gc\cube\swiss>del *.elf
Could Not Find C:\SWISS-SOURCE\swiss-gc\cube\swiss\*.elf

C:\SWISS-SOURCE\swiss-gc\cube\swiss>make --jobs=9
Current Directory /c/SWISS-SOURCE/swiss-gc/cube/swiss
GIT Revision 17f3300
backdrop.scf
checked_32.scf
dirimg.scf
dolimg.scf
fileimg.scf
gcdvdsmall.scf
hdd.scf
memcardimg.scf
mp3img.scf
ntscj.scf
ntscu.scf
pal.scf
qoob.scf
sambaimg.scf
sdsmall.scf
systemimg.scf
unchecked_32.scf
usbgeckoimg.scf
wiikeyimg.scf
wodeimg.scf
boxinner.scf
boxouter.scf
btndevice.scf
btnexit.scf
btnhilight.scf
btninfo.scf
btnnohilight.scf
btnrefresh.scf
btnsettings.scf
bba.c
c:/SWISS-SOURCE/swiss-gc/cube/swiss/source/bba.c: In function 'init_network':
c:/SWISS-SOURCE/swiss-gc/cube/swiss/source/bba.c:56:4: error: too many arguments
to function 'if_config'
res = if_config(bba_ip, NULL, NULL, true, 20);
^
In file included from c:/SWISS-SOURCE/swiss-gc/cube/swiss/source/bba.c:4:0:
c:/devkitPro/libogc/include/network.h:248:5: note: declared here
s32 if_config( char *local_ip, char *netmask, char *gateway,bool use_dhcp);
^
make[1]: *** [bba.o] Error 1
rm boxouter.tpl dolimg.tpl mp3img.tpl backdrop.tpl hdd.tpl pal.tpl memcardimg.tp
l btnhilight.tpl qoob.tpl gcdvdsmall.tpl unchecked_32.tpl boxinner.tpl btndevice
.tpl btnrefresh.tpl ntscu.tpl checked_32.tpl ntscj.tpl btnsettings.tpl btnnohili
ght.tpl usbgeckoimg.tpl sdsmall.tpl btninfo.tpl btnexit.tpl fileimg.tpl sambaimg
.tpl wiikeyimg.tpl wodeimg.tpl systemimg.tpl dirimg.tpl
make: *** [build] Error 2

C:\SWISS-SOURCE\swiss-gc\cube\swiss>elf2dol.exe swiss.elf swiss.dol
Could not open ELF file: No such file or directory

C:\SWISS-SOURCE\swiss-gc\cube\swiss>d0lz.exe swiss.dol swiss-lz.dol -m
***********************************************************
* d0lLZ 3.0 - Gamecube Executable Compressor.
* softdev 2005 - http://www.tehskeen.com
***********************************************************
* Unable to open Gamecube DOL - swiss.dol

C:\SWISS-SOURCE\swiss-gc\cube\swiss>d0lz.exe swiss.dol swiss-lz-viper.dol -m -v

***********************************************************
* d0lLZ 3.0 - Gamecube Executable Compressor.
* softdev 2005 - http://www.tehskeen.com
***********************************************************
* Unable to open Gamecube DOL - swiss.dol

C:\SWISS-SOURCE\swiss-gc\cube\swiss>mkdir dist
A subdirectory or file dist already exists.

C:\SWISS-SOURCE\swiss-gc\cube\swiss>copy swiss-lz.dol dist
The system cannot find the file specified.

C:\SWISS-SOURCE\swiss-gc\cube\swiss>mv swiss.dol dist
mv: cannot stat `swiss.dol': No such file or directory

C:\SWISS-SOURCE\swiss-gc\cube\swiss>mv swiss-lz-viper.dol dist
mv: cannot stat `swiss-lz-viper.dol': No such file or directory

C:\SWISS-SOURCE\swiss-gc\cube\swiss>pause
Press any key to continue . . .


could someone help thanks.
tueidj
Posts: 564
Joined: Fri May 03, 2013 6:57 am

Re: Swiss Compiling Help

Post by tueidj » Sun Jun 19, 2016 11:00 pm

Your copy of libogc is out of date.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Swiss Compiling Help

Post by emu_kidid » Sun Jun 19, 2016 11:23 pm

You're also using the outdated build process. You can just type make in the root directory to have it build everything.
Image
User avatar
RazorX2014
Posts: 172
Joined: Sun Feb 23, 2014 6:50 pm

Re: Swiss Compiling Help

Post by RazorX2014 » Mon Jun 20, 2016 12:10 am

tueidj wrote:Your copy of libogc is out of date.
how can it be out of date i compiled it from https://github.com/emukidid/swiss-gc.git
User avatar
RazorX2014
Posts: 172
Joined: Sun Feb 23, 2014 6:50 pm

Re: Swiss Compiling Help

Post by RazorX2014 » Mon Jun 20, 2016 12:14 am

emu_kidid wrote:You're also using the outdated build process. You can just type make in the root directory to have it build everything.
ok i deleted the entire swiss-gc folder and did git clone https://github.com/emukidid/swiss-gc.git again then from C:\SWISS-SOURCE\swiss-gc i did make and got:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\SWISS-SOURCE\swiss-gc>make
make[1]: Entering directory `/c/SWISS-SOURCE/swiss-gc/cube/swiss'
clean ...
make[1]: Leaving directory `/c/SWISS-SOURCE/swiss-gc/cube/swiss'
make[1]: Entering directory `/c/SWISS-SOURCE/swiss-gc/pc/usbgecko'
make[1]: Leaving directory `/c/SWISS-SOURCE/swiss-gc/pc/usbgecko'
make[1]: Entering directory `/c/SWISS-SOURCE/swiss-gc/cube/patches'
rmdir: disassembly: No such file or directory
make[1]: [clean] Error 1 (ignored)
Building DVD Patch ...
Building HDD Patch ...
Building SD Patch ...
Building USBGecko Patch ...
Building WKF Patch ...
make[1]: Leaving directory `/c/SWISS-SOURCE/swiss-gc/cube/patches'
make[1]: Entering directory `/c/SWISS-SOURCE/swiss-gc/cube/swiss'
Current Directory /c/SWISS-SOURCE/swiss-gc/cube/swiss
GIT Revision 17f3300
backdrop.scf
backdrop.tpl
checked_32.scf
checked_32.tpl
dirimg.scf
dirimg.tpl
dolimg.scf
dolimg.tpl
fileimg.scf
fileimg.tpl
gcdvdsmall.scf
gcdvdsmall.tpl
hdd.scf
hdd.tpl
memcardimg.scf
memcardimg.tpl
mp3img.scf
mp3img.tpl
ntscj.scf
ntscj.tpl
ntscu.scf
ntscu.tpl
pal.scf
pal.tpl
qoob.scf
qoob.tpl
sambaimg.scf
sambaimg.tpl
sdsmall.scf
sdsmall.tpl
systemimg.scf
systemimg.tpl
unchecked_32.scf
unchecked_32.tpl
usbgeckoimg.scf
usbgeckoimg.tpl
wiikeyimg.scf
wiikeyimg.tpl
wodeimg.scf
wodeimg.tpl
boxinner.scf
boxinner.tpl
boxouter.scf
boxouter.tpl
btndevice.scf
btndevice.tpl
btnexit.scf
btnexit.tpl
btnhilight.scf
btnhilight.tpl
btninfo.scf
btninfo.tpl
btnnohilight.scf
btnnohilight.tpl
btnrefresh.scf
btnrefresh.tpl
btnsettings.scf
btnsettings.tpl
bba.c
c:/SWISS-SOURCE/swiss-gc/cube/swiss/source/bba.c: In function 'init_network':
c:/SWISS-SOURCE/swiss-gc/cube/swiss/source/bba.c:56:4: error: too many arguments
to function 'if_config'
res = if_config(bba_ip, NULL, NULL, true, 20);
^
In file included from c:/SWISS-SOURCE/swiss-gc/cube/swiss/source/bba.c:4:0:
c:/devkitPro/libogc/include/network.h:248:5: note: declared here
s32 if_config( char *local_ip, char *netmask, char *gateway,bool use_dhcp);
^
make[2]: *** [bba.o] Error 1
rm boxouter.tpl dolimg.tpl mp3img.tpl backdrop.tpl hdd.tpl pal.tpl memcardimg.tp
l btnhilight.tpl qoob.tpl gcdvdsmall.tpl unchecked_32.tpl boxinner.tpl btndevice
.tpl btnrefresh.tpl ntscu.tpl checked_32.tpl ntscj.tpl btnsettings.tpl btnnohili
ght.tpl usbgeckoimg.tpl sdsmall.tpl btninfo.tpl btnexit.tpl fileimg.tpl sambaimg
.tpl wiikeyimg.tpl wodeimg.tpl systemimg.tpl dirimg.tpl
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/SWISS-SOURCE/swiss-gc/cube/swiss'
make: *** [compile] Error 2

C:\SWISS-SOURCE\swiss-gc>


where am i going wrong please and how do i get the latest libfat if the one in the git is outdated thanks
tueidj
Posts: 564
Joined: Fri May 03, 2013 6:57 am

Re: Swiss Compiling Help

Post by tueidj » Mon Jun 20, 2016 1:59 am

RazorX2014 wrote:
tueidj wrote:Your copy of libogc is out of date.
how can it be out of date i compiled it from https://github.com/emukidid/swiss-gc.git
That is the source code for swiss, not libogc.
User avatar
RazorX2014
Posts: 172
Joined: Sun Feb 23, 2014 6:50 pm

Re: Swiss Compiling Help

Post by RazorX2014 » Mon Jun 20, 2016 4:55 am

tueidj wrote:
RazorX2014 wrote:
tueidj wrote:Your copy of libogc is out of date.
how can it be out of date i compiled it from https://github.com/emukidid/swiss-gc.git
That is the source code for swiss, not libogc.
Where do I get the libofat needed then?
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Swiss Compiling Help

Post by emu_kidid » Mon Jun 20, 2016 6:41 am

https://github.com/devkitPro/libogc/

Edit: I don't mean to pry, but why are you compiling it yourself, is it something that everyone else could benefit from?
Image
User avatar
RazorX2014
Posts: 172
Joined: Sun Feb 23, 2014 6:50 pm

Re: Swiss Compiling Help

Post by RazorX2014 » Mon Jun 20, 2016 7:36 am

emu_kidid wrote:https://github.com/devkitPro/libogc/

Edit: I don't mean to pry, but why are you compiling it yourself, is it something that everyone else could benefit from?
It just bugs me I can't do it lol also I was thinking after maybe to alter the source for cleanrip to set it up to rip the games into a folder instead of the root just for me personally not to release
Post Reply