Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error including tesseract Windows 10
Forum Updated to NodeBB v4.3 + New Features

Error including tesseract Windows 10

Scheduled Pinned Locked Moved Unsolved General and Desktop
tesseractc++include pathheaderfile
4 Posts 2 Posters 1.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.
  • M Offline
    M Offline
    MEsc
    wrote on 26 Jun 2023, 09:40 last edited by
    #1

    Hello I have a problem. I want to use tesseract in my qt c++ application. I installed tesseract there: https://github.com/UB-Mannheim/tesseract/wiki

    I have included in the .pro file:
    LIBS += -L"C:\Program Files\Tesseract-OCR" -ltesseract-5
    INCLUDEPATH +=

    But now the problem is, in C:\Program Files\Tesseract-OCR is no include directory.
    So I went to this website: https://github.com/tesseract-ocr/tesseract and downloaded the zip file.

    There is an include directory: I tried to do this:
    INCLUDEPATH += "C:/tesseract-5.3.1/include"
    This is the path from the unpacked zip file. But then QT said this:
    C:\Users\esche\Desktop\Programming\C++\VOC-GUI\vocabeltrainer\signin.h:25: error: In included file: 'tesseract/version.h' file not found

    In this folder C:/tesseract-5.3.1/include is only version.h.in

    I dont kown what to do, please help!!

    J 1 Reply Last reply 26 Jun 2023, 09:43
    0
    • M MEsc
      26 Jun 2023, 09:40

      Hello I have a problem. I want to use tesseract in my qt c++ application. I installed tesseract there: https://github.com/UB-Mannheim/tesseract/wiki

      I have included in the .pro file:
      LIBS += -L"C:\Program Files\Tesseract-OCR" -ltesseract-5
      INCLUDEPATH +=

      But now the problem is, in C:\Program Files\Tesseract-OCR is no include directory.
      So I went to this website: https://github.com/tesseract-ocr/tesseract and downloaded the zip file.

      There is an include directory: I tried to do this:
      INCLUDEPATH += "C:/tesseract-5.3.1/include"
      This is the path from the unpacked zip file. But then QT said this:
      C:\Users\esche\Desktop\Programming\C++\VOC-GUI\vocabeltrainer\signin.h:25: error: In included file: 'tesseract/version.h' file not found

      In this folder C:/tesseract-5.3.1/include is only version.h.in

      I dont kown what to do, please help!!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 26 Jun 2023, 09:43 last edited by
      #2

      @MEsc You need to build Tesseract (source code you downloaded from https://github.com/tesseract-ocr/tesseract). Then you will have both, the libs and header files. See https://github.com/tesseract-ocr/tesseract/blob/main/INSTALL

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 26 Jun 2023, 09:50
      0
      • J jsulm
        26 Jun 2023, 09:43

        @MEsc You need to build Tesseract (source code you downloaded from https://github.com/tesseract-ocr/tesseract). Then you will have both, the libs and header files. See https://github.com/tesseract-ocr/tesseract/blob/main/INSTALL

        M Offline
        M Offline
        MEsc
        wrote on 26 Jun 2023, 09:50 last edited by MEsc
        #3

        @jsulm yeah, but I have problems with the instruction:

        1. cd' to the directory containing the package's source code and type ./configure' to configure the package for your system. If you're
          using csh' on an old version of System V, you might need to type sh ./configure' instead to prevent csh' from trying to execute configure' itself.

          Running `configure' takes a while. While running, it prints some
          messages telling which features it is checking for.

        2. Type `make' to compile the package.

        3. Optionally, type `make check' to run any self-tests that come with
          the package.

        4. Type `make install' to install the programs and any data files and
          documentation.

        5. You can remove the program binaries and object files from the
          source code directory by typing make clean'. To also remove the files that configure' created (so you can compile the package for
          a different kind of computer), type make distclean'. There is also a make maintainer-clean' target, but that is intended mainly
          for the package's developers. If you use it, you may have to get
          all sorts of other programs in order to regenerate files that came
          with the distribution.

        ./configure -> does not work

        J 1 Reply Last reply 26 Jun 2023, 09:52
        0
        • M MEsc
          26 Jun 2023, 09:50

          @jsulm yeah, but I have problems with the instruction:

          1. cd' to the directory containing the package's source code and type ./configure' to configure the package for your system. If you're
            using csh' on an old version of System V, you might need to type sh ./configure' instead to prevent csh' from trying to execute configure' itself.

            Running `configure' takes a while. While running, it prints some
            messages telling which features it is checking for.

          2. Type `make' to compile the package.

          3. Optionally, type `make check' to run any self-tests that come with
            the package.

          4. Type `make install' to install the programs and any data files and
            documentation.

          5. You can remove the program binaries and object files from the
            source code directory by typing make clean'. To also remove the files that configure' created (so you can compile the package for
            a different kind of computer), type make distclean'. There is also a make maintainer-clean' target, but that is intended mainly
            for the package's developers. If you use it, you may have to get
            all sorts of other programs in order to regenerate files that came
            with the distribution.

          ./configure -> does not work

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 26 Jun 2023, 09:52 last edited by
          #4

          @MEsc said in Error including tesseract Windows 10:

          ./configure -> does not work

          Yes, because you're on Windows.
          Maybe https://tesseract-ocr.github.io/tessdoc/Compiling.html#windows can help.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          2/4

          26 Jun 2023, 09:43

          • Login

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