Page 1 of 1

Makefile

Posted: Sat May 03, 2025 5:30 am
by Challenger

Hello,

Bug Report

Users were able to build the devkitPro Wii-examples on Windows 11.

What's the issue you encountered?

The Makefile is broken in the example
After setting up to the latest : version wii-dev eveninorment when running make
Code: Select all
c4269@Chance-Sophi_PC MSYS /opt/devkitpro/examples/wii
$ make
make[1]: Entering directory '/opt/devkitpro/examples/wii/audio/modplay'
make[2]: '/opt/devkitpro/examples/wii/audio/modplay/modplay.dol' is up to date.
make[1]: Leaving directory '/opt/devkitpro/examples/wii/audio/modplay'
make[1]: Entering directory '/opt/devkitpro/examples/wii/audio/mp3player'
make[2]: '/opt/devkitpro/examples/wii/audio/mp3player/mp3player.dol' is up to date.
make[1]: Leaving directory '/opt/devkitpro/examples/wii/audio/mp3player'
make[1]: Entering directory '/opt/devkitpro/examples/wii/audio/oggplayer'
make[2]: '/opt/devkitpro/examples/wii/audio/oggplayer/oggplayer.dol' is up to date.
make[1]: Leaving directory '/opt/devkitpro/examples/wii/audio/oggplayer'
make[1]: Entering directory '/opt/devkitpro/examples/wii/crypto'
crypto.c
C:/devkitPro/examples/wii/crypto/source/crypto.c: In function 'main':
C:/devkitPro/examples/wii/crypto/source/crypto.c:122:42: warning: passing argument 3 of 'AES_Encrypt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
122 | s32 ret = AES_Encrypt(key, 0x10, iv, 0x10, input, buffer, messageSize);
| ^~
In file included from C:/devkitPro/libogc/include/gccore.h:71,
from C:/devkitPro/examples/wii/crypto/source/crypto.c:5:
C:/devkitPro/libogc/include/ogc/aes.h:47:54: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char '}
47 | s32 AES_Encrypt(const void
key, u32 key_size, void* iv, u32 iv_size, const void* in_data, void* out_data, u32 data_size);
| ~^~
C:/devkitPro/examples/wii/crypto/source/crypto.c:129:39: error: passing argument 2 of 'SHA_Calculate' makes integer from pointer without a cast [-Wint-conversion]
129 | ret = SHA_Calculate(&context, buffer, messageSize, hash);
| ~~
$

How can the issue be reproduced?

trying to make the Makefile from the example file

Windows 11 Home x64 64-bit
Version 10.0.22631 Build 22631

Environment?

  • What host OS are you using?
    Code: Select all

OS:
Host: os Windows 11 Home x64 64-bit
Version 10.0.22631 Build 22631

  • Official release or unofficial/self-compiled build:
  • Official

Additional context?

happens on MacBooks too with the GCC


Re: Makefile

Posted: Mon May 26, 2025 2:52 pm
by WinterMute

Apologies. I hadn't got around to rolling a new package with the latest example updates. pacman -Syu should get you the latest working examples.