Emulator Help compiling latest commits of Wii64?

SaulFabre

I like Yoshis and the Wii/Wii U scene.
OP
Member
Joined
Feb 6, 2019
Messages
3,271
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
8,221
Country
Ecuador
Can anyone help me with a compiled version of latest commits of Wii64 (both normal and WiiVC cores of glN64 and Rice) from source http://github.com/emukidid/Wii64 or at least saying me how i can compile the latest commits of Wii64 into a dol?
Tried doing that but i couldn't.

I have those errors:
glN64
Code:
$ make -f Makefile.glN64_Wii --jobs=5
powerpc-eabi-g++ glN64_GX/glN64.o glN64_GX/Config_linux.o glN64_GX/OpenGL.o glN64_GX/N64.o glN64_GX/RSP.o glN64_GX/VI.o glN64_GX/Textures.o glN64_GX/FrameBuffer.o glN64_GX/Combiner.o glN64_GX/gDP.o glN64_GX/gSP.o glN64_GX/GBI.o glN64_GX/DepthBuffer.o glN64_GX/CRC.o glN64_GX/2xSAI.o glN64_GX/TEV_combiner.o glN64_GX/RDP.o glN64_GX/F3D.o glN64_GX/F3DEX.o glN64_GX/F3DEX2.o glN64_GX/L3D.o glN64_GX/L3DEX.o glN64_GX/L3DEX2.o glN64_GX/S2DEX.o glN64_GX/S2DEX2.o glN64_GX/F3DPD.o glN64_GX/F3DDKR.o glN64_GX/F3DWRUS.o glN64_GX/F3DCBFD.o gc_memory/TLB-Cache-hash.o vm/dsihandler.o vm/wii_vm.o main/wii.o main/gamehacks.o main/rom_gc.o main/ROM-Cache.o main/main_gc-menu2.o main/gczip.o main/timers.o main/boxart.o main/boxart_resource.o menu/MenuContext.o menu/MainFrame.o menu/MiniMenuFrame.o menu/SelectRomFrame.o menu/LoadRomFrame.o menu/FileBrowserFrame.o menu/ConfigureButtonsFrame.o menu/ConfigureInputFrame.o menu/ConfigurePaksFrame.o menu/CurrentRomFrame.o menu/LoadSaveFrame.o menu/SaveGameFrame.o menu/SettingsFrame.o menu/SelectCPUFrame.o menu/MenuResources.o libgui/Box3D.o libgui/Button.o libgui/Component.o libgui/CursorManager.o libgui/FocusManager.o libgui/Frame.o libgui/GraphicsGX.o libgui/Gui.o libgui/GuiResources.o libgui/Image.o libgui/InputManager.o libgui/InputStatusBar.o libgui/IPLFont.o libgui/LoadingBar.o libgui/Logo.o libgui/MainInfoBar.o libgui/MessageBox.o libgui/MiniInfoBar.o libgui/resources.o libgui/TextBox.o fileBrowser/gc_dvd.o fileBrowser/fileBrowser-DVD.o fileBrowser/fileBrowser-CARD.o fileBrowser/fileBrowser-libfat.o fileBrowser/fileBrowser.o gui/GUI.o gui/DEBUG.o gui/TEXT.o r4300/r4300.o r4300/exception.o r4300/Invalid_Code.o r4300/Recomp-Cache-Heap.o gc_memory/tlb.o gc_memory/memory.o gc_memory/dma.o r4300/interupt.o r4300/recomp.o gc_memory/n64_cic_nus_6105.o gc_memory/pif.o r4300/pure_interp.o r4300/compare_core.o gc_memory/flashram.o main/md5.o main/savestates_gc.o r4300/profile.o main/adler32.o gc_input/controller-Classic.o gc_input/controller-WiimoteNunchuk.o gc_input/input.o gc_input/controller-GC.o gc_audio/audio.o rsp_hle/alist.o rsp_hle/alist_audio.o rsp_hle/alist_naudio.o rsp_hle/alist_nead.o rsp_hle/audio.o rsp_hle/cicx105.o rsp_hle/hle.o rsp_hle/hvqm.o rsp_hle/jpeg.o rsp_hle/memory.o rsp_hle/mp3.o rsp_hle/musyx.o rsp_hle/re2.o rsp_hle/plugin.o r4300/ppc/MIPS-to-PPC.o r4300/ppc/Recompile.o r4300/ppc/Wrappers.o r4300/ppc/FuncTree.o r4300/ppc/Register-Cache.o -mrvl -O3  -mcpu=750 -meabi -mhard-float  -Wl,-Map,wii64-glN64.elf.map -Wl,--cref  -L/opt/devkitpro/libogc2/lib/wii -L/opt/devkitpro/portlibs/ppc/lib -lwiiuse -lbte -lz -logc -lm -lfat -ldb -lz -laesnd -logc -static -o wii64-glN64.elf
make: powerpc-eabi-g++: No such file or directory
make: *** [Makefile.base:158: wii64-glN64.elf] Error 127

