Невозможно связать госсеракт в macOS: ld: библиотека «Leapt» не найдена ⇐ C++
-
Anonymous
Невозможно связать госсеракт в macOS: ld: библиотека «Leapt» не найдена
I have installed tesseract 5.3.4 and leptonica 1.84.1 from homebrew. When I'm trying to run even the simplest code:
package main import ( "github.com/otiai10/gosseract" ) func main() { client := gosseract.NewClient() _ = client } I get the following error:
/opt/homebrew/Cellar/go/1.22.1/libexec/pkg/tool/darwin_arm64/link:
running c++ failed: exit status 1
ld: warning: ignoring duplicate libraries: '-llept', '-ltesseract'
ld: library 'lept' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've searched through all cmake files related to tesseract and leptonica and couldn't find linker options like -llept. Also leptonica brings shared libraries like libleptonica.6.dylib not liblept.6.dylib, but even making corresponding symlinks doesn't help.
Is there any something else I'm missing which is required to make gosseract work on masOS Sonoma with go1.22?
Источник: https://stackoverflow.com/questions/781 ... -not-found
I have installed tesseract 5.3.4 and leptonica 1.84.1 from homebrew. When I'm trying to run even the simplest code:
package main import ( "github.com/otiai10/gosseract" ) func main() { client := gosseract.NewClient() _ = client } I get the following error:
/opt/homebrew/Cellar/go/1.22.1/libexec/pkg/tool/darwin_arm64/link:
running c++ failed: exit status 1
ld: warning: ignoring duplicate libraries: '-llept', '-ltesseract'
ld: library 'lept' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've searched through all cmake files related to tesseract and leptonica and couldn't find linker options like -llept. Also leptonica brings shared libraries like libleptonica.6.dylib not liblept.6.dylib, but even making corresponding symlinks doesn't help.
Is there any something else I'm missing which is required to make gosseract work on masOS Sonoma with go1.22?
Источник: https://stackoverflow.com/questions/781 ... -not-found
Мобильная версия