Git Product home page Git Product logo

Comments (10)

amitdo avatar amitdo commented on May 1, 2024

@stweil
Do you think we need it?

from tesseract.

stweil avatar stweil commented on May 1, 2024

Using AX_PTHREAD would introduce a new dependency, because it is part of the GNU Autoconf Archive. On all of my build hosts, the Debian package autoconf-archive would have to be installed.

I only found a configure.ac for powertop which uses AX_PTHREAD, so it seems to be rarely used.

If we have multi-threaded code based on pthread, it is necessary to use the right compiler and linker options. Those options can be set by AX_PTHREAD, but also by software packages using pkg-config.

@elfring, did you notice missing options for pthread support in some Tesseract configurations?

from tesseract.

elfring avatar elfring commented on May 1, 2024

If we have multi-threaded code based on pthread, it is necessary to use the right compiler and linker options.

from tesseract.

stweil avatar stweil commented on May 1, 2024

I don't use any private scripts for compiler or linker options in Tesseract builds.

As far as I see, Tesseract only uses multi-threading for the viewer (only built for Windows, see viewer/svutil.cpp and for builds with OpenCL (which is disabled by default). So I assume that there is currently a problem with missing multi-threading compiler / linker options for these two configurations. Is that correct? Personally I must admit that I used neither of both configurations up to now.

from tesseract.

elfring avatar elfring commented on May 1, 2024

Would you like to improve the build situation generally for the mentioned software areas?

from tesseract.

stweil avatar stweil commented on May 1, 2024

Yes, of course, but I won't be able to contribute much during the next few weeks due to other activities.

from tesseract.

amitdo avatar amitdo commented on May 1, 2024

@elfring
I can't guarantee that there will be someone available to review these build system changes. I was hoping that @stweil could do it, but he has other priorities right now...

from tesseract.

amitdo avatar amitdo commented on May 1, 2024

Also note that we want to support cygwin and mingw.

from tesseract.

zdenop avatar zdenop commented on May 1, 2024

And we need to support Visual Studio ;-)

from tesseract.

zdenop avatar zdenop commented on May 1, 2024

Closing as it seems no progress for 2 years. Feel free to send PR with code/build system improvement.

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.