Rice
Code:
$ make -f Makefile.Rice_Wii --jobs=5
powerpc-eabi-g++ TextureArchive/ArchiveReader.o Rice_GX/OGLGraphicsContext.o Rice_GX/Debugger.o Rice_GX/Video.o Rice_GX/Config.o Rice_GX/GraphicsContext.o Rice_GX/TextureFilters.o Rice_GX/DeviceBuilder.o Rice_GX/Render.o Rice_GX/RSP_Parser.o Rice_GX/TextureManager.o Rice_GX/RenderBase.o Rice_GX/FrameBuffer.o Rice_GX/Texture.o Rice_GX/OGLRender.o Rice_GX/OGLTexture.o Rice_GX/TEVBlender.o Rice_GX/TEVCombiner.o Rice_GX/OGLExtRender.o Rice_GX/blender.o Rice_GX/math.o Rice_GX/Combiner.o Rice_GX/RSP_S2DEX.o Rice_GX/RenderExt.o Rice_GX/ConvertImageGX.o Rice_GX/DecodedMux.o Rice_GX/RenderTexture.o Rice_GX/OGLDecodedMux.o Rice_GX/OGLRenderExt.o gc_memory/TLB-Cache-hash.o vm/dsihandler.o vm/wii_vm.o main/wii.o main/gamehacks.o main/rom_gc.o main/ROM-Cache.o main/main_gc-menu2.o main/gczip.o main/timers.o main/boxart.o main/boxart_resource.o menu/MenuContext.o menu/MainFrame.o menu/MiniMenuFrame.o menu/SelectRomFrame.o menu/LoadRomFrame.o menu/FileBrowserFrame.o menu/ConfigureButtonsFrame.o menu/ConfigureInputFrame.o menu/ConfigurePaksFrame.o menu/CurrentRomFrame.o menu/LoadSaveFrame.o menu/SaveGameFrame.o menu/SettingsFrame.o menu/SelectCPUFrame.o menu/MenuResources.o libgui/Box3D.o libgui/Button.o libgui/Component.o libgui/CursorManager.o libgui/FocusManager.o libgui/Frame.o libgui/GraphicsGX.o libgui/Gui.o libgui/GuiResources.o libgui/Image.o libgui/InputManager.o libgui/InputStatusBar.o libgui/IPLFont.o libgui/LoadingBar.o libgui/Logo.o libgui/MainInfoBar.o libgui/MessageBox.o libgui/MiniInfoBar.o libgui/resources.o libgui/TextBox.o fileBrowser/gc_dvd.o fileBrowser/fileBrowser-DVD.o fileBrowser/fileBrowser-CARD.o fileBrowser/fileBrowser-libfat.o fileBrowser/fileBrowser.o gui/GUI.o gui/DEBUG.o gui/TEXT.o r4300/r4300.o r4300/exception.o r4300/Invalid_Code.o r4300/Recomp-Cache-Heap.o gc_memory/tlb.o gc_memory/memory.o gc_memory/dma.o r4300/interupt.o r4300/recomp.o gc_memory/n64_cic_nus_6105.o gc_memory/pif.o r4300/pure_interp.o r4300/compare_core.o gc_memory/flashram.o main/md5.o main/savestates_gc.o r4300/profile.o main/adler32.o gc_input/controller-Classic.o gc_input/controller-WiimoteNunchuk.o gc_input/input.o gc_input/controller-GC.o gc_audio/audio.o rsp_hle/alist.o rsp_hle/alist_audio.o rsp_hle/alist_naudio.o rsp_hle/alist_nead.o rsp_hle/audio.o rsp_hle/cicx105.o rsp_hle/hle.o rsp_hle/hvqm.o rsp_hle/jpeg.o rsp_hle/memory.o rsp_hle/mp3.o rsp_hle/musyx.o rsp_hle/re2.o rsp_hle/plugin.o r4300/ppc/MIPS-to-PPC.o r4300/ppc/Recompile.o r4300/ppc/Wrappers.o r4300/ppc/FuncTree.o r4300/ppc/Register-Cache.o -mrvl -O3  -mcpu=750 -meabi -mhard-float  -Wl,-Map,wii64-Rice.elf.map -Wl,--cref  -L/opt/devkitpro/libogc2/lib/wii -L/opt/devkitpro/portlibs/ppc/lib -lwiiuse -lbte -lz -logc -lm -lfat -ldb -lz -laesnd -logc -static -o wii64-Rice.elf
make: powerpc-eabi-g++: No such file or directory
make: *** [Makefile.base:158: wii64-Rice.elf] Error 127

