please 
see 
https://github.com/tesseract-ocr/tesseract/issues/1028#issuecomment-394415918

On Monday, June 4, 2018 at 7:33:19 PM UTC+5:30, Ning Zhao wrote:
>
> I'm trying to install tesseract 4.0 on macOS High Sierra from source 
> following https://github.com/tesseract-ocr/tesseract/wiki/Compiling#macos 
> (macOS 
> with Homebrew part).
>
> When I did the `make -j` part, after popping up over 1000 lines of output, 
> it gave me these lines at the end:
>
> 1296 /bin/sh ../../libtool  --tag=CXX   --mode=link g++  -g -O2 
> -std=c++11  -L/u     sr/local/opt/icu4c/lib -o tesseract 
> tesseract-tesseractmain.o libtesseract.     la 
> -L/usr/local/Cellar/leptonica/1.76.0/lib -llept
>
> 1297 libtool: link: g++ -g -O2 -std=c++11 -o .libs/tesseract 
> tesseract-tesseract     main.o -Wl,-bind_at_load  
> -L/usr/local/opt/icu4c/lib ./.libs/libtesseract.d     ylib 
> -L/usr/local/Cellar/leptonica/1.76.0/lib -llept
>
> 1298 Making all in .
>
> 1299 Making all in tessdata
>
> 1300 Making all in configs
>
> 1301 make[3]: Nothing to be done for `all'.
>
> 1302 Making all in tessconfigs
>
> 1303 make[3]: Nothing to be done for `all'.
>
> 1304 make[3]: Nothing to be done for `all-am'.
>
> 1305 Making all in doc
>
> 1306 make[2]: Nothing to be done for `all'.
>
> 1307 Making all in unittest
>
> 1308 make[2]: Nothing to be done for `all'.
>
> The ./configure I used is (I have checked `brew info icu4c` for the two 
> flags):
> ./configure CPPFLAGS=-I/usr/local/opt/icu4c/include 
> LDFLAGS=-L/usr/local/opt/icu4c/lib
>
> Thinking there might be something wrong happened during the 1300 lines of 
> output, I ran `make -j > makelog`. Although most output went into the log 
> file, these were printed onto the terminal:
>
> /Library/Developer/CommandLineTools/usr/bin/ranlib: file: 
> .libs/libtesseract_cutil.a(cutil_class.o) has no symbols
>
> /Library/Developer/CommandLineTools/usr/bin/ranlib: file: 
> .libs/libtesseract_cutil.a(cutil_class.o) has no symbols
>
> *networkio.cpp:55:15: **warning: **'this' pointer cannot be null in 
> well-defined C++*
>
> *      code; comparison may be assumed to always evaluate to true*
>
> *      [-Wtautological-undefined-compare]*
>
>   ASSERT_HOST(this != nullptr);
>
> *              ^~~~    ~~~~~~~*
>
> *../../src/ccutil/errcode.h:84:30: **note: *expanded from macro 
> 'ASSERT_HOST'
>
> #define ASSERT_HOST(x) if (!(x))                                        \
>
> *                             ^*
>
> 1 warning generated.
>
> /Library/Developer/CommandLineTools/usr/bin/ranlib: file: 
> .libs/libtesseract_lstm.a(tfnetwork.o) has no symbols
>
> /Library/Developer/CommandLineTools/usr/bin/ranlib: file: 
> .libs/libtesseract_lstm.a(tfnetwork.o) has no symbols
>
> /Library/Developer/CommandLineTools/usr/bin/ranlib: file: 
> .libs/libtesseract.a(tfnetwork.o) has no symbols
>
> /Library/Developer/CommandLineTools/usr/bin/ranlib: file: 
> .libs/libtesseract.a(cutil_class.o) has no symbols
>
> /Library/Developer/CommandLineTools/usr/bin/ranlib: file: 
> .libs/libtesseract.a(tfnetwork.o) has no symbols
>
> /Library/Developer/CommandLineTools/usr/bin/ranlib: file: 
> .libs/libtesseract.a(cutil_class.o) has no symbols
>
> I suspect this might give some clue, but I don't really understand what's 
> going on.
>
> I have also tried configure like below, but got the "Nothing to be done 
> for `all'" as well.
> ./configure CC=gcc CXX=g++ CPPFLAGS=-I/usr/local/opt/icu4c/include 
> LDFLAGS=-L/usr/local/opt/icu4c/lib --prefix=$HOME/miniconda3/envs/ragdoll
>
> Can anyone give me a hand please?
>
> Ning
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/25c502c1-daca-49bb-9321-811590febd23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to