Hacking Compiling... Configurable USB Loader ( cfg-loader )

  • Thread starter Thread starter Yolanda98
  • Start date Start date
  • Views Views 6,561
  • Replies Replies 25
Im having the same problem to compile CFG:
> "make"

Building cfg69d -DVERSION=69d -DDEVKITPPCVER=22 -DCCOPT="-Os"
libOGC Release 1.8.6
button.png
intro4.jpg
window.png
GRRLIB.c
apploader.c
banner.c
cache.c
cfg.c
cfgutil.c
cheats.c
confont512.c
console.c
coverflow.c
debug.c
disc.c
dns.c
dol.c
dolmenu.c
dvd_broadway.c
fat.c
frag.c
fst.c
gcmodplay.c
gettext.c
grid.c
gui.c
guimenu.c
http.c
mem.c
memcheck.c
menu.c
mload.c
c:/Projects/CFG/Source/source/mload.c: In function 'mload_init':
c:/Projects/CFG/Source/source/mload.c:67:4: warning: implicit declaration of function 'iosDestroyHeap'
mload_modules.c
mp3player.c
multidol.c
music.c
net.c
partition.c
patchcode.c
playlog.c
restart.c
sdhc.c
sha1.c
sort.c
splits.c
strutil.c
subsystem.c
sys.c
unicmap.c
update.c
usb-loader.c
usbstorage.c
util.c
utils.c
video.c
wbfs.c
wbfs_fat.c
wdvd.c
wgui.c
wiip.c
wpad.c
xml.c
pngu.c
c:/Projects/CFG/Source/source/pngu/pngu.c: In function 'user_error':
c:/Projects/CFG/Source/source/pngu/pngu.c:1046:2: warning: 'jmpbuf' is deprecated (declared at c:/Projects/CFG/Source/lib/png/include/png.h:1098)
pngu_grrlib.c
libwbfs.c
rijndael.c
wiidisc.c
ioapi.c
miniunz.c
mztools.c
unzip.c
patchhook.S
stub.S
linking ... cfg69d.elf
mload.o: In function `mload_init':
mload.c:(.text.mload_init+0xf8): undefined reference to `iosDestroyHeap'
mload.o: In function `mload_close':
mload.c:(.text.mload_close+0x28): undefined reference to `iosDestroyHeap'
collect2: ld returned 1 exit status
make[1]: *** [/c/Projects/CFG/Source/cfg69d.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 03:41
I tried FIX94 solution and the problem is there yet
frown.gif

the problem is to compile CFG or Wiiflow,,,
any idea??
thx
 
Albatroz said:
Im having the same problem to compile CFG:

I tried FIX94 solution and the problem is there yet
frown.gif

the problem is to compile CFG or Wiiflow,,,
any idea??
thx
Hmmmm you really cleared the libogc folder? Please check it again.
 
Its working now!
I uninstalled devkitpro and deleted c:\devkitpro folder with subfolders,,,
then I did a new installation and its working now.
But, to compile my forwarders Im getting error cause this libogc is missing to many files.
Now, I have 2 libogc (1 to forwarder edition and other to CFG). I just need to use correct libogc to compile forwarder or cfg.

thx Fix94
 
I got a similar issue when I tried to compile CFG v70 (or mod r11) source yesterday.
(devitppc r24+libogc 1.8.8)

Pls help me to check what's wrong.

Code:
linking ... cfg70.elf
fat.o: In function `MountFS':
fat.c:(.text.MountFS+0x1d6): undefined reference to `_FAT_startSector'
fat.c:(.text.MountFS+0x1de): undefined reference to `_FAT_startSector'
fat.c:(.text.MountFS+0x206): undefined reference to `_FAT_startSector'
fat.c:(.text.MountFS+0x222): undefined reference to `_FAT_startSector'
frag.o: In function `get_frag_list':
frag.c:(.text.get_frag_list+0x11c): undefined reference to `_FAT_get_fragments'
frag.c:(.text.get_frag_list+0x150): undefined reference to `_NTFS_get_fragments'
frag.c:(.text.get_frag_list+0x210): undefined reference to `_EXT2_get_fragments'
collect2: ld returned 1 exit status
make[1]: *** [/d/temp/CFG/cfg-loader-read-only/Source/cfg70.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 01:56

==> OK . Pls ignore this thread .I have solved this problem myself .
 
GUESS WHAT?
> "make"
Building cfg69d -DVERSION=69d -DDEVKITPPCVER=22 -DCCOPT="-Os"
libOGC Release 1.8.6
.....
.....
..... /* linking errors fixed by FIX94 !!!
bow.gif
*/
.....
linking ... cfg69d.elf
output ... cfg69d.dol
It took me like an hour (lol) to composed my previous reply where at the same time I asked you some questions in order to be sure that the devkitPro was setup ok.
I must said that you answered with the correct dosage and medication. The DOL was finally born without any other complication. Thanks to you Dr94. lol

NOW, I have things to do with this little baby (source code). I would like to study/change some stuffs that I can't with the configurator. Will back soon...

I'm having trouble compiling WiiSX. I had the same error and fixed it by downgrading my libogc to 1.8.6 but now I'm getting the following:
Code:
.
.
.
spu_output.c
spu_output_iphone.c
spu_output_sdl.c
spu_registers.c
spu_xa.c
resources.s
pasm.s
MenuResources.S
linking ... WiiSX.elf
fileBrowser-libfat.o: In function `fileBrowser_libfat_readDir':
/home/mint/WiiSX/wiiSX_2.1_USB2MOD_1.1/Gamecube/./fileBrowser/fileBrowser-libfat.c:204: undefined reference to `diropen'
/home/mint/WiiSX/wiiSX_2.1_USB2MOD_1.1/Gamecube/./fileBrowser/fileBrowser-libfat.c:213: undefined reference to `dirnext'
/home/mint/WiiSX/wiiSX_2.1_USB2MOD_1.1/Gamecube/./fileBrowser/fileBrowser-libfat.c:227: undefined reference to `dirclose'
/home/mint/devkitpro/libogc/lib/wii/libtinysmb.a(smb_devoptab.o): In function `__smb_unlink':
/Users/davem/projects/devkitpro/libogc/libtinysmb/smb_devoptab.c:1226: undefined reference to `diropen'
/Users/davem/projects/devkitpro/libogc/libtinysmb/smb_devoptab.c:1229: undefined reference to `dirclose'
collect2: error: ld returned 1 exit status
make[1]: *** [/home/mint/WiiSX/wiiSX_2.1_USB2MOD_1.1/Gamecube/WiiSX.elf] Error 1
make: *** [build] Error 2

What version of libfat-ogc did you use?
 

Site & Scene News

Popular threads in this forum