Closed ferbass closed 11 years ago
CFLAGS
should point to include
not include/tesseract
, as you can see from the log it's trying to include tesseract/strngs.h
and not just strngs.h
, unless inside that tesseract
dir over there there's another tesseract
dir, it's not gonna work.
Thank you, solved tesseract error but now i have
1 error generated. g++ -dynamic -bundle -fPIC -L/usr/local/Cellar/leptonica/1.69/include/ -o /var/folders/fy/lwmk3kdj24q99jc9c07q6g6m0000gn/T/.ffi-inline-501/c9b2f3d5a2feb532c5f70e3496cfe6285256a16f.dylib /var/folders/fy/lwmk3kdj24q99jc9c07q6g6m0000gn/T/.ffi-inline-501/c9b2f3d5a2feb532c5f70e3496cfe6285256a16f.cpp -llept 2>>/var/folders/fy/lwmk3kdj24q99jc9c07q6g6m0000gn/T/.ffi-inline-501/c9b2f3d5a2feb532c5f70e3496cfe6285256a16f.log /var/folders/fy/lwmk3kdj24q99jc9c07q6g6m0000gn/T/.ffi-inline-501/c9b2f3d5a2feb532c5f70e3496cfe6285256a16f.cpp:1:10: fatal error: 'leptonica/allheaders.h' file not found #include
should i point LDFLAGS to leptonica? i tried but have no effect
You have to add it to the CFLAGS
, the header paths go in CFLAGS
with -I
, the paths where the .dlyb
s are go in LDFLAGS
with -L
.
now it's ok
thank you so much
You're welcome :)
I get an error when i use
require "tesseract"
looking on log file and i got
based on error i'm missing the tesseract-ocr headers file, ok
I'm install tesseract via homebrew
brew install tesseract
, home brew install automatically leptonica.i found this closed issue Error getting setup, you comment to export CFLAGS AND LDFLAGS to point tesseract libs and headers
I'm export like this
but i got a same error, can you help me?
Thanks in advanced