Skip to content

allow passing HAVE_OGG_OGC to link to needed OGG libs in PPC portlibs on libOGC platforms (GameCube/Wii), needed for a few cores. #18100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

saulfabregwiivc
Copy link
Contributor

@saulfabregwiivc saulfabregwiivc commented Jul 17, 2025

pass the argument HAVE_OGG_OGC=1 when compiling GameCube or Wii cores that use and/or need shared OGG libraries (ex. libvorbis).
Coming from my conversation with upcoming OGG support on PicoDrive: irixxxx/picodrive#180

Works on Makefile.wii, Makefile.ngc, and Makefile.griffin.

Please take note that it will look for the libraries libvorbisfile, libvorbis, and libogg in the location /opt/devkitpro/portlibs/ppc/lib.

By default, this is disabled to avoid compilation problems caused by most people not having those libraries installed adequately.

Also please take note that some Wii cores that use libvorbis also need to modify their Makefiles to seek for the include files in /opt/devkitpro/portlibs/ppc/include.
e.g., add to CFLAGS the following: -I$(DEVKITPRO)/portlibs/ppc/include
See example: https://github.com/irixxxx/picodrive/pull/186/files#diff-9b06322f74c0fac1f20a02120275946e3e2ec8e150ef3edfd424f8ac1c345799R285

Thanks to @irixxxx for helping me with this.

@LibretroAdmin LibretroAdmin merged commit 180b39c into libretro:master Jul 18, 2025
31 checks passed
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