[GH-ISSUE #6] windows leptess 无法构建 #1

Closed
opened 2026-03-02 03:36:54 +03:00 by kerem · 2 comments
Owner

Originally created by @winner106 on GitHub (Oct 23, 2024).
Original GitHub issue: https://github.com/codexu/note-gen/issues/6

你好,我想在 Windows 中使用,但一直卡在包的安装上了,网上查了半天资料,都没解决……

image

 Compiling leptonica-sys v0.4.8
error: failed to run custom build command for `leptonica-sys v0.4.8`

Caused by:
  process didn't exit successfully: `J:\MyPrograms\note-gen-dev\src-tauri\target\debug\build\leptonica-sys-6f24ac40dd79f806\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=LEPTONICA_INCLUDE_PATH
  cargo:rerun-if-env-changed=LEPTONICA_LINK_PATHS
  cargo:rerun-if-env-changed=LEPTONICA_LINK_LIBS

  --- stderr
  thread 'main' panicked at C:\Users\Administrator\.cargo\registry\src\mirrors.ustc.edu.cn-4affec411d11e50f\leptonica-sys-0.4.8\build.rs:17:66:
  called `Result::unwrap()` on an `Err` value: LibNotFound("package leptonica is not installed for vcpkg triplet x64-windows-static-md")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

应该是和leptess = "0.14.0"的安装有关系,大佬如果方便的话,可以帮忙研究指导一下,感谢,希望项目越来越好。

或者短期解决不了的话,能否麻烦发布一下exe的安装包版本?

Originally created by @winner106 on GitHub (Oct 23, 2024). Original GitHub issue: https://github.com/codexu/note-gen/issues/6 你好,我想在 Windows 中使用,但一直卡在包的安装上了,网上查了半天资料,都没解决…… ![image](https://github.com/user-attachments/assets/da09b8f4-7809-4bc7-a33f-1dbc49f0ce66) ```powershell Compiling leptonica-sys v0.4.8 error: failed to run custom build command for `leptonica-sys v0.4.8` Caused by: process didn't exit successfully: `J:\MyPrograms\note-gen-dev\src-tauri\target\debug\build\leptonica-sys-6f24ac40dd79f806\build-script-build` (exit code: 101) --- stdout cargo:rerun-if-env-changed=LEPTONICA_INCLUDE_PATH cargo:rerun-if-env-changed=LEPTONICA_LINK_PATHS cargo:rerun-if-env-changed=LEPTONICA_LINK_LIBS --- stderr thread 'main' panicked at C:\Users\Administrator\.cargo\registry\src\mirrors.ustc.edu.cn-4affec411d11e50f\leptonica-sys-0.4.8\build.rs:17:66: called `Result::unwrap()` on an `Err` value: LibNotFound("package leptonica is not installed for vcpkg triplet x64-windows-static-md") note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... ``` 应该是和`leptess = "0.14.0"`的安装有关系,大佬如果方便的话,可以帮忙研究指导一下,感谢,希望项目越来越好。 或者短期解决不了的话,能否麻烦发布一下`exe`的安装包版本?
kerem 2026-03-02 03:36:54 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@codexu commented on GitHub (Oct 25, 2024):

windows 上我暂时也没找到好方法解决,可以考虑不用 rust 的 leptess,改为前端的 tesseract.js

<!-- gh-comment-id:2436581730 --> @codexu commented on GitHub (Oct 25, 2024): windows 上我暂时也没找到好方法解决,可以考虑不用 rust 的 leptess,改为前端的 tesseract.js
Author
Owner

@winner106 commented on GitHub (Oct 27, 2024):

好的,我的水平有限,有空时再琢磨一下,谢谢大佬。

<!-- gh-comment-id:2440055429 --> @winner106 commented on GitHub (Oct 27, 2024): 好的,我的水平有限,有空时再琢磨一下,谢谢大佬。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#1
No description provided.