Homebrew Error compiling Descent source code for Wii

Geekfox

New Member
OP
Newbie
Joined
Apr 25, 2022
Messages
4
Trophies
0
Age
40
Location
USA
XP
50
Country
United States
I'm trying to modify the field of view when playing Descent on Wii (especially in widescreen), but I'm running into compile errors from the Descent Wii source by Tueidj.

A minute later after I started compiling, it threw an error saying "fatal error: zlib.h: No such file or directory".

It's strange because I thought devkitPro provides zlib on its Wii/GC package, but apparently not. No problem, I hope, so I installed the missing zlib files from "zlib-1.2.5-ppc.tar.bz2" to appropriate folders and the error went away.

Then the next error stumbled me, and I don't know what to do:
blit.S
tmap_per.S
vecmatppc.S
fixppc.S
wii_exception.S
linking ... descent.elf
f:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/11.2.0/../../../../powerpc-eabi/bin/ld.exe: netipx.o:F:/devkitPro/descent-wii-master/source/main/netipx.c:96: multiple definition of `Players'; gameseq.o:F:/devkitPro/descent-wii-master/source/main/gameseq.c:111: first defined here
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/devkitPPC/wii_rules:30: /opt/devkitpro/descent-wii-master/descent.elf] Error 1
rm d_textures.tpl
make: *** [Makefile:108: build] Error 2

> Process Exit Code: 2

I'm not really sure what's at fault here. Even though it wasn't marked red, collect2.exe seems to be causing the stop error, as the line before that doesn't look like some sort of error.

I'm using the latest libraries provided by devkitPro Update 3.0.3 as of few days ago. Any help appreciated.
 

leseratte

Wiimmfi Team
Member
Joined
Jun 2, 2012
Messages
453
Trophies
1
XP
1,841
Country
Germany
The line before that is absolutely the error.

Most likely that application hasn't been updated to work with the -fno-common parameter that newer GCCs use by default. Easiest - if that application is no longer being maintained - is probably to use an older version of devkitPPC to get this to compile.
 
  • Like
Reactions: JuanMena

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,439
Country
Venezuela
I'm trying to modify the field of view when playing Descent on Wii (especially in widescreen), but I'm running into compile errors from the Descent Wii source by Tueidj.

A minute later after I started compiling, it threw an error saying "fatal error: zlib.h: No such file or directory".

It's strange because I thought devkitPro provides zlib on its Wii/GC package, but apparently not. No problem, I hope, so I installed the missing zlib files from "zlib-1.2.5-ppc.tar.bz2" to appropriate folders and the error went away.

Then the next error stumbled me, and I don't know what to do:


I'm not really sure what's at fault here. Even though it wasn't marked red, collect2.exe seems to be causing the stop error, as the line before that doesn't look like some sort of error.

I'm using the latest libraries provided by devkitPro Update 3.0.3 as of few days ago. Any help appreciated.
I've made a fork of it, you can find the updated link here.

You could also PM me the source code changes or just make a Pull Request, I will check it when I have some time, recompile, and test your changes.
 

Geekfox

New Member
OP
Newbie
Joined
Apr 25, 2022
Messages
4
Trophies
0
Age
40
Location
USA
XP
50
Country
United States
Thanks for the reply. Your fork of Descent for Wii is where I got the source code.

Unfortunately, I wasn't able to test any code changes, as I couldn't compile it without errors. I don't know which older package of devkitPPC was used to compile it, or how the compile workspace was set up before devkitPro.

Looking at the source code, I think line 64 in "source\main\render.c" sets the player's field of view, though I don't know if incrementing or decrementing the value would increase the FOV.
 

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    You'd be better off getting high on drugs than melted plastic lol.
  • K3N1 @ K3N1:
    Pls. Spend $250 on a analogue pocket
  • SylverReZ @ SylverReZ:
    This
  • SylverReZ @ SylverReZ:
    Analogue Pockets are by far superior, same price as a Switch but better lol.
  • DinohScene @ DinohScene:
    imagine spending 250 dollars to emulate pokemon blue
    +1
  • K3N1 @ K3N1:
    Don't spend $400 on a portable that can emulate steam games
  • SylverReZ @ SylverReZ:
    @DinohScene, Pokemon blue balls
  • DinohScene @ DinohScene:
    exactly, don't spend 400 dollars on a deck, spend 400 dollars on my deck!
  • K3N1 @ K3N1:
    Docked deck
  • SylverReZ @ SylverReZ:
    @DinohScene, Woah, that's pricey for sex lol.
  • DinohScene @ DinohScene:
    work calls, later children
  • SylverReZ @ SylverReZ:
    Ok seeya
  • K3N1 @ K3N1:
    Gonna go play RDR2 on my $400 portable steam player
  • Veho @ Veho:
    Vaccines have microplastics wut?
    +2
  • NinStar @ NinStar:
    everything has microplastics
  • NinStar @ NinStar:
    vaccine with some fake boobas and botched faces
  • NinStar @ NinStar:
    I don't understand why Nintendo wasted so much time to fix Mario Kart 8 and Splatoon and now they decide to announce that they are going to shutdown online services
  • NinStar @ NinStar:
    what was the point
  • Bunjolio @ Bunjolio:
    its over nintendo is shutting it down, no more online 3ds when its april, my birthday is in april too which makes it worse
  • _AppleDev @ _AppleDev:
    This makes certain games that utilize online play
    unable to be completed %100
  • _AppleDev @ _AppleDev:
    which REALLY sucks
  • Bunjolio @ Bunjolio:
    this feels like its out of nowhere too
    Bunjolio @ Bunjolio: this feels like its out of nowhere too