New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build script, autogen.sh, fails #4011
Comments
Please do not cherry-pick error messages and code snippets. |
@zdenop how about these steps on MacOS, following the instruction here, https://tesseract-ocr.github.io/tessdoc/Compiling.html#macos: tesseract % brew install libomp For compilers to find libomp you may need to set: ==> Summary tesseract % brew install autoconf tesseract % cd .. github % cd tesseract tesseract % ./autogen.sh Something went wrong, bailing out! |
I do not have a MacOS, but there is no problem to build tesseract from source - see relevant github action log and workflow file. Hopefully somebody with MacOS 13 will explain what is wrong with your setup. |
Basic Information
I followed the Tesseract build instructions, installed all requirement packages. When I run autogen.sh, it breaks with this problem:
Running aclocal
Running /opt/local/bin/glibtoolize
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: copying file 'config/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
Running aclocal
Running autoconf
Missing pkg-config. Check the build requirements.
Something went wrong, bailing out!
in the autogen.sh script:
if grep -q PKG_CHECK_MODULES configure; then
The generated configure is invalid because pkg-config is unavailable.
rm configure
echo "Missing pkg-config. Check the build requirements."
bail_out
fi
do you know where is PKG_CHECK_MODULES defined?
I installed pkg-config:
tesseract % pkg-config --version
0.29.2
how can I fix this problem:
Missing pkg-config. Check the build requirements.
Something went wrong, bailing out!
gmake: *** [Makefile:383: tesseract.built] Error 1
Operating System
macOS 13 Ventura
Other Operating System
No response
uname -a
./autogen.sh
Running aclocal
Running /opt/local/bin/glibtoolize
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: copying file 'config/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
Running aclocal
Running autoconf
Missing pkg-config. Check the build requirements.
Something went wrong, bailing out!
Compiler
Xcode, gcc
Virtualization / Containers
No response
CPU
No response
Current Behavior
No response
Expected Behavior
No response
Suggested Fix
No response
Other Information
No response
The text was updated successfully, but these errors were encountered: