Skip to content

undefined reference to symbol 'inflateEnd' #320

@luyomo

Description

@luyomo

I install tesseract 5.3.0 in the rasperry and succeeded to run it from command line. But when I attempted to use the golang to run it, it always gave me the below error. What's the issue on it?

# command-line-arguments
~/go/pkg/mod/golang.org/[email protected]/pkg/tool/linux_arm64/link: running g++ failed: exit status 1
/usr/bin/ld: /usr/local/lib/libleptonica.a(zlibmem.c.o): undefined reference to symbol 'inflateEnd'
/usr/bin/ld: //lib/aarch64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions