m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.49k stars 257 forks source link

WIP: Fix VLC build process #2673

Open woot000 opened 1 month ago

woot000 commented 1 month ago

This PR attempts to fix the currently broken VLC build process. Some notable changes include switching from Qt 5 to Qt 6, switching from fxc2 to efxc, building abseil-cpp (new requirement of protobuf), building freetype, harfbuzz, and libpng for Qt 6, and building openjpeg2, fontconfig, libass, libogg, and ffmpeg 6.1 for VLC.

Much of the changes are based directly off of VLC's contrib build scripts.

Submitting as a draft because only 64-bit gcc compilation completes sucessfully. There are some problems that need to be addressed before this PR should be merged:

ld.lld: error: undefined symbol: __stop_pb_defaults

referenced by libprotobuf.a(generated_message_util.cc.o):(.refptr.__stop_pb_defaults) clang++: error: linker command failed with exit code 1 (use -v to see invocation)


I'm not sure what the cause of this error is or how to go about fixing it. I assume this error stems from the recent implementation of clang32/64 in the suite, though that's just a hunch.
* Qt 6 compilation fails if ccache is enabled, reporting ``unknown option -- t`` partway through compilation. ccache works for all non-Qt dependencies (including VLC proper), so it is enabled for those projects.