i've made some more progress, but please bear in mind that I have almost no experience with c++ or c, so I do not really know what it means to compile a program.
I'm able to do this step:
Admins-MacBook-Pro-4:tesseract kylefoley$ ./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
Running autoheader
Running automake --add-missing --copy
configure.ac:407: installing 'config/compile'
configure.ac:27: installing 'config/missing'
Makefile.am: installing 'config/depcomp'
All done.
To build the software now, do something like:
$ ./configure [--enable-debug] [...other options]
Now I run into errors and I have no idea what is going on. None of the above means anything to me. The only thing that has remotely come close to succeeding is
Admins-MacBook-Pro-4:tesseract kylefoley$ ./configure
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/volumes/googledrive/my drive/laptop/documents/pcode/tesseract':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
So I check the config.log which again I have no understanding of
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by tesseract configure 5.0.1-9-g31a968, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure 'CXX=g++ --target=arm-apple-darwin64'
## --------- ##
## Platform. ##
## --------- ##
hostname = Admins-MacBook-Pro-4.local
uname -m = x86_64
uname -r = 18.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 413 tasks, 2578 threads, 8 processors
Load average: 2.64, Mach factor: 5.35
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/local/bin/
PATH: /opt/local/sbin/
PATH: /usr/local/opt/tcl-tk/bin/
PATH: /Users/kylefoley/Applications/miniconda3/condabin/
PATH: /Users/kylefoley/.pyenv/shims/
PATH: /Library/Frameworks/Python.framework/Versions/3.7/bin/
PATH: /applications/google-cloud-sdk/bin/
PATH: /usr/local/opt/openssl/bin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /usr/sbin/
PATH: /sbin/
PATH: ~/PycharmProjects/book/superlists/chromedriver/
PATH: /usr/local/share/dotnet/
PATH: /opt/X11/bin/
PATH: ~/.dotnet/tools/
PATH: /Library/Frameworks/Mono.framework/Versions/Current/Commands/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3040: looking for aux files: compile ltmain.sh config.guess config.sub missing install-sh
configure:3053: trying ./config/
configure:3082: ./config/compile found
configure:3082: ./config/ltmain.sh found
configure:3082: ./config/config.guess found
configure:3082: ./config/config.sub found
configure:3082: ./config/missing found
configure:3064: ./config/install-sh found
configure:3324: checking for C++ compiler version
configure:3333: g++ --target=arm-apple-darwin64 --version >&5
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: arm-apple-darwin64
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:3344: $? = 0
configure:3333: g++ --target=arm-apple-darwin64 -v >&5
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: arm-apple-darwin64
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:3344: $? = 0
configure:3333: g++ --target=arm-apple-darwin64 -V >&5
clang: error: unsupported option '-V -Wno-atomic-implicit-seq-cst'
clang: error: no input files
configure:3344: $? = 1
configure:3333: g++ --target=arm-apple-darwin64 -qversion >&5
clang: error: unknown argument '-qversion', did you mean '--version'?
clang: error: no input files
configure:3344: $? = 1
configure:3364: checking whether the C++ compiler works
configure:3386: g++ --target=arm-apple-darwin64 conftest.cpp >&5
ld: unknown/unsupported architecture name for: -arch armv4t
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3390: $? = 1
configure:3430: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "tesseract"
| #define PACKAGE_TARNAME "tesseract"
| #define PACKAGE_VERSION "5.0.1-9-g31a968"
| #define PACKAGE_STRING "tesseract 5.0.1-9-g31a968"
| #define PACKAGE_BUGREPORT "
https://github.com/tesseract-ocr/tesseract/issues"
| #define PACKAGE_URL "
https://github.com/tesseract-ocr/tesseract/"
| /* end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:3435: error: in `/volumes/googledrive/my drive/laptop/documents/pcode/tesseract':
configure:3437: error: C++ compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value='g++ --target=arm-apple-darwin64'
ac_cv_env_ICU_I18N_CFLAGS_set=
ac_cv_env_ICU_I18N_CFLAGS_value=
ac_cv_env_ICU_I18N_LIBS_set=
ac_cv_env_ICU_I18N_LIBS_value=
ac_cv_env_ICU_UC_CFLAGS_set=
ac_cv_env_ICU_UC_CFLAGS_value=
ac_cv_env_ICU_UC_LIBS_set=
ac_cv_env_ICU_UC_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LEPTONICA_CFLAGS_set=
ac_cv_env_LEPTONICA_CFLAGS_value=
ac_cv_env_LEPTONICA_LIBS_set=
ac_cv_env_LEPTONICA_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_cairo_CFLAGS_set=
ac_cv_env_cairo_CFLAGS_value=
ac_cv_env_cairo_LIBS_set=
ac_cv_env_cairo_LIBS_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_libarchive_CFLAGS_set=
ac_cv_env_libarchive_CFLAGS_value=
ac_cv_env_libarchive_LIBS_set=
ac_cv_env_libarchive_LIBS_value=
ac_cv_env_libcurl_CFLAGS_set=
ac_cv_env_libcurl_CFLAGS_value=
ac_cv_env_libcurl_LIBS_set=
ac_cv_env_libcurl_LIBS_value=
ac_cv_env_pango_CFLAGS_set=
ac_cv_env_pango_CFLAGS_value=
ac_cv_env_pango_LIBS_set=
ac_cv_env_pango_LIBS_value=
ac_cv_env_pangocairo_CFLAGS_set=
ac_cv_env_pangocairo_CFLAGS_value=
ac_cv_env_pangocairo_LIBS_set=
ac_cv_env_pangocairo_LIBS_value=
ac_cv_env_pangoft2_CFLAGS_set=
ac_cv_env_pangoft2_CFLAGS_value=
ac_cv_env_pangoft2_LIBS_set=
ac_cv_env_pangoft2_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL=''
ADD_RT_FALSE=''
ADD_RT_TRUE=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AM_BACKSLASH=''
AM_CPPFLAGS=''
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY=''
AM_LDFLAGS=''
AM_V=''
AR=''
ASCIIDOC_FALSE=''
ASCIIDOC_TRUE=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
CC=''
CCDEPMODE=''
CFLAGS=''
CPPFLAGS=''
CSCOPE=''
CTAGS=''
CXX='g++ --target=arm-apple-darwin64'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
DISABLED_LEGACY_ENGINE_FALSE=''
DISABLED_LEGACY_ENGINE_TRUE=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_TRAINING_FALSE=''
ENABLE_TRAINING_TRUE=''
ETAGS=''
EXEEXT=''
FGREP=''
FRAMEWORK_ACCELERATE=''
FRAMEWORK_OPENCL=''
GENERIC_API_VERSION=''
GENERIC_LIBRARY_NAME=''
GENERIC_LIBRARY_VERSION=''
GENERIC_MAJOR_VERSION=''
GENERIC_MICRO_VERSION=''
GENERIC_MINOR_VERSION=''
GENERIC_RELEASE=''
GENERIC_VERSION=''
GRAPHICS_DISABLED_FALSE=''
GRAPHICS_DISABLED_TRUE=''
GREP=''
HAVE_AVX2_FALSE=''
HAVE_AVX2_TRUE=''
HAVE_AVX_FALSE=''
HAVE_AVX_TRUE=''
HAVE_FMA_FALSE=''
HAVE_FMA_TRUE=''
HAVE_LIBARCHIVE_FALSE=''
HAVE_LIBARCHIVE_TRUE=''
HAVE_LIBCURL_FALSE=''
HAVE_LIBCURL_TRUE=''
HAVE_NEON_FALSE=''
HAVE_NEON_TRUE=''
HAVE_SSE4_1_FALSE=''
HAVE_SSE4_1_TRUE=''
HAVE_XML_CATALOG_FILES_FALSE=''
HAVE_XML_CATALOG_FILES_TRUE=''
ICU_I18N_CFLAGS=''
ICU_I18N_LIBS=''
ICU_UC_CFLAGS=''
ICU_UC_LIBS=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
LD=''
LDFLAGS=''
LEPTONICA_CFLAGS=''
LEPTONICA_LIBS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO=''
MANIFEST_TOOL=''
MKDIR_P=''
NEON_CXXFLAGS=''
NM=''
NMEDIT=''
NOUNDEFINED=''
NO_TESSDATA_PREFIX_FALSE=''
NO_TESSDATA_PREFIX_TRUE=''
OBJDUMP=''
OBJEXT=''
OPENCL_CPPFLAGS=''
OPENCL_FALSE=''
OPENCL_LDFLAGS=''
OPENCL_TRUE=''
OPENMP_CXXFLAGS=''
OPENMP_SIMD_FALSE=''
OPENMP_SIMD_TRUE=''
OTOOL64=''
OTOOL=''
PACKAGE=''
PACKAGE_BUGREPORT='
https://github.com/tesseract-ocr/tesseract/issues'
PACKAGE_DATE=''
PACKAGE_NAME='tesseract'
PACKAGE_STRING='tesseract 5.0.1-9-g31a968'
PACKAGE_TARNAME='tesseract'
PACKAGE_URL='
https://github.com/tesseract-ocr/tesseract/'
PACKAGE_VERSION='5.0.1-9-g31a968'
PACKAGE_YEAR=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TENSORFLOW_FALSE=''
TENSORFLOW_LIBS=''
TENSORFLOW_TRUE=''
T_WIN_FALSE=''
T_WIN_TRUE=''
VERSION=''
VISIBILITY_FALSE=''
VISIBILITY_TRUE=''
XML_CATALOG_FILES=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__nodep=''
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
cairo_CFLAGS=''
cairo_LIBS=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
have_asciidoc=''
have_brew=''
have_xsltproc=''
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libarchive_CFLAGS=''
libarchive_LIBS=''
libcurl_CFLAGS=''
libcurl_LIBS=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pango_CFLAGS=''
pango_LIBS=''
pangocairo_CFLAGS=''
pangocairo_LIBS=''
pangoft2_CFLAGS=''
pangoft2_LIBS=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "tesseract"
#define PACKAGE_TARNAME "tesseract"
#define PACKAGE_VERSION "5.0.1-9-g31a968"
#define PACKAGE_STRING "tesseract 5.0.1-9-g31a968"
#define PACKAGE_BUGREPORT "
https://github.com/tesseract-ocr/tesseract/issues"
#define PACKAGE_URL "
https://github.com/tesseract-ocr/tesseract/"
configure: exit 77
One thing that I find strange. When I click on the alias for tesseract in the /usr/local/bin/ folder it takes me to
/usr/local/cellar/tesseract/4.1.1/bin/tesseract
but tesseract 5 has no bin file. why?