I finally managed to build tesseract. I have noticed that replace /usr/bin/gcc-4.9
by /usr/bin/g++-4.9 into the failing command line, make it run well. So i made the replacement in files generated by ./configure, doing grep -R "/usr/bin/gcc-4.9" . | cut -d':' -f1 | while read line; do sed -i 's/usr\/bin\/gcc-4.9/usr\/bin\/g++-4.9/g' $line; done and make then runs successfully LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make For sure, that's not an elegant way to solve it but i can't manage to get an option for ./configure to use g++ instead of gcc. If somebody knows how, i would be grateful. Hope it can help. Le mercredi 31 mai 2017 17:02:34 UTC+2, Youcef a écrit : > > > Here my gcc version : > gcc --version > > getting > gcc (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 > > > Le mercredi 31 mai 2017 16:25:58 UTC+2, shree a écrit : >> >> >> Supported Compilers >> >> - GCC 4.8 and above >> - Clang 3.4 and above >> - MSVC 2015, 2017 >> >> Other compilers might work, but are not officially supported. >> >> ShreeDevi >> ____________________________________________________________ >> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com >> >> On Wed, May 31, 2017 at 7:01 PM, Youcef <[email protected]> wrote: >> >>> Hi ShreeDevi, >>> >>> Thanks for your answer. >>> I re-did the same, but pulling code as you suggested... but problems >>> still present. >>> >>> >>> Le mercredi 31 mai 2017 15:14:07 UTC+2, shree a écrit : >>>> >>>> *git pull origin* >>>> to get the latest source. I have built it today without any problems. >>>> >>>> ShreeDevi >>>> ____________________________________________________________ >>>> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com >>>> >>>> On Wed, May 31, 2017 at 6:32 PM, Youcef <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm trying to build tesseract from sources. >>>>> I succeeded in building Leptonica 1.74.1 and installing into >>>>> /usr/local/bin and /usr/local/include. >>>>> >>>>> Into Tesseract main fodler, the first commands are ok: >>>>> >>>>> ./autogen.sh >>>>> ./configure >>>>> >>>>> >>>>> But the problem comes when i run following command : >>>>> >>>>> LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make >>>>> >>>>> >>>>> things are compiling well but I get some unreferenced functions at the >>>>> end like: >>>>> >>>>> /home/user/tesseract-ocr/tesseract/api/../ccutil/genericvector.h:659: >>>>> undefined reference to `operator new[](unsigned long)' >>>>> >>>>> and a lot of standard C++ functions unreferenced like : >>>>> >>>>> ./.libs/libtesseract.so: undefined reference to >>>>> `std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()' >>>>> >>>>> I have tried other suggested solutions without any success >>>>> >>>>> - running LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" >>>>> make >>>>> - removing old tesseract previously installed with apt-get >>>>> >>>>> Thanks for any help. >>>>> Regards >>>>> >>>>> -- >>>>> 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/eb5d84ee-bd79-4a6d-88db-cdfa0950bad3%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/tesseract-ocr/eb5d84ee-bd79-4a6d-88db-cdfa0950bad3%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/e2aa90e2-34fe-43b6-a82f-368147e4df45%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/tesseract-ocr/e2aa90e2-34fe-43b6-a82f-368147e4df45%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/22298cda-d75c-4915-9a0a-1e3a621df2c7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

