Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xrepo install tesseract : issue #4564

Open
raphael10-collab opened this issue Jul 4, 2024 · 2 comments
Open

xrepo install tesseract : issue #4564

raphael10-collab opened this issue Jul 4, 2024 · 2 comments
Labels

Comments

@raphael10-collab
Copy link

raphael10-collab commented Jul 4, 2024

Xmake Version

2.9.3

Operating System Version and Architecture

Ubuntu 23.10

Describe Bug

raphy@raohy:~$ xrepo search leptonica
The package names:
    leptonica: 
      -> leptonica-1.84.1: Leptonica is a pedagogically-oriented open source site containing software that is broadly useful for image processing and image analysis applications. (in xmake-repo)
raphy@raohy:~$ 
raphy@raohy:~$ xrepo install leptonica-1.84.1
error: package(leptonica-1.84.1) not found!
error: execv(/home/raphy/.local/bin/xmake require -j 10 --extra={system=false} leptonica-1.84.1) failed(255)
raphy@raohy:~$ 
raphy@raohy:~$ xrepo install leptonica


raphy@raohy:~$ xrepo search tesseract
The package names:
    tesseract: 
      -> tesseract-5.3.4: Tesseract Open Source OCR Engine (in xmake-repo)
raphy@raohy:~$ 
raphy@raohy:~$ xrepo install tesseract-5.3.4
error: package(tesseract-5.3.4) not found!
error: execv(/home/raphy/.local/bin/xmake require -j 10 --extra={system=false} tesseract-5.3.4) failed(255)
raphy@raohy:~$ 


raphy@raohy:~$ xrepo install tesseract
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> tesseract 5.3.4 
please input: y (y/n/m)
y
  => install tesseract 5.3.4 .. failed

CMake Warning at CMakeLists.txt:398 (find_package):
  Found package configuration file:
    /home/raphy/.xmake/packages/l/leptonica/1.84.1/bfb5ed63d07c4ace9bd74a4659b7e56b/lib/cmake/leptonica/LeptonicaConfig.cmake
  but it set Leptonica_FOUND to FALSE so package "Leptonica" is considered to
  be NOT FOUND.  Reason given by package:
  Leptonica could not be found because dependency WebP could not be found.
CMake Error at CMakeLists.txt:404 (message):
  Cannot find required library Leptonica.  Quitting!
ring tesseract version 5.3.4...
-- IPO / LTO supported
-- CMAKE_SYSTEM_PROCESSOR=<x86_64>
-- Performing Test HAVE_AVX
-- Performing Test HAVE_AVX - Success
-- Performing Test HAVE_AVX2
-- Performing Test HAVE_AVX2 - Success
-- Performing Test HAVE_AVX512F
-- Performing Test HAVE_AVX512F - Success
if you want to get more verbose errors, please see:
  -> /home/raphy/.xmake/cache/packages/2407/t/tesseract/5.3.4/installdir.failed/logs/install.txt
error: install failed!
error: execv(/home/raphy/.local/bin/xmake require -j 10 --extra={system=false} tesseract) failed(255)

Expected Behavior

Plain tesseract installation

Project Configuration

raphy@raohy:~$ cat xmake.lua 
set_languages("c99", "c++20")
add_rules("mode.debug", "mode.release")

--add_requires("cosmocc")

add_syslinks("pthread")

add_requires(
    "cosmocc",
    "wxWidgets",
    "curl",
    "leptonica",
    "tesseract",
    "PDFHummus::PDFWriter",
    --"Threads",
    "OpenSSL::SSL",
    "nng",
    "json-c",
    "sqlite3",
    "stfl",
    "xml2",
    "icui18n",
    "icuuc"
)

target("isdigits")
    set_kind("binary")
    --add_files("/home/raphy/isdigits/src/*.cpp")
    add_files("/home/raphy/Grasp/src/*.cpp")

    set_toolchains("@cosmocc")

on_install(function (package)
     -- TODO
end)

