Giter VIP home page Giter VIP logo

Comments (7)

stweil avatar stweil commented on June 15, 2024

Did you build text2image yourself (if yes: how)? And how did you install it?

from tesseract.

leleliu008 avatar leleliu008 commented on June 15, 2024

@stweil

Yes, I build it for Android.

I din't give you the reproduce steps, because it is very clear if you look at the source code https://github.com/tesseract-ocr/tesseract/blob/main/src/training/CMakeLists.txt#L405-L412

My build instuctions:

cmake \
        -Wno-dev \
        -DBUILD_TESTING=OFF \
        -DCMAKE_INSTALL_LIBDIR='/github/home/.ndk-pkg/installed/android-21-arm64-v8a/e485a3cff7749b1b6d89b185304b1ff469c336fb646f1b164b65578e9bad7ccd/lib' \
        -DCMAKE_INSTALL_PREFIX='/github/home/.ndk-pkg/installed/android-21-arm64-v8a/e485a3cff7749b1b6d89b185304b1ff469c336fb646f1b164b65578e9bad7ccd' \
        -DCMAKE_TOOLCHAIN_FILE='/github/home/.ndk-pkg/run/750/android-21-arm64-v8a/tesseract/android.toolchain.cmake' \
        -DCMAKE_VERBOSE_MAKEFILE='ON' \
        -DCMAKE_COLOR_MAKEFILE='ON' \
        -S /github/home/.ndk-pkg/run/750/android-21-arm64-v8a/tesseract/src \
        -B /github/home/.ndk-pkg/run/750/android-21-arm64-v8a/tesseract/src/_ \
        -DENABLE_LTO=OFF \
        -DUSE_SYSTEM_ICU=ON \
        -DDISABLE_ARCHIVE=OFF \
        -DDISABLE_CURL=OFF \
        -DBUILD_TESTS=OFF \
        -DBUILD_TRAINING_TOOLS=ON \
        -DOPENMP_BUILD=ON \
        -DLEPT_TIFF_RESULT=0

libtesseract-dependencies

from tesseract.

stweil avatar stweil commented on June 15, 2024

I am curious:

Are there useful applications for training on Android?
And how did you create that nice dependency diagram?

from tesseract.

leleliu008 avatar leleliu008 commented on June 15, 2024

Are there useful applications for training on Android?

I found this when I built it for Android, I think this problem is nothing to do with specific platform.

And how did you create that nice dependency diagram?

I create it in dot https://graphviz.org/doc/info/command.html

from tesseract.

zdenop avatar zdenop commented on June 15, 2024

I found this when I built it for Android, I think this problem has nothing to do with a specific platform.

Why do you try to build training tools if you are not able/want to use them on your platform? Just to get extra issues?

I din't give you the reproduce steps, because it is very clear if you look at the source code https://github.com/tesseract-ocr/tesseract/blob/main/src/training/CMakeLists.txt#L405-L412

I see no reason why to install pango_training:

$ ldd build/bin/text2image | grep -i pango
        libpangocairo-1.0.so.0 => /lib/arm-linux-gnueabihf/libpangocairo-1.0.so.0 (0xb6660000)
        libpango-1.0.so.0 => /lib/arm-linux-gnueabihf/libpango-1.0.so.0 (0xb65f0000)
        libpangoft2-1.0.so.0 => /lib/arm-linux-gnueabihf/libpangoft2-1.0.so.0 (0xb3980000)

The reason is very simple - the official build process for training tools uses static linking.

from tesseract.

leleliu008 avatar leleliu008 commented on June 15, 2024

If you want to static linking, you should change add_library(pango_training ${pango_training_src}) to add_library(pango_training STATIC ${pango_training_src})

from tesseract.

leleliu008 avatar leleliu008 commented on June 15, 2024

It a feature not a bug, so I'm closing.

from tesseract.

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.