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

gpac: undefined references to Brotli, BZ2 and hb in libfreetype #2653

Closed LigH-de closed 2 months ago

LigH-de commented 2 months ago

Also, despite M-AB-S building a current libfreetype.a, gpac prefers the mingw-shipped library. But in contrast to that, the suite-compiled library does not even contain one text match to "Brotli" or "BZ2" which are present in the mingw-shipped libraries. Sounds paradox to me.

┌ gpac git  ........................................... [Recently updated]
├ Running configure...
├ Running make...
Likely error (tail of the failed operation logfile):
G:/MABS/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/13.2.0/../../../../i686-w64-mingw32/bin/ld.exe: G:/MABS/msys64/mingw32/lib\libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x136): undefined reference to `BZ2_bzDecompress'
G:/MABS/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/13.2.0/../../../../i686-w64-mingw32/bin/ld.exe: G:/MABS/msys64/mingw32/lib\libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x309): undefined reference to `BZ2_bzDecompressEnd'
G:/MABS/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/13.2.0/../../../../i686-w64-mingw32/bin/ld.exe: G:/MABS/msys64/mingw32/lib\libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x365): undefined reference to `BZ2_bzDecompressInit'
G:/MABS/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/13.2.0/../../../../i686-w64-mingw32/bin/ld.exe: G:/MABS/msys64/mingw32/lib\libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x5f8): undefined reference to `BZ2_bzDecompressInit'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:88: gpac.exe] Error 1

logs.zip

Selur commented 2 months ago

same here :( logs.zip

LigH-de commented 2 months ago

Thanks to commit #a8245e9 gpac builds again.