Additional Information and Error Logs

raphy@raohy:~$ cat /home/raphy/.xmake/cache/packages/2407/t/tesseract/5.3.4/installdir.failed/logs/install.txt
CMake Warning at CMakeLists.txt:398 (find_package):
  Found package configuration file:

    /home/raphy/.xmake/packages/l/leptonica/1.84.1/bfb5ed63d07c4ace9bd74a4659b7e56b/lib/cmake/leptonica/LeptonicaConfig.cmake

  but it set Leptonica_FOUND to FALSE so package "Leptonica" is considered to
  be NOT FOUND.  Reason given by package:

  Leptonica could not be found because dependency WebP could not be found.



CMake Error at CMakeLists.txt:404 (message):
  Cannot find required library Leptonica.  Quitting!


ring tesseract version 5.3.4...
-- IPO / LTO supported
-- CMAKE_SYSTEM_PROCESSOR=<x86_64>
-- Performing Test HAVE_AVX
-- Performing Test HAVE_AVX - Success
-- Performing Test HAVE_AVX2
-- Performing Test HAVE_AVX2 - Success
-- Performing Test HAVE_AVX512F
-- Performing Test HAVE_AVX512F - Success
-- Performing Test HAVE_FMA
-- Performing Test HAVE_FMA - Success
-- Performing Test HAVE_SSE4_1
-- Performing Test HAVE_SSE4_1 - Success
-- Performing Test OPENMP_SIMD
-- Performing Test OPENMP_SIMD - Success
-- Could NOT find WebP (missing: WebP_DIR)
-- Configuring incomplete, errors occurred!
@waruqi
Copy link
Member

waruqi commented Jul 5, 2024

$ xrepo install tesseract-5.3.4
error: package(tesseract-5.3.4) not found!

incorrect syntax

xrepo install tesseract-5.3.4 -> xrepo install "tesseract 5.3.4"

xrepo install "package version"

@raphael10-collab
Copy link
Author

raphael10-collab commented Jul 5, 2024

raphy@raohy:~$ xrepo install "tesseract 5.3.4"
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> tesseract 5.3.4 
please input: y (y/n/m)
y
  => install tesseract 5.3.4 .. failed

CMake Warning at CMakeLists.txt:398 (find_package):
  Found package configuration file:
    /home/raphy/.xmake/packages/l/leptonica/1.84.1/bfb5ed63d07c4ace9bd74a4659b7e56b/lib/cmake/leptonica
   /LeptonicaConfig.cmake
      but it set Leptonica_FOUND to FALSE so package "Leptonica" is considered to
      be NOT FOUND.  Reason given by package:
      Leptonica could not be found because dependency WebP could not be found.
    CMake Error at CMakeLists.txt:404 (message):
      Cannot find required library Leptonica.  Quitting!
    ring tesseract version 5.3.4...
    -- IPO / LTO supported
    -- CMAKE_SYSTEM_PROCESSOR=<x86_64>
    -- Performing Test HAVE_AVX
    -- Performing Test HAVE_AVX - Success
    -- Performing Test HAVE_AVX2
    -- Performing Test HAVE_AVX2 - Success
    -- Performing Test HAVE_AVX512F
    -- Performing Test HAVE_AVX512F - Success
   if you want to get more verbose errors, please see:
     -> /home/raphy/.xmake/cache/packages/2407/t/tesseract/5.3.4/installdir.failed/logs/install.txt
   error: install failed!
   error: execv(/home/raphy/.local/bin/xmake require -j 10 --extra={system=false} "tesseract 5.3.4") failed(255)

/home/raphy/.xmake/cache/packages/2407/t/tesseract/5.3.4/installdir.failed/logs/install.txt :

CMake Warning at CMakeLists.txt:398 (find_package):
  Found package configuration file:

/home/raphy/.xmake/packages/l/leptonica/1.84.1/bfb5ed63d07c4ace9bd74a4659b7e56b/lib/cmake/leptonica/LeptonicaConfig.cmake

