Code Monkey home page Code Monkey logo

Comments (3)

hktalent avatar hktalent commented on July 19, 2024

macOS not

// #cgo CPPFLAGS: -I/usr/local/include

// #cgo CXXFLAGS: -std=c++0x
// #cgo CPPFLAGS: -I/usr/local/include
// #cgo CPPFLAGS: -Wno-unused-result
// #cgo LDFLAGS: -L/usr/local/lib -lleptonica -ltesseract

from gosseract.

andy-gpt avatar andy-gpt commented on July 19, 2024

Same issue here. Were you able to fix it?

from gosseract.

hktalent avatar hktalent commented on July 19, 2024

@andyrodionov @otiai10
macos:

1. In the terminal, enter the following command to install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

2. Install the Leptonica library:

brew install leptonica

3. Verify whether the Leptonica library has been installed successfully:

brew list leptonica
sudo ln -s /usr/local/Cellar/leptonica/1.83.1 /usr/local/opt/leptonica
sudo ln -s /usr/local/opt/leptonica/lib/libleptonica.6.dylib /usr/local/opt/leptonica/lib/liblept.5.dylib

4. Check dependencies

otool -L /usr/local/opt/leptonica/lib/libleptonica.6.dylib

5. Which third-party libraries does gossipact depend on?

Tesseract: an open source OCR engine
Leptonica: an image processing library for processing and analyzing images
Jpeg: an image codec library for processing JPEG images
Gzip: a data compression library for compressing and decompressing data
Curl: a network library for accessing network resources
gosseract uses pkg-config to obtain dependencies of third-party libraries. When compiling gosseract, these third-party libraries need to be installed.

Here is a detailed description of gosseract dependencies:

Tesseract: gossiper uses Tesseract for OCR recognition. Tesseract is an open source OCR engine that supports multiple languages and fonts.
Leptonica: gossipact uses Leptonica to process and analyze images. Leptonica is an image processing library that supports multiple image formats.
Jpeg: gossiperact uses Jpeg to process JPEG images. Jpeg is an image codec library that supports the JPEG image format.
Gzip: gossipact uses Gzip to compress and decompress data. Gzip is a data compression library that supports the Gzip compression format.
Curl: gossipact uses Curl to access network resources. Curl is a network library that supports protocols such as HTTP and HTTPS.
In macOS, you can use the following command to install the third-party libraries that gosseract depends on:

brew install tesseract leptonica jpeg gzip curl
In Linux, you can use the following command to install the third-party libraries that gosseract depends on:

sudo apt install tesseract-ocr libleptonica-dev libjpeg-dev zlib1g-dev libcurl4-openssl-dev

from gosseract.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.