Another quick update on options needed to build retroarch with WUT, devkitpro r38 and portlibs.
When it comes time to integrate, these WUT options will be required wherever we run the linker.
-L/opt/devkitpro/wut/lib -lwut
libwut deprecates a bunch of older libraries like libcoreinit, so we'll have to remove all these too. more in
Wut 1.0.0-beta10 release notes.
= ffmpeg with SDL =
I confirmed these flags by compilng and linking the ffplay_g executable with SDL enabled.
tl;dr The libretro-ffmpeg core simply doesn't work out of the box for Wii U (more below).
To move forward though, I downloaded the latest ffmpeg separately and enable an ffmpeg output device (eg. SDL) that the WiiU should support. This part confirms we can satisfy link options necessary to build a WiiU ffmepg binary and theoretically satisfy libretro-core dependencies.
= libretro-ffmpeg core =
The current core makefile comes with 2 assumptions that don't hold true for WiiU. All platforms must
* implement opengl wrappers for the underlying graphics libraries. Googling for WiiU opengl makes me think Wii U does not support opengl. Fortunately, both WiiU devkitpro and ffmpeg support SDL, so we have some path forward.
* implement posix-like network libraries. (ex. socket.h). WiiU's network libraries are different enough to require some porting.
There's a deeper issue though. The ffmpeg build scripts and Makefile shipped with retroarch effectively reinvent the ffmpeg "configure" script through conditional statements, flags and hard coded lists of .o files to build. That means we have to figure out the right object files to build and all the right compiler -D flags to set for each library. I worked a few hours into a rathole until I decided on another path.
Rather than fixing the old ffmpeg build scripts with retroarch, I think it will probably easier to simply build all the ffmpeg static libraries using the latest release, using make files generated from a sane ffmpeg "configure" run. [DONE] We can then link libretro-ffmpeg core against these static ffmpeg libraries. TBD - trial and error out how much of libretro-ffmepg needs to be modified to support no opengl and no network (eg. by linking against pre-build external ffmpeg libraries)
If anyone wants me to post the configure script and devkitpro dependencies I used to build ffmpeg with SDL let me know.