Help? :(

Thanks! :)
 

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,614
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,380
Country
Canada
Seems like you have missing libraries for compiling, do you have this installed correctly?
https://gnutoolchains.com/powerpc-eabi/
Also make sure you have devkitpro installed correctly, assuming you had things working fine for other things already.
 
  • Like
Reactions: SaulFabre

SaulFabre

I like Yoshis and the Wii/Wii U scene.
OP
Member
Joined
Feb 6, 2019
Messages
3,271
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
8,221
Country
Ecuador

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,467
Trophies
3
XP
29,233
Country
United States
I just tried this and got these errors:

Code:
C:\Users\GODREBORN\Desktop\Wii64-master>make -f Makefile.glN64_wii
powerpc-eabi-g++ -DGLN64_GX -D__LINUX__ -DWII -DHW_RVL -DUSE_EXPANSION -D__wii__ -g -O3  -Wall -Wno-parentheses -Wno-unused-parameter -pipe -mcpu=750 -meabi -mhard-float  -I/opt/devkitpro/libogc2/include -I/opt/devkitpro/portlibs/ppc/include -DGEKKO -D__GX__ -DUSE_GUI -DRELEASE -DMENU_V2 -DTHREADED_AUDIO -DUSE_RECOMP_CACHE -DPPC_DYNAREC -DFASTMEM -DNO_ASM      -c -o glN64_GX/glN64.o glN64_GX/glN64.cpp
In file included from glN64_GX/glN64.cpp:17:0:
glN64_GX/../main/winlnxdefs.h:33:21: fatal error: gctypes.h: No such file or directory
 #include <gctypes.h>
                     ^
compilation terminated.
make: *** [<builtin>: glN64_GX/glN64.o] Error 1

