Skip to content

Disable opus music in 016-SDL2_mixer-2.0.4.sh#85

Open
CatMe0w wants to merge 2 commits into
ps3dev:masterfrom
CatMe0w:sdl2-mixer-disable-opus
Open

Disable opus music in 016-SDL2_mixer-2.0.4.sh#85
CatMe0w wants to merge 2 commits into
ps3dev:masterfrom
CatMe0w:sdl2-mixer-disable-opus

Conversation

@CatMe0w

@CatMe0w CatMe0w commented Jun 12, 2026

Copy link
Copy Markdown

SDL2_mixer's configure auto-detectes the host (macOS Homebrew) opusfile and tried to link its incompatible host archive into the PS3 build.

@clienthax

clienthax commented Jun 12, 2026

Copy link
Copy Markdown

That seems like a bigger issue with the config/build procedure itself, why is it checking host dependencies vs target dependencies?

@clienthax

clienthax commented Jun 13, 2026

Copy link
Copy Markdown

Real problem is the export line
get rid of it and add a \ to the previous line like so.

## Configure the build.
CFLAGS="-I$PSL1GHT/ppu/include -I$PS3DEV/portlibs/ppu/include" \
LDFLAGS="-L$PSL1GHT/ppu/lib -L$PS3DEV/portlibs/ppu/lib -lrt -llv2" \
PKG_CONFIG_PATH="$PS3DEV/portlibs/ppu/lib/pkgconfig" \
LIBMIKMOD_CONFIG="$PS3DEV/portlibs/ppu/bin/libmikmod-config" \
../configure --prefix="$PS3DEV/portlibs/ppu" --host="powerpc64-ps3-elf" \
    --disable-sdltest \
    --with-sdl-exec-prefix="$PS3DEV/portlibs/ppu" \
    --disable-shared \
    --disable-music-cmd \
    --disable-music-ogg-shared \
    --disable-music-mp3 \
    --disable-music-flac \
    --disable-music-mod-modplug \
    --enable-music-mod-mikmod

@CatMe0w

CatMe0w commented Jun 14, 2026

Copy link
Copy Markdown
Author

Tested. Just exporting PKG_CONFIG_PATH isn't enough. macOS's default pc_path still includes /opt/homebrew/lib/pkgconfig, so host opus gets picked up again.

Switching it to PKG_CONFIG_LIBDIR confines pkg-config to PS3 portlibs and stops host leakage for every dependency.

@CatMe0w

CatMe0w commented Jun 14, 2026

Copy link
Copy Markdown
Author

Do you advise to drop --disable-music-opus then, or keep it as an explicit guard?

@clienthax

Copy link
Copy Markdown

Do you advise to drop --disable-music-opus then, or keep it as an explicit guard?

Doesnt seem a hard requirement now that the leakage is fixed, might be an idea to apply that change across all scripts however

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants