Package Details: dpscreenocr 1.4.1-1

Git Clone URL: https://aur.archlinux.org/dpscreenocr.git (read-only, click to copy)
Package Base: dpscreenocr
Description: Program to recognize text on screen
Upstream URL: https://danpla.github.io/dpscreenocr
Keywords: ocr tesseract tesseract-ocr
Licenses: zlib
Submitter: ragouel
Maintainer: Jake
Last Packager: Jake
Votes: 6
Popularity: 0.000003
First Submitted: 2020-06-28 22:15 (UTC)
Last Updated: 2024-03-18 23:04 (UTC)

Latest Comments

Jericho commented on 2022-03-24 18:54 (UTC) (edited on 2022-03-24 18:55 (UTC) by Jericho)

...
-- Found Intl: /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/io/.cache/yay/dpscreenocr/src/dpscreenocr-1.0.2/build
[  1%] Generating locale/ru/LC_MESSAGES/dpscreenocr.mo
[  1%] Built target mo_files
[  3%] Building C object src/dpso/stb_image_resize/CMakeFiles/stb_image_resize.dir/stb_image_resize.c.o
[  5%] Building C object src/dpso/stb_image_resize/CMakeFiles/stb_image_resize.dir/stb_image_resize_progress.c.o
[  7%] Linking C static library libstb_image_resize.a
[  7%] Built target stb_image_resize
[  9%] Building CXX object src/dpso/CMakeFiles/dpso.dir/backend/backend.cpp.o
[ 11%] Building CXX object src/dpso/CMakeFiles/dpso.dir/backend/null/null_key_manager.cpp.o
[ 13%] Building CXX object src/dpso/CMakeFiles/dpso.dir/backend/null/null_screenshot.cpp.o
[ 15%] Building CXX object src/dpso/CMakeFiles/dpso.dir/backend/null/null_selection.cpp.o
[ 16%] Building CXX object src/dpso/CMakeFiles/dpso.dir/delay.cpp.o
[ 18%] Building CXX object src/dpso/CMakeFiles/dpso.dir/dpso.cpp.o
[ 20%] Building CXX object src/dpso/CMakeFiles/dpso.dir/geometry.cpp.o
[ 22%] Building CXX object src/dpso/CMakeFiles/dpso.dir/hotkeys.cpp.o
[ 24%] Building CXX object src/dpso/CMakeFiles/dpso.dir/img.cpp.o
[ 26%] Building CXX object src/dpso/CMakeFiles/dpso.dir/key_names.cpp.o
[ 28%] Building CXX object src/dpso/CMakeFiles/dpso.dir/ocr.cpp.o
/home/user/.cache/yay/dpscreenocr/src/dpscreenocr-1.0.2/src/dpso/ocr.cpp:22:10: fatal error: tesseract/genericvector.h: No such file or directory
   22 | #include "tesseract/genericvector.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/dpso/CMakeFiles/dpso.dir/build.make:216: src/dpso/CMakeFiles/dpso.dir/ocr.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:224: src/dpso/CMakeFiles/dpso.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: dpscreenocr

Jake commented on 2021-11-20 11:09 (UTC) (edited on 2021-11-20 11:09 (UTC) by Jake)

@argo: -DDPSO_GEN_HTML_MANUAL=NO works, it has to be DD because first is -D for cmake and afterwards the actual option name that starts wit D as well.

@ragouel: Add the fix please, I could also (co)maintain if you want some help.

argo commented on 2021-11-13 12:56 (UTC) (edited on 2021-11-13 12:59 (UTC) by argo)

This package's got two issues in need of fixing:

  1. install="${pkgname}.install" line is extraneous
  2. an alternative to pandoc as a make dependency (and -DPSO_GEN_HTML_MANUAL=NO which did not work for me):

sed -i 's/option(DPSO_GEN_HTML_MANUAL "Generate HTML manual. Requires Pandoc." YES)/option(DPSO_GEN_HTML_MANUAL "Generate HTML manual. Requires Pandoc." NO)/' \

CMakeLists.txt

Otherwise it won't build at all.

cdfa commented on 2021-05-22 21:09 (UTC)

Missing pandoc make dependency.