Невозможно связать госсеракт в macOS: ld: библиотека «Leapt» не найденаC++

Программы на C++. Форум разработчиков
Ответить
Anonymous
 Невозможно связать госсеракт в macOS: ld: библиотека «Leapt» не найдена

Сообщение Anonymous »


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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»