[MacPorts] #55394: tesseract @3.04.01: configure: error: leptonica not found (was: tesseract @3.04.01: install error High Sierra)
MacPorts
noreply at macports.org
Thu Nov 23 05:48:11 UTC 2017
#55394: tesseract @3.04.01: configure: error: leptonica not found
------------------------+----------------------
Reporter: cvdenzen | Owner: markemer
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords:
Port: tesseract |
------------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* cc: emer@… (removed)
* owner: => markemer
* port: leptonica => tesseract
Old description:
> After solving (manually) the problems with openjpeg and openmp, this
> problem showed up in logfile
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_tesseract/tesseract/work/tesseract-3.04.01/config.log:
>
> (..)
>
> | return 0;
> | }
> configure:16950: result: yes
> configure:16960: checking for off_t
> configure:16960: /usr/bin/clang++ -c -pipe -Os -stdlib=libc++ -arch
> x86_64 -I/opt/local/include conftest.cpp >&5
> configure:16960: $? = 0
> configure:16960: /usr/bin/clang++ -c -pipe -Os -stdlib=libc++ -arch
> x86_64 -I/opt/local/include conftest.cpp >&5
> conftest.cpp:45:20: error: expected expression
> if (sizeof ((off_t)))
> ^
> 1 error generated.
> configure:16960: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "tesseract"
> | #define PACKAGE_TARNAME "tesseract"
> | #define PACKAGE_VERSION "3.04.01"
> (..)
New description:
After solving (manually) the problems with openjpeg and openmp, this
problem showed up in logfile
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_tesseract/tesseract/work/tesseract-3.04.01/config.log:
{{{
(..)
| return 0;
| }
configure:16950: result: yes
configure:16960: checking for off_t
configure:16960: /usr/bin/clang++ -c -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include conftest.cpp >&5
configure:16960: $? = 0
configure:16960: /usr/bin/clang++ -c -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include conftest.cpp >&5
conftest.cpp:45:20: error: expected expression
if (sizeof ((off_t)))
^
1 error generated.
configure:16960: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "tesseract"
| #define PACKAGE_TARNAME "tesseract"
| #define PACKAGE_VERSION "3.04.01"
(..)
}}}
--
Comment:
It's not clear why tesseract can't find leptonica on your system. The
portion of the config.log you quoted is irrelevant to this issue.
Is leptonica installed? Does the file
/opt/local/include/leptonica/allheaders.h exist? What's the output of
these two commands:
{{{
port -vq installed leptonica
port -q contents leptonica
}}}
What problems with openjpeg and openmp are you referring to, and how did
you solve them?
--
Ticket URL: <https://trac.macports.org/ticket/55394#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list