Hi,
After long effort, i installed leptonica 1.74 and tesseract 4.00alpha. But
here goes another problem.
When i am typing, "tesseract -v", i am getting the actual versions.
*tesseract 4.00.00alpha leptonica-1.74 libjpeg 8d (libjpeg-turbo 1.4.2) :
libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 Found AVX Found SSE*
but when i am compiling my following code,
*#include "baseapi.h"#include<allheaders.h>int
main(){tesseract::TessBaseAPI *first=new
tesseract::TessBaseAPI();printf("Tesseract version
%s\n",first->Version());printf("leptonica version
%s\n",getLeptonicaVersion());return 0;}*
with the command,
*g++ sample.c -o smpl.out -I/usr/local/include/leptonica
-I/usr/local/include/tesseract -llept -ltesseract*i am getting the
following output.
*Tesseract version 3.04.01leptonica version leptonica-1.74*
Can anybody please help me to help me figure out this?
On Wednesday, 15 March 2017 11:36:16 UTC-4, Kazi Moinul Hossain wrote:
>
> Hi everyone,
>
> I have installed leptonica 1.74.1 and then tesseract 4.00.00.
> After that, i have created a C++ program stated below which ultimately
> will show the leptonica and tesseract version installed in the system.
>
>
>
> *#include
> <https://www.facebook.com/hashtag/include?source=feed_text&story_id=1412066452188772><baseapi.h>#include<allheaders.h>#include
>
> <sys/time.h>*
>
> *int main() {*
>
>
>
>
>
> *tesseract::TessBaseAPI *myOCR = new
> tesseract::TessBaseAPI();printf("Tesseract-ocr version:
> %s\n",myOCR->Version());printf("Leptonica version:
> %s\n",getLeptonicaVersion());return 0;}*
>
> While compiling my code using following command
>
>
> *$ g++ sample.cpp -o
> sample -I/usr/local/include/leptonica -I/usr/local/include/tesseract -llept
> -ltesseract*
>
> i am encountering following error,
>
> *//usr/local/lib/libtesseract.so: undefined reference to
> ‘pixReadFromMultipageTiff ‘*
> *//usr/local/lib/libtesseract.so: undefined reference to
> ‘pixReadMemFromMultipageTiff ‘*
> *collect2: error: Id returned 1 exit status*
>
> Again to mention, my tesseract version is 4.00.00 and leptonica version is
> 1.74.1.
> Can anyone please help me to figure it out?
>
> Thanks,
> Kazi Moinul Hossain
> Junior Software Developer
>
--
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/60a1f8b7-e551-4ece-a1dc-3bd223a1ed4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.