C:\Users\GODREBORN\Desktop\Wii64-master>make -f Makefile.Rice_wii
powerpc-eabi-g++ -DRICE_GFX -DWII -DHW_RVL -DUSE_EXPANSION -D__wii__ -g -O3  -Wall -Wno-parentheses -Wno-unused-parameter -pipe -mcpu=750 -meabi -mhard-float  -I/opt/devkitpro/libogc2/include -I/opt/devkitpro/portlibs/ppc/include -DGEKKO -D__GX__ -DUSE_GUI -DRELEASE -DMENU_V2 -DTHREADED_AUDIO -DUSE_RECOMP_CACHE -DPPC_DYNAREC -DFASTMEM -DNO_ASM      -c -o TextureArchive/ArchiveReader.o TextureArchive/ArchiveReader.cpp
powerpc-eabi-g++ -DRICE_GFX -DWII -DHW_RVL -DUSE_EXPANSION -D__wii__ -g -O3  -Wall -Wno-parentheses -Wno-unused-parameter -pipe -mcpu=750 -meabi -mhard-float  -I/opt/devkitpro/libogc2/include -I/opt/devkitpro/portlibs/ppc/include -DGEKKO -D__GX__ -DUSE_GUI -DRELEASE -DMENU_V2 -DTHREADED_AUDIO -DUSE_RECOMP_CACHE -DPPC_DYNAREC -DFASTMEM -DNO_ASM      -c -o Rice_GX/OGLGraphicsContext.o Rice_GX/OGLGraphicsContext.cpp
In file included from Rice_GX/../libgui/IPLFont.h:24:0,
                 from Rice_GX/OGLGraphicsContext.cpp:23:
Rice_GX/../libgui/GuiTypes.h:24:20: fatal error: gccore.h: No such file or directory
 #include <gccore.h>
                    ^
compilation terminated.
make: *** [<builtin>: Rice_GX/OGLGraphicsContext.o] Error 1
 
  • Like
Reactions: SaulFabre

SaulFabre

I like Yoshis and the Wii/Wii U scene.
OP
Member
Joined
Feb 6, 2019
Messages
3,271
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
8,221
Country
Ecuador
I just tried this and got these errors:

Code:
C:\Users\GODREBORN\Desktop\Wii64-master>make -f Makefile.glN64_wii
powerpc-eabi-g++ -DGLN64_GX -D__LINUX__ -DWII -DHW_RVL -DUSE_EXPANSION -D__wii__ -g -O3  -Wall -Wno-parentheses -Wno-unused-parameter -pipe -mcpu=750 -meabi -mhard-float  -I/opt/devkitpro/libogc2/include -I/opt/devkitpro/portlibs/ppc/include -DGEKKO -D__GX__ -DUSE_GUI -DRELEASE -DMENU_V2 -DTHREADED_AUDIO -DUSE_RECOMP_CACHE -DPPC_DYNAREC -DFASTMEM -DNO_ASM      -c -o glN64_GX/glN64.o glN64_GX/glN64.cpp
In file included from glN64_GX/glN64.cpp:17:0:
glN64_GX/../main/winlnxdefs.h:33:21: fatal error: gctypes.h: No such file or directory
 #include <gctypes.h>
                     ^
compilation terminated.
make: *** [<builtin>: glN64_GX/glN64.o] Error 1

C:\Users\GODREBORN\Desktop\Wii64-master>make -f Makefile.Rice_wii
powerpc-eabi-g++ -DRICE_GFX -DWII -DHW_RVL -DUSE_EXPANSION -D__wii__ -g -O3  -Wall -Wno-parentheses -Wno-unused-parameter -pipe -mcpu=750 -meabi -mhard-float  -I/opt/devkitpro/libogc2/include -I/opt/devkitpro/portlibs/ppc/include -DGEKKO -D__GX__ -DUSE_GUI -DRELEASE -DMENU_V2 -DTHREADED_AUDIO -DUSE_RECOMP_CACHE -DPPC_DYNAREC -DFASTMEM -DNO_ASM      -c -o TextureArchive/ArchiveReader.o TextureArchive/ArchiveReader.cpp
powerpc-eabi-g++ -DRICE_GFX -DWII -DHW_RVL -DUSE_EXPANSION -D__wii__ -g -O3  -Wall -Wno-parentheses -Wno-unused-parameter -pipe -mcpu=750 -meabi -mhard-float  -I/opt/devkitpro/libogc2/include -I/opt/devkitpro/portlibs/ppc/include -DGEKKO -D__GX__ -DUSE_GUI -DRELEASE -DMENU_V2 -DTHREADED_AUDIO -DUSE_RECOMP_CACHE -DPPC_DYNAREC -DFASTMEM -DNO_ASM      -c -o Rice_GX/OGLGraphicsContext.o Rice_GX/OGLGraphicsContext.cpp
In file included from Rice_GX/../libgui/IPLFont.h:24:0,
                 from Rice_GX/OGLGraphicsContext.cpp:23:
