Qt and Tesseract Linkage
-
@mchinand
So it was just a sample application? And they do not provide the.h
files with it?Does he really need to build it? IF it comes with pre-compiled external DLLs of whatever to make the (sample?) app work, can't he use those plus
.lib
s &.h
s for his own code without having to build the.dll
s? -
-
Guys, so if I do want to install close to instruction, how can I proceed with this lines?
For visual studio project using tesseract
Setup Vcpkg the Visual C++ Package Manager.
Run vcpkg install tesseract:x64-windows for 64-bit. Use –head for the master branch.
Static linkingTo build a self-contained tesseract.exe executable (without any DLLs or runtime dependencies), use Vcpkg as above with the following command:
vcpkg install tesseract:x64-windows-static for 64-bit
vcpkg install tesseract:x86-windows-static for 32-bit -
@OlegD said in Qt and Tesseract Linkage:
Run vcpkg install tesseract:x64-windows for 64-bit. Use –head for the master branch.
Did you do that?
Otherwise go ask the tesseract people. Qt people do not know anything about this package, we do not know whether it downloads e.g.
.h
files, only you/tesseract people do. -
Did you manage to install tesseract at all ?
-
What exactly did you do ?
What was the outcome ?Did you follow the documentation provided by the project itself ?
You seem to have already checked it based on one of your previous answer. However you did not explain what your issue was with them.
-
If I execute files below thay just do nothing
Download the latest SW (Software Network https://software-network.org/) client from https://software-network.org/client/. Run sw setup (may require administrator access) Run sw build org.sw.demo.google.tesseract.tesseract-master.
-
@OlegD said in Qt and Tesseract Linkage:
still saying
D:\PROG\May\Tesseract\main.cpp:1: error: tesseract/baseapi.h: No such file or directory
As I said earlier, you show no signs of having any tesseract
.h
files at all?I don't think you are reading and following all the instructions. Please do so. For example, in https://tesseract-ocr.github.io/tessdoc/Compiling.html#windows
Checkout tesseract sources
git clone https://github.com/tesseract-ocr/tesseract tesseract && cd tesseract
.I can see that would at least give you
tesseract/include/tesseract/*.h
, which is what you need..... -
@JonB said in Qt and Tesseract Linkage:
tesseract/include/tesseract/*.h
I can not run these files
Download the latest SW (Software Network https://software-network.org/) client from https://software-network.org/client/.
Run sw setup (may require administrator access)
Run sw build org.sw.demo.google.tesseract.tesseract-master -
The Qt installer provides MinGW directly. It has nothing to do with MSys.
-
So my next step must be here
Mingw-w64Mingw-w64 allows building 32- or 64-bit executables for Windows. It can be used for native compilations on Windows, but also for cross compilations on Linux (which are easier and faster than native compilations). Most large Linux distributions already contain packages with the tools need for a cross build. Before building Tesseract, it is necessary to build some prerequisites.
For Debian and similar distributions (e. g. Ubuntu), the cross tools can be installed like that:
Development environment targeting 32- and 64-bit Windows (required)
apt-get install mingw-w64
Development tools for 32- and 64-bit Windows (optional)
apt-get install mingw-w64-tools
These prerequisites will be needed:
libpng, libtiff, zlib (binaries for Mingw-w64 available as part of the GTK+ bundles) libicu liblcms2 openjpeg leptonica
what should i exactly do?
-
Why are you following the cross-compilation instructions from Linux to Windows ?