![]() |
libstdc++ error during tesseract compilation
Hi,
I am compiling tesseract 4.00 at oracle linux 6.8 following these steps. Code:
git clone https://github.com/tesseract-ocr/tesseract.git Code:
/usr/local/lib/../lib/libstdc++.so: could not read symbols: File in wrong format Thanks. |
Welcome to LQ.
Quote:
Please use gcc-5.3 for CentOS 6.9 / RHEL 6.9 : Comes with internal {libstdc++ libgomp libgcc_s} → gcc53-c++-5.3.0-1.el6.x86_64.rpm https://drive.google.com/file/d/0B7S...ew?usp=sharing # cd Downloads/ && yum install ./gcc53-c++-5.3.0-1.el6.x86_64.rpm exit cd tesseract/ make distclean export CC=gcc53 CXX=g++53 && ./configure --options - |
Quote:
Upon drilling deeper, I've found out that I'll have to change the default libstdc++. When I run Code:
/sbin/ldconfig -p | grep stdc++ Code:
/usr/lib64/libstdc++.so.5 |
Re #3.
Quote:
→ # yum install gcc-c++ It's not about "change": You can have both (all) versions of libstdc++. About gcc53-c++-5.3.0-1.el6.x86_64 : Time stamp = Jul 22 2016. Is well tested as "CentOS 6 / RHEL 6 extra compiler". Anyone on the internet can download it. And does OK with tesseract : Code:
libtool: link: g++53 -g -O2 -std=c++11 -o .libs/tesseract tesseract-tesseractmain.o -fopenmp ./.libs/libtesseract.so /usr/local/gcc53/lib/../lib64/libstdc++.so /usr/lib64/liblept.so -lm -lz -lpng -ljpeg -lgif -ltiff -lrt -lpthread -fopenmp -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/gcc53/lib/../lib64 - |
Hi, I'm sorry I was away for exams and other commitments.
"make distclean" is unsuccessful stating "leptonica 1.74 or higher version is required". Did you have libtiff5, libpng12 and libjpeg8 already which are mentioned as prereqs in tesseract compilation doc? I can't find them at yum and epel repos and only older versions are available. Leptonica compilation is done without errors but I guess unavailability of prereq libs could be the reason for unsuccessful distclean or may be not. Just in case you needed to know I'm trying to OCR vehicle license plates as part of my school project. Would distribute output in HDFS files. Thanks! |
Quote:
|
All times are GMT -5. The time now is 01:43 AM. |