Rice_GX/../libgui/GuiTypes.h:24:20: fatal error: gccore.h: No such file or directory
 #include <gccore.h>
                    ^
compilation terminated.
make: *** [<builtin>: Rice_GX/OGLGraphicsContext.o] Error 1
could you try renaming all the .cpp and .c files of Wii64 source code to .o?
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,467
Trophies
3
XP
29,233
Country
United States
I was going to try ren *.cpp *.o and ren *.c *.o , but I don't know if that works with folders as well. it's a daunting task to do it manually.
 
  • Like
Reactions: SaulFabre

SaulFabre

I like Yoshis and the Wii/Wii U scene.
OP
Member
Joined
Feb 6, 2019
Messages
3,271
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
8,221
Country
Ecuador
I was going to try ren *.cpp *.o and ren *.c *.o , but I don't know if that works with folders as well. it's a daunting task to do it manually.
it actually works, but if you open the CMD in the folder where you have to rename the .c and .cpp files.
And yes, you need to do that in all .cpp and .c files of all folders of Wii64 sourcecode.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,467
Trophies
3
XP
29,233
Country
United States
nope, still doesn't work:

1639577421412.png
 
  • Like
Reactions: SaulFabre

SaulFabre

I like Yoshis and the Wii/Wii U scene.
OP
Member
Joined
Feb 6, 2019
Messages
3,271
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
8,221
Country
Ecuador
I think there's at least one dependency missing, and it doesn't seem to mention which ones it uses.
i think i know
these files of the custom libogc2 by emukidid must be placed in the devkitPro folder and the custom libogc2 folder by emukidid should be called "libogc2"
(C:/devkitPro/libogc2)

https://github.com/emukidid/libogc (download all the code, create a new folder on devkitPro folder called libogc2, then put all the code files in it).
 

Wiimpathy

Well-Known Member
Member
Joined
Mar 3, 2010
Messages
1,013
Trophies
2
XP
3,172
Country
France
could you try renaming all the .cpp and .c files of Wii64 source code to .o?
You can't simply rename the source files. The .o are object files. It's the compiler that generates them. This compilation phase essentially 'translates' the sources(.cpp) to machine code(.o). It precedes the final linking phase that takes all objects and required libraries to produce the executable(the dol file).

Anyway, as you know, this homebrew uses a custom libogc and there are some missing stuff in the makefile.
First, make sure you have installed the official DevkitPPC/libogc correctly : https://devkitpro.org/wiki/Getting_Started
Just compile the wii examples and if all is ok, go on.

You must compile the custom libogc2. Download and extract https://github.com/emukidid/libogc.
Open command line in the extracted folder and type 'make' and 'make install'.
It should be installed in your Devkipro folder now.

Modify wii64 Makefile.base. At the beginning of file, add these lines:
Code:
export    LIBOGC_INC    :=    $(DEVKITPRO)/libogc2/include

export DEPSDIR    :=    $(CURDIR)

Now try to compile wii64 with 'make -f Makefile.Rice_Wii --jobs=4' or with build.bat if on Windows. If you use the make command for several builds, remember to clean the project first by removing the .o files!

