Honestly, this is a very messy configuration for me. Why? Tesseract (and other projects) use CMake to avoid such manual settings.
Just follow the example in our GitHub action for cmake&windows[1] - it is simply stupid and it works. Cmake takes care of correct linking (debug/release), and build (no need to run nmake) [1] https://github.com/tesseract-ocr/tesseract/blob/main/.github/workflows/cmake-win64.yml Zdenko so 14. 10. 2023 o 16:13 DJuego Director De Juego <[email protected]> napísal(a): > a) I have attached the construction logs of leptonica and tesseract. Yes, > I can guarantee that I only have one version of leptonica installed. > > For leptonica and tesseract I use a script for the build. > > And they seem to work fine because it generates all the files I need and > gives no errors. Here I present the excerpts from the script that I think > are the decisive ones. > > For debug > cmake -G 'NMake Makefiles' -D CMAKE_BUILD_TYPE=Debug -D SW_BUILD:BOOL=OFF > -D BUILD_PROG:BOOL=ON -D ENABLE_TIFF:BOOL=ON -D ENABLE_ZLIB:BOOL=ON -D > ENABLE_PNG:BOOL=ON -D ENABLE_JPEG:BOOL=ON -D ENABLE_GIF:BOOL=ON -D > CMAKE_INSTALL_PREFIX=$DIRECTORIO_INSTALACION_LIBRERIA/DEBUG -D > ZLIB_LIBRARY_DEBUG=$DIRECTORIO_INSTALACION/zlib/DEBUG/lib/zlibd.lib -D > ZLIB_LIBRARY_RELEASE=$DIRECTORIO_INSTALACION/zlib/RELEASE/lib/zlib.lib -D > ZLIB_INCLUDE_DIR=$DIRECTORIO_INSTALACION/zlib/DEBUG/include -D > TIFF_LIBRARY_DEBUG=$DIRECTORIO_INSTALACION/tiff/DEBUG/lib/tiffd.lib -D > TIFF_LIBRARY_RELEASE=$DIRECTORIO_INSTALACION/tiff/RELEASE/lib/tiff.lib -D > TIFF_INCLUDE_DIR=$DIRECTORIO_INSTALACION/tiff/DEBUG/include -D > PNG_LIBRARY=$DIRECTORIO_INSTALACION/libpng/DEBUG/lib/libpng16d.lib -D > PNG_PNG_INCLUDE_DIR=$DIRECTORIO_INSTALACION/libpng/DEBUG/include -D > JPEG_LIBRARY_DEBUG=$DIRECTORIO_INSTALACION/jpeg/DEBUG/lib/jpeg.lib -D > JPEG_LIBRARY_RELEASE=$DIRECTORIO_INSTALACION/jpeg/RELEASE/lib/jpeg.lib -D > JPEG_INCLUDE_DIR=$DIRECTORIO_INSTALACION/jpeg/DEBUG/include -D > GIF_LIBRARY=$DIRECTORIO_INSTALACION/giflib/DEBUG/lib/gif.lib -D > GIF_INCLUDE_DIR=$DIRECTORIO_INSTALACION/giflib/DEBUG/include ../.. > nmake > nmake install > > For release > cmake -G 'NMake Makefiles' -D CMAKE_BUILD_TYPE=Release -D > SW_BUILD:BOOL=OFF -D BUILD_PROG:BOOL=ON -D ENABLE_TIFF:BOOL=ON -D > ENABLE_ZLIB:BOOL=ON -D ENABLE_PNG:BOOL=ON -D ENABLE_JPEG:BOOL=ON -D > ENABLE_GIF:BOOL=ON -D > CMAKE_INSTALL_PREFIX=$DIRECTORIO_INSTALACION_LIBRERIA/RELEASE -D > ZLIB_LIBRARY_DEBUG=$DIRECTORIO_INSTALACION/zlib/DEBUG/lib/zlibd.lib -D > ZLIB_LIBRARY_RELEASE=$DIRECTORIO_INSTALACION/zlib/RELEASE/lib/zlib.lib -D > ZLIB_INCLUDE_DIR=$DIRECTORIO_INSTALACION/zlib/RELEASE/include -D > TIFF_LIBRARY_DEBUG=$DIRECTORIO_INSTALACION/tiff/DEBUG/lib/tiffd.lib -D > TIFF_LIBRARY_RELEASE=$DIRECTORIO_INSTALACION/tiff/RELEASE/lib/tiff.lib -D > TIFF_INCLUDE_DIR=$DIRECTORIO_INSTALACION/tiff/RELEASE/include -D > PNG_LIBRARY=$DIRECTORIO_INSTALACION/libpng/RELEASE/lib/libpng16.lib -D > PNG_PNG_INCLUDE_DIR=$DIRECTORIO_INSTALACION/libpng/RELEASE/include -D > JPEG_LIBRARY_DEBUG=$DIRECTORIO_INSTALACION/jpeg/DEBUG/lib/jpeg.lib -D > JPEG_LIBRARY_RELEASE=$DIRECTORIO_INSTALACION/jpeg/RELEASE/lib/jpeg.lib -D > JPEG_INCLUDE_DIR=$DIRECTORIO_INSTALACION/jpeg/RELEASE/include -D > GIF_LIBRARY=$DIRECTORIO_INSTALACION/giflib/RELEASE/lib/gif.lib -D > GIF_INCLUDE_DIR=$DIRECTORIO_INSTALACION/giflib/RELEASE/include ../.. > nmake > nmake install > > > For debug > cmake -G 'NMake Makefiles' -D CMAKE_BUILD_TYPE=Debug -D SW_BUILD:BOOL=OFF > -D BUILD_TRAINING_TOOLS:BOOL=OFF -D > Leptonica_DIR=$DIRECTORIO_INSTALACION/leptonica/DEBUG/lib/cmake/leptonica > -D TIFF_LIBRARY=$DIRECTORIO_INSTALACION/tiff/DEBUG/lib/tiffd.lib -D > TIFF_INCLUDE_DIR=$DIRECTORIO_INSTALACION/tiff/DEBUG/include -D > CMAKE_INSTALL_PREFIX=$DIRECTORIO_INSTALACION_LIBRERIA/DEBUG ../.. > nmake > nmake install > > For release > cmake -G 'NMake Makefiles' -D CMAKE_BUILD_TYPE=Release -D > SW_BUILD:BOOL=OFF -D BUILD_TRAINING_TOOLS:BOOL=OFF -D > Leptonica_DIR=$DIRECTORIO_INSTALACION/leptonica/RELEASE/lib/cmake/leptonica > -D TIFF_LIBRARY=$DIRECTORIO_INSTALACION/tiff/RELEASE/lib/tiff.lib -D > TIFF_INCLUDE_DIR=$DIRECTORIO_INSTALACION/tiff/RELEASE/include -D > CMAKE_INSTALL_PREFIX=$DIRECTORIO_INSTALACION_LIBRERIA/RELEASE ../.. > nmake > nmake install > > Everything seems to be working perfectly. The only issue has to do with > the message: > > > > > *"-- Found leptonica version: 1.84.0Leptonica was build without TIFF > support! Disabling TIFF support...-- TIFF support disabled.* > *"* > > I think the message is incorrect because the tesseract.exe executable that > is generated *needs *zlib.dll, tiff.dll and libpng16.dll (in the same > folder) to run. :-) > > DJuego > > > > El lunes, 9 de octubre de 2023 a las 7:26:58 UTC+1, zdenop escribió: > >> Please provide full logs including installation, configure >> parameters etc. - not screenshots. >> Make should you have only one installation of leptonica library >> May your own test if leptonica is built with tiff. >> Use release target and not debug. >> >> Zdenko >> >> >> ne 8. 10. 2023 o 21:56 DJuego Director De Juego <[email protected]> >> napísal(a): >> >>> Hi, Tesseract Community. My first message. >>> >>> Today I built the leptonica project with TIFF support. See figure >>> <https://imgur.com/SK2VqFf>. The build seems to have been a success. >>> >>> But when I build Tesseract linking it to Leptonica it doesn't seem to >>> detect TIFF support. In fact it claims that leptonica has no support and >>> states that it disables its own support. See picture >>> <https://imgur.com/hIsseYk>. >>> >>> What could be going on? Any suggestion? >>> >>> DJuego >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "tesseract-ocr" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/tesseract-ocr/e569ecdc-d013-46e6-ac16-c97992ec3420n%40googlegroups.com >>> <https://groups.google.com/d/msgid/tesseract-ocr/e569ecdc-d013-46e6-ac16-c97992ec3420n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/8199edea-37ef-41e8-9cf8-2180648acb46n%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/8199edea-37ef-41e8-9cf8-2180648acb46n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8y018kR20qD6F-AEs6q0_CZHM5fgmuk1FQ1VizHxwpsgA%40mail.gmail.com.