but it set Leptonica_FOUND to FALSE so package "Leptonica" is considered to
be NOT FOUND. Reason given by package:

Leptonica could not be found because dependency WebP could not be found.

CMake Error at CMakeLists.txt:404 (message):
  Cannot find required library Leptonica.  Quitting!


ring tesseract version 5.3.4...
-- IPO / LTO supported
-- CMAKE_SYSTEM_PROCESSOR=<x86_64>
-- Performing Test HAVE_AVX
-- Performing Test HAVE_AVX - Success
-- Performing Test HAVE_AVX2
-- Performing Test HAVE_AVX2 - Success
-- Performing Test HAVE_AVX512F
-- Performing Test HAVE_AVX512F - Success
-- Performing Test HAVE_FMA
-- Performing Test HAVE_FMA - Success
-- Performing Test HAVE_SSE4_1
-- Performing Test HAVE_SSE4_1 - Success
-- Performing Test OPENMP_SIMD
-- Performing Test OPENMP_SIMD - Success
-- Could NOT find WebP (missing: WebP_DIR)
-- Configuring incomplete, errors occurred!

I installed libwebp

raphy@raohy:~$ xrepo search webp
The package names:
    webp: 
      -> libwebp-v1.3.0: Library to encode and decode images in WebP format. (in xmake-repo)


raphy@raohy:~$ xrepo install "libwebp v1.3.0"
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> libwebp v1.3.0 
please input: y (y/n/m)
y
  => download https://github.com/webmproject/libwebp/archive/v1.3.0.tar.gz .. ok
  => install libwebp v1.3.0 .. ok
raphy@raohy:~$ 

But it gives the same error: Leptonica could not be found because dependency WebP could not be found :

raphy@raohy:~$ xrepo install "tesseract 5.3.4"
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> tesseract 5.3.4 
please input: y (y/n/m)
y
  => install tesseract 5.3.4 .. failed

CMake Warning at CMakeLists.txt:398 (find_package):
  Found package configuration file:
    /home/raphy/.xmake/packages/l/leptonica/1.84.1/bfb5ed63d07c4ace9bd74a4659b7e56b/lib/cmake/leptonica/LeptonicaConfig.cmake
  but it set Leptonica_FOUND to FALSE so package "Leptonica" is considered to
  be NOT FOUND.  Reason given by package:
  Leptonica could not be found because dependency WebP could not be found.
CMake Error at CMakeLists.txt:404 (message):
  Cannot find required library Leptonica.  Quitting!
ring tesseract version 5.3.4...
-- IPO / LTO supported
-- CMAKE_SYSTEM_PROCESSOR=<x86_64>
-- Performing Test HAVE_AVX
-- Performing Test HAVE_AVX - Success
-- Performing Test HAVE_AVX2
-- Performing Test HAVE_AVX2 - Success
-- Performing Test HAVE_AVX512F
-- Performing Test HAVE_AVX512F - Success
if you want to get more verbose errors, please see:
  -> /home/raphy/.xmake/cache/packages/2407/t/tesseract/5.3.4/installdir.failed/logs/install.txt
error: install failed!
error: execv(/home/raphy/.local/bin/xmake require -j 10 --extra={system=false} "tesseract 5.3.4") failed(255)

/home/raphy/.xmake/cache/packages/2407/t/tesseract/5.3.4/installdir.failed/logs/install.txt :

CMake Warning at CMakeLists.txt:398 (find_package):
  Found package configuration file:

    /home/raphy/.xmake/packages/l/leptonica/1.84.1/bfb5ed63d07c4ace9bd74a4659b7e56b/lib/cmake/leptonica    
/LeptonicaConfig.cmake

  but it set Leptonica_FOUND to FALSE so package "Leptonica" is considered to
  be NOT FOUND.  Reason given by package:

  Leptonica could not be found because dependency WebP could not be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants