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

mingw32|mingw64 both and tesseract #2652

Closed kosmikza closed 1 month ago

kosmikza commented 2 months ago

Hi,

I seem to have a issue with the "tesseract git" library. On both 32 and 64 bit builds I see the below error, even though the suite says that ming is uptodate or updates respective components. I was able to do a initial compilation weeks ago when first downloading and am now trying to do a recompile.

Steps I've taken:

  1. Remove the tesseract git from the build folder in case of faulty fetch.
  2. Run for only 32 and only 64 to see if an issue with either architecture
  3. Deleted the msys directoy to force a fresh download of the ming tools, all download and install.

My last option is a full bomb of the directory and all the sources but from my understanding that shouldn't be necessary? The deletion of the tools and the specific repo should be ample.

Error output.

17:05:22 ┌ leptonica git  ............................... [Files missing]
17:05:22 ├ Running autogen...
17:05:37 ├ Running configure...
17:06:58 ├ Running make...
17:09:35 ├ Running install...
17:09:39 ├ Stripping...
17:09:39 └ leptonica-git  ..................................... [Updated]
17:09:43   Running git update for tesseract...
17:09:53 ┌ tesseract git  ............................ [Recently updated]
17:10:00 ├ Running autogen...
17:10:43 ├ Running configure...
17:12:10 ├ Running make...
Likely error (tail of the failed operation logfile):
C:/MediaBuild/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MediaBuild/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xd78): undefined reference to `WebPInitDecoderConfigInternal'
C:/MediaBuild/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MediaBuild/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xdb4): undefined reference to `WebPGetFeaturesInternal'
C:/MediaBuild/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MediaBuild/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xdc5): undefined reference to `WebPFreeDecBuffer'
C:/MediaBuild/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MediaBuild/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xf17): undefined reference to `WebPInitDecBufferInternal'
C:/MediaBuild/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MediaBuild/msys64/mingw64/lib/libtiff.a(tif_webp.o):(.text+0xf79): undefined reference to `WebPINewDecoder'
C:/MediaBuild/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MediaBuild/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:/MediaBuild/build/tesseract-git/build-64bit/ab-suite.make.log
This is required for other packages, so this script will exit.
17:21:38   Creating diagnostics file...

log.zip

1480c1 commented 2 months ago

Can you try again after pulling the latest suite?

https://github.com/m-ab-s/media-autobuild_suite/commit/b20f2626464198e7ccdf9e176ae48f245b46f807