Note that I have no clue of which DevkitPPC version should be used. I had a ton of warning with r39-2. Zero guarantee the dol will work correctly. You shoud ask emukidid to be sure.
 
  • Like
Reactions: SaulFabre

SaulFabre

I like Yoshis and the Wii/Wii U scene.
OP
Member
Joined
Feb 6, 2019
Messages
3,271
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
8,221
Country
Ecuador
Hi, sorry for bumping this thread
You can't simply rename the source files. The .o are object files. It's the compiler that generates them. This compilation phase essentially 'translates' the sources(.cpp) to machine code(.o). It precedes the final linking phase that takes all objects and required libraries to produce the executable(the dol file).

Anyway, as you know, this homebrew uses a custom libogc and there are some missing stuff in the makefile.
First, make sure you have installed the official DevkitPPC/libogc correctly : https://devkitpro.org/wiki/Getting_Started
Just compile the wii examples and if all is ok, go on.

You must compile the custom libogc2. Download and extract https://github.com/emukidid/libogc.
Open command line in the extracted folder and type 'make' and 'make install'.
It should be installed in your Devkipro folder now.

Modify wii64 Makefile.base. At the beginning of file, add these lines:
Code:
export    LIBOGC_INC    :=    $(DEVKITPRO)/libogc2/include

export DEPSDIR    :=    $(CURDIR)

Now try to compile wii64 with 'make -f Makefile.Rice_Wii --jobs=4' or with build.bat if on Windows. If you use the make command for several builds, remember to clean the project first by removing the .o files!

Note that I have no clue of which DevkitPPC version should be used. I had a ton of warning with r39-2. Zero guarantee the dol will work correctly. You shoud ask emukidid to be sure.

Hi there @Wiimpathy

Sorry for not giving news, but i've managed to ask emu_kidid about the devkitPPC used and the other required libraries for compile Wii64.
I installed them, but i still get the error of the powerpc-eabi-* and others not detected.

These:


glN64_Wii

$ make -f makefile.gln64_wii
powerpc-eabi-g++ -DGLN64_GX -D__LINUX__ -DWII -DHW_RVL -DUSE_EXPANSION -D__wii__ -g -O3 -Wall -Wno-parentheses -Wno-unused-parameter -pipe -mcpu=750 -meabi -mhard-float -I/opt/devkitpro/libogc2/include -I/opt/devkitpro/portlibs/ppc/include -DGEKKO -D__GX__ -DUSE_GUI -DRELEASE -DMENU_V2 -DTHREADED_AUDIO -DUSE_RECOMP_CACHE -DPPC_DYNAREC -DFASTMEM -DNO_ASM -c -o glN64_GX/glN64.o glN64_GX/glN64.cpp
make: powerpc-eabi-g++: No such file or directory
make: *** [<builtin>: glN64_GX/glN64.o] Error 127

Rice_Wii

$ make -f makefile.rice_wii
powerpc-eabi-g++ -DRICE_GFX -DWII -DHW_RVL -DUSE_EXPANSION -D__wii__ -g -O3 -Wall -Wno-parentheses -Wno-unused-parameter -pipe -mcpu=750 -meabi -mhard-float -I/opt/devkitpro/libogc2/include -I/opt/devkitpro/portlibs/ppc/include -DGEKKO -D__GX__ -DUSE_GUI -DRELEASE -DMENU_V2 -DTHREADED_AUDIO -DUSE_RECOMP_CACHE -DPPC_DYNAREC -DFASTMEM -DNO_ASM -c -o TextureArchive/ArchiveReader.o TextureArchive/ArchiveReader.cpp
make: powerpc-eabi-g++: No such file or directory
make: *** [<builtin>: TextureArchive/ArchiveReader.o] Error 127

How did you manage to solve these problems? Please help :(

Thanks ;)
 
  • Like
Reactions: godreborn

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: Lol