Giter VIP home page Giter VIP logo

Comments (9)

zdenop avatar zdenop commented on May 1, 2024

committed but it seems that this is only occurrence of OpenMP support...

from tesseract.

ryanfb avatar ryanfb commented on May 1, 2024

Hi, when I try to compile on a Mac with this commit in (for testing #71), I now get the following error:

configure: error: conditional "OPENMP" was never defined.
Usually this means the macro was only invoked conditionally.

from tesseract.

zdenop avatar zdenop commented on May 1, 2024

Did you run ./autogen.sh after git pull? Was it without error? Can you provide config.log?

from tesseract.

ryanfb avatar ryanfb commented on May 1, 2024

Here's a config.log for the current master branch after ./autogen.sh && ./configure: https://gist.github.com/c134a55446c99b9702fe

Same process succeeds if I revert bb19f2c.

from tesseract.

ryanfb avatar ryanfb commented on May 1, 2024

I think this may be related to this problem/answer: http://stackoverflow.com/a/32122781
As I believe the conftest should find <omp.h> when given -fopenmp. I'm currently letting the gcc reinstall run, and will report back after.

But also the configure process probably shouldn't fail by default if there's no OpenMP support detected/enabled.

from tesseract.

ryanfb avatar ryanfb commented on May 1, 2024

Confirmed that after brew reinstall gcc --without-multilib, I can use e.g. brew install --HEAD --cc=gcc-5 tesseract and the configure/make will succeed with bb19f2c in. Without --cc=gcc-5 it fails due to the lack of OpenMP support in the current Clang/LLVM compiler shipped with OS X (i.e. the default Mac "gcc").

from tesseract.

zdenop avatar zdenop commented on May 1, 2024

Thanks for testing and report. Should be fixed in f331a57.

from tesseract.

amitdo avatar amitdo commented on May 1, 2024

@ryanfb, @zdenop
FYI, Clang 3.7 now support OpenMP.

OpenMP 3.1 is fully supported, but disabled by default. To enable it, please use the -fopenmp=libomp command line option.

http://llvm.org/releases/3.7.0/tools/clang/docs/ReleaseNotes.html#openmp-support

from tesseract.

zdenop avatar zdenop commented on May 1, 2024

Patches are welcommed ;) Anyway tesseract can use OpenMP only in one place....

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.