Elfish said:hi,
i tried to compiled the specific source with the lates devkitpro and libogc
it compiles just fine all warnings are the following:
Code:d:/wii/source/elf_dol_forwarder/source/main.c: In function 'main': d:/wii/source/elf_dol_forwarder/source/main.c:119: warning: implicit declaration of function 'valid_elf_image' d:/wii/source/elf_dol_forwarder/source/main.c:122: warning: implicit declaration of function 'load_elf_image' d:/wii/source/elf_dol_forwarder/source/main.c:125: warning: implicit declaration of function 'load_dol_image' d:/wii/source/elf_dol_forwarder/source/main.c:140: warning: implicit declaration of function '__exception_closeall' d:/wii/source/elf_dol_forwarder/source/main.c:147:2: warning: no newline at end of file
Somehow i just get a blackscreen after loading the dol.
I got a sd card but compiling it with the latest devkit and libogc. that shouldnt be a problem right?
Anyone knows why it doesnt work?
> "make"
main.c
c:/emu_forwarder_source_v2/source/main.c:20:25: warning: jpeg/jpgogc.h: No such file or directory
c:/emu_forwarder_source_v2/source/main.c: In function 'main':
c:/emu_forwarder_source_v2/source/main.c:178: warning: implicit declaration of function 'strspn'
c:/emu_forwarder_source_v2/source/main.c:178: warning: incompatible implicit declaration of built-in function 'strspn'
c:/emu_forwarder_source_v2/source/main.c:226: warning: implicit declaration of function 'valid_elf_image'
c:/emu_forwarder_source_v2/source/main.c:229: warning: implicit declaration of function 'load_elf_image'
c:/emu_forwarder_source_v2/source/main.c:231: warning: implicit declaration of function 'load_dol_image'
c:/emu_forwarder_source_v2/source/main.c:245: warning: implicit declaration of function '__exception_closeall'
c:/emu_forwarder_source_v2/source/main.c: In function 'draw_background':
c:/emu_forwarder_source_v2/source/main.c:257: error: 'JPEGIMG' undeclared (first use in this function)
c:/emu_forwarder_source_v2/source/main.c:257: error: (Each undeclared identifier is reported only once
c:/emu_forwarder_source_v2/source/main.c:257: error: for each function it appears in.)
c:/emu_forwarder_source_v2/source/main.c:257: error: expected ';' before 'about'
c:/emu_forwarder_source_v2/source/main.c:258: warning: implicit declaration of function 'memset'
c:/emu_forwarder_source_v2/source/main.c:258: warning: incompatible implicit declaration of built-in function 'memset'
c:/emu_forwarder_source_v2/source/main.c:258: error: 'about' undeclared (first use in this function)
c:/emu_forwarder_source_v2/source/main.c:263: warning: implicit declaration of function 'JPEG_Decompress'
c:/emu_forwarder_source_v2/source/main.c:265: warning: implicit declaration of function 'display_jpeg'
c:/emu_forwarder_source_v2/source/main.c: At top level:
c:/emu_forwarder_source_v2/source/main.c:269: error: expected ')' before 'jpeg'
c:/emu_forwarder_source_v2/source/main.c: In function 'trim':
c:/emu_forwarder_source_v2/source/main.c:296: warning: implicit declaration of function 'strlen'
c:/emu_forwarder_source_v2/source/main.c:296: warning: incompatible implicit declaration of built-in function 'strlen'
c:/emu_forwarder_source_v2/source/main.c:303: warning: implicit declaration of function 'isspace'
make[1]: *** [main.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:01
Sir VG said:Well, there seems to be things that aren't compiling right with the source code he's providing - I can't compile anything but the general forwarder and the completed compile isn't working right for me (possible because it doesn't work coming out of HBC?). So until SpaceJump can come in here and help, don't know what else I can do.
Elfish said:ah ok.
sounds reasonable
let's hope u you find the error for the blackscreens
JQE said:Elfish said:ah ok.
sounds reasonable
let's hope u you find the error for the blackscreens
sadly i am not at my Wii right now. If you want to try and test for something
in the makefile for the project change.
From
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
To
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map,--section-start,.init=0x80d00100
0x800d00100 is a memory address to run the forwarder from. I think this will fix it. I am not 100% sure though.
if you have a chance to try that let me know.
I will be testing later tonight, but wouldn't be able to post results until tomorrow.
Elfish said:JQE said:Elfish said:ah ok.
sounds reasonable
let's hope u you find the error for the blackscreens
sadly i am not at my Wii right now. If you want to try and test for something
in the makefile for the project change.
From
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
To
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map,--section-start,.init=0x80d00100
0x800d00100 is a memory address to run the forwarder from. I think this will fix it. I am not 100% sure though.
if you have a chance to try that let me know.
I will be testing later tonight, but wouldn't be able to post results until tomorrow.
sadly i'm not at home either.
Otherwise i'd try...
JQE said:Sir VG said:Well, there seems to be things that aren't compiling right with the source code he's providing - I can't compile anything but the general forwarder and the completed compile isn't working right for me (possible because it doesn't work coming out of HBC?). So until SpaceJump can come in here and help, don't know what else I can do.
It compiles if you have the libogc files in the right place. Make sure you install the newest version.
As for the black screen, i am no coder but i do dable and so far with my debuging it looks like the apps are launching from entrypoint 80004000 and so is the forwarder. This means that they are trying to occupy the same memory space and crash.
I found one app (the gui usb-loader from dimok and crew) that doesn't have that entry point and it works flawlessly. I am trying to figure out how to change that now, then i think it will work.
Sir VG said:Ok, weird that the ones already made into WADs work but these don't. Oh well. I'm not gonna fret over it.
JQE said:Sir VG said:Ok, weird that the ones already made into WADs work but these don't. Oh well. I'm not gonna fret over it.
I am wondering if it's a 4.0 vs 3.2 thing. Either way, i have been working on creating a libwiigui interface for a forwarder. Sort of fancy like.. It's coming along nicely now.
comet77 said:Could someone make one for "FCE Ultra GX"