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

[mingw64] [tesseract] tesseract build fails due to undefined references #2646

Closed SalaxIrrumator closed 2 months ago

SalaxIrrumator commented 2 months ago

Tesseract build fails due to undefined references in libtiff.a. Since the error log mentioned WebP, I deleted the build folders for libtiff, libwebp, and tesseract and ran MABS again. The results were the same.

┌ tesseract git  ...................................... [Recently updated]
├ Installing docbook-xsl... done
├ Installing libarchive... done
├ Installing pango... done
├ Installing asciidoc... done
├ Running autogen...
├ Running configure...
├ Running make...
Likely error (tail of the failed operation logfile):
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xd78): undefined reference to `WebPInitDecoderConfigInternal'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xdb4): undefined reference to `WebPGetFeaturesInternal'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xdc5): undefined reference to `WebPFreeDecBuffer'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xf17): undefined reference to `WebPInitDecBufferInternal'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xf79): undefined reference to `WebPINewDecoder'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0x1041): undefined reference to `WebPInitDecBufferInternal'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:4440: tesseract.exe] Error 1
make[1]: Leaving directory '/build/tesseract-git/build-64bit'
make: *** [Makefile:8147: all-recursive] Error 1
make failed. Check C:/ab-suite-20230911/build/tesseract-git/build-64bit/ab-suite.make.log

logs.zip

vt-idiot commented 2 months ago

git pull. the most recent 2 commits fix that

LigH-de commented 2 months ago

Yes, passes now.