Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt and Tesseract Linkage

Qt and Tesseract Linkage

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
install
53 Posts 5 Posters 8.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OlegD
    wrote on 27 May 2022, 15:06 last edited by
    #22

    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 linking

    To 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

    J 1 Reply Last reply 29 May 2022, 08:50
    0
    • O Offline
      O Offline
      OlegD
      wrote on 29 May 2022, 08:39 last edited by
      #23

      Still looking for any advise

      1 Reply Last reply
      0
      • O OlegD
        27 May 2022, 15:06

        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 linking

        To 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

        J Offline
        J Offline
        JonB
        wrote on 29 May 2022, 08:50 last edited by
        #24

        @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.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          OlegD
          wrote on 29 May 2022, 11:09 last edited by
          #25

          few bullets of instructions do not work..:K
          I've posted to Teseract forum, still no respond...
          Maybe you can share e-mail or phone from anyone related to Teseract?
          Big Thanks in advance

          1 Reply Last reply
          0
          • O Offline
            O Offline
            OlegD
            wrote on 13 Jun 2022, 17:24 last edited by
            #26

            Still looking for help to install Tesseract with QT
            Can pay for help

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 13 Jun 2022, 19:13 last edited by
              #27

              Did you manage to install tesseract at all ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • O Offline
                O Offline
                OlegD
                wrote on 14 Jun 2022, 10:17 last edited by
                #28

                Yes, but it does not work, so I'm asking for help

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 14 Jun 2022, 11:23 last edited by
                  #29

                  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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    OlegD
                    wrote on 14 Jun 2022, 11:53 last edited by
                    #30

                    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.
                    
                    1 Reply Last reply
                    0
                    • O OlegD
                      26 May 2022, 17:58

                      @mchinand said in Qt and Tesseract Linkage:

                      INCLUDEPATH += C:\Program Files(x86)\Tesseract-OCR)
                      LIBS += C:\Program Files(x86)\Tesseract-OCR)
                      LIBS +=-LC:\Program Files(x86)\Tesseract-OCR)

                      still saying D:\PROG\May\Tesseract\main.cpp:1: error: tesseract/baseapi.h: No such file or directory
                      D:\PROG\May\Tesseract\main.cpp:1:10: fatal error: tesseract/baseapi.h: No such file or directory
                      1 | #include <tesseract/baseapi.h>
                      | ^~~~~~~~~~~~~~~~~~~~~

                      current pro file

                      QT += core
                      QT -= gui

                      CONFIG += c++11

                      TARGET = openCV
                      CONFIG += console
                      CONFIG -= app_bundle

                      TEMPLATE = app
                      INCLUDEPATH += C:\opencv\release\install\include

                      LIBS += C:\opencv\release\bin\libopencv_core455.dll
                      LIBS += C:\opencv\release\bin\libopencv_highgui455.dll
                      LIBS += C:\opencv\release\bin\libopencv_imgcodecs455.dll
                      LIBS += C:\opencv\release\bin\libopencv_imgproc455.dll
                      LIBS += C:\opencv\release\bin\libopencv_calib3d455.dll
                      LIBS += C:\opencv\release\bin\libopencv_features2d455.dll
                      LIBS += C:\opencv\release\bin\libopencv_video455.dll
                      LIBS += C:\opencv\release\bin\libopencv_videoio455.dll

                      INCLUDEPATH += C:\Program Files(x86)\Tesseract-OCR)
                      LIBS += C:\Program Files(x86)\Tesseract-OCR)

                      LIBS += -LC:\Qt\opencv_cv2\OPENCV1\build-qt\lib
                      -lopencv_calib3d249d
                      -lopencv_contrib249d
                      -lopencv_core249d
                      -lopencv_features2d249d
                      -lopencv_flann249d
                      -lopencv_gpu249d
                      -lopencv_highgui249d
                      -lopencv_imgproc249d
                      -lopencv_legacy249d
                      -lopencv_ml249d
                      -lopencv_nonfree249d
                      -lopencv_objdetect249d
                      -lopencv_ocl249d
                      -lopencv_photo249d
                      -lopencv_stitching249d
                      -lopencv_superres249d
                      -lopencv_ts249d
                      -lopencv_video249d
                      -lopencv_videostab249d

                      SOURCES += main.cpp

                      DEFINES += QT_DEPRECATED_WARNINGS

                      please advise!

                      J Offline
                      J Offline
                      JonB
                      wrote on 14 Jun 2022, 11:58 last edited by
                      #31

                      @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.....

                      1 Reply Last reply
                      0
                      • O Offline
                        O Offline
                        OlegD
                        wrote on 14 Jun 2022, 12:04 last edited by
                        #32

                        @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

                        J 1 Reply Last reply 14 Jun 2022, 12:08
                        0
                        • O OlegD
                          14 Jun 2022, 12:04

                          @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

                          J Offline
                          J Offline
                          JonB
                          wrote on 14 Jun 2022, 12:08 last edited by JonB
                          #33

                          @OlegD
                          I give up. You are not listening and not following the instructions. Just expecting people here who know nothing about tesseract to solve it for you.

                          I can not run these files

                          These are not files to run.

                          1 Reply Last reply
                          0
                          • O Offline
                            O Offline
                            OlegD
                            wrote on 14 Jun 2022, 12:18 last edited by OlegD
                            #34

                            JonB, so how can I install if not via exe fille?!!!
                            sw.png

                            1 Reply Last reply
                            0
                            • O Offline
                              O Offline
                              OlegD
                              wrote on 14 Jun 2022, 12:31 last edited by
                              #35

                              oh! I found a clue and probably goind to install it soon...
                              Thank you so much, JonB!

                              1 Reply Last reply
                              0
                              • O Offline
                                O Offline
                                OlegD
                                wrote on 14 Jun 2022, 13:05 last edited by OlegD
                                #36

                                Now I need to build it according to my librariries...
                                How can i check what do I actually have?

                                Msys2
                                Mingw+Msys
                                Mingw-w64

                                Looking for command as below, to find what do I actually have
                                C:\Qt\Tools\mingw900_64>gcc -dumpversion
                                11.2.0

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 14 Jun 2022, 19:00 last edited by
                                  #37

                                  The Qt installer provides MinGW directly. It has nothing to do with MSys.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • O Offline
                                    O Offline
                                    OlegD
                                    wrote on 14 Jun 2022, 19:14 last edited by
                                    #38

                                    So my next step must be here
                                    Mingw-w64

                                    Mingw-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?

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 14 Jun 2022, 19:23 last edited by
                                      #39

                                      Why are you following the cross-compilation instructions from Linux to Windows ?

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      0
                                      • O Offline
                                        O Offline
                                        OlegD
                                        wrote on 14 Jun 2022, 19:52 last edited by
                                        #40

                                        Is there the similar command line in MinGW that supplied by QT?
                                        mingw.png

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 14 Jun 2022, 19:55 last edited by
                                          #41

                                          If memory serves well, you should have some shortcuts in the start menu that starts a command line instance that is ready to use with MinGW.

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved