You did not mention from where you installed leptonica and tesseract. what info do you see when you type
tesseract -v ShreeDevi ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com On Thu, Mar 16, 2017 at 2:21 PM, Kazi Moinul Hossain <moinjoje...@gmail.com> wrote: > Should i reinstall leptonica & tesseract ? > > On Wednesday, 15 March 2017 23:59:19 UTC+6, zdenop wrote: >> >> It seems that your (leptonica?) installation is corrupted. Your example >> works for me (for 4.00 and 3.05): >> >> zdeno@level2:~/test> g++ sample.cpp -o sample -llept -ltesseract >> zdeno@level2:~/test> ./sample >> Tesseract-ocr version: 4.00.00alpha >> Leptonica version: leptonica-1.74 >> >> >> Zdenko >> >> On Wed, Mar 15, 2017 at 4:28 PM, Kazi Moinul Hossain <moinj...@gmail.com> >> 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 tesseract-oc...@googlegroups.com. >>> To post to this group, send email to tesser...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/tesseract-ocr. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/tesseract-ocr/be3b1def-f666-446a-ad16-211b4e3a8523%40goo >>> glegroups.com >>> <https://groups.google.com/d/msgid/tesseract-ocr/be3b1def-f666-446a-ad16-211b4e3a8523%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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 tesseract-ocr+unsubscr...@googlegroups.com. > To post to this group, send email to tesseract-ocr@googlegroups.com. > 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/3ffe6af9-1b4b-4ee2-b988-fc4dd9aaf446% > 40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/3ffe6af9-1b4b-4ee2-b988-fc4dd9aaf446%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 tesseract-ocr+unsubscr...@googlegroups.com. To post to this group, send email to tesseract-ocr@googlegroups.com. 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/CAG2NduWfMtbZ1iQDCi0sFwGRQrZQ_4ic4FRD8URjwhMYLa0BAQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.