Finally, i solved it. Now after compilation, i am getting the correct version of leptonica and tesseract.
*Tesseract version 4.00.00alphaleptonica version leptonica-1.74* I uninstalled libleptonica-dev and libtesseract-dev and again compiled. It ran with correct output. Thanks everyone in this group :) On Monday, 20 March 2017 17:58:13 UTC+6, zdenop wrote: > > > On Mon, Mar 20, 2017 at 12:19 PM, Kazi Moinul Hossain <[email protected] > <javascript:>> wrote: > >> I uninstalled all the previous leptonica and tesseract, installed all the >> new stuffs. When i am typing tesseract -v, it is showing properly the >> leptonica and tesseract version. >> But When i am typing, tesseract sample.tif sample, it is showing >> "Illegeal instruction (core dumped)". >> Ultimately, i became unable to compile the C++ program as mentioned here >> before.After compilation command, it is showing, "fatal error: baseapi.h: >> No such file or directory" >> What could be the soultion? Please help >> > > IMO there is only one solution if you want to start programming - take > some course and learn something about your OS and programming - if you are > not able to handle error like "fatal error: baseapi.h: No such file or > directory" by yourself, you are in troubles. > > If are serious about programming you should also learn how to debug > program e.g. find where (and maybe why) there is " illegal instruction(core > dumped)". > > Unless your tesseract installation is not working properly (at least with > images in test folder) do not even think about trying your compile own > program. There could be several reason for it, but you do not provide > details, so it is no possibility to guide you. > > > On Friday, 17 March 2017 19:41:20 UTC+6, shree wrote: >>> >>> sudo apt-get remove libleptonica-dev libleptonica >>> >>> >>> ShreeDevi >>> ____________________________________________________________ >>> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com >>> >>> On Fri, Mar 17, 2017 at 7:09 PM, ShreeDevi Kumar <[email protected]> >>> wrote: >>> >>>> try >>>> >>>> sudo apt-get remove libleptonica-dev >>>> >>>> ShreeDevi >>>> ____________________________________________________________ >>>> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com >>>> >>>> On Fri, Mar 17, 2017 at 6:06 PM, Kazi Moinul Hossain < >>>> [email protected]> wrote: >>>> >>>>> how can i uninstall old leptonica fully? I am attempting with "sudo >>>>> apt-get autoremove leptonica" and it is showing "unable to locate package" >>>>> >>>>> On Friday, 17 March 2017 17:56:13 UTC+6, shree wrote: >>>>> >>>>>> I use the following batch files in the folders where I have cloned >>>>>> tesseract and leptonica. >>>>>> >>>>>> 1. leptonica >>>>>> >>>>>> #!/bin/bash >>>>>> git pull origin >>>>>> ./autobuild >>>>>> #./configure --disable-dependency-tracking >>>>>> ./configure >>>>>> make >>>>>> sudo make install >>>>>> sudo ldconfig >>>>>> cd prog >>>>>> make >>>>>> cd .. >>>>>> >>>>>> 2. tesseract >>>>>> >>>>>> #!/bin/bash >>>>>> ./autogen.sh >>>>>> ./configure >>>>>> LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make >>>>>> sudo make install >>>>>> sudo ldconfig >>>>>> make training >>>>>> sudo make training-install >>>>>> >>>>>> -- >>>>> 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/14390a99-0423-46ff-9501-56bbeb41d794%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/tesseract-ocr/14390a99-0423-46ff-9501-56bbeb41d794%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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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/e2cc6ecb-17d8-48df-8262-d3222cbf69bd%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tesseract-ocr/e2cc6ecb-17d8-48df-8262-d3222cbf69bd%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 [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/6178bce2-828e-42ba-802f-ca9fae01ea4b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

