Issue 1151 in tesseract-ocr: Error: ./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'

479 views
Skip to first unread message

tesser...@googlecode.com

unread,
May 7, 2014, 2:25:39 AM5/7/14
to tesserac...@googlegroups.com
Status: New
Owner: ----

New issue 1151 by mohsen.m...@gmail.com: Error: ./.libs/libtesseract.so:
undefined reference to `pixGenerateCIData'
http://code.google.com/p/tesseract-ocr/issues/detail?id=1151

What steps will reproduce the problem?
1. Running "make" to install tesseract-ocr-3.03 from source code
checked-out from svn
2.
3.

What is the expected output? What do you see instead?
Getting error:

Making all in api
make[2]: Entering directory `/home/****/temp/tesseract-ocr-3.03/api'
/bin/bash ../libtool --tag=CXX --mode=link g++ -std=c++11 -o tesseract
tesseract-tesseractmain.o libtesseract.la -lrt -llept -lpthread
libtool: link: g++ -std=c++11 -o .libs/tesseract
tesseract-tesseractmain.o ./.libs/libtesseract.so -lrt -llept -lpthread
./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'
collect2: error: ld returned 1 exit status
make[2]: *** [tesseract] Error 1


What version of the product are you using? On what operating system?

tesseract-ocr-3.03 source code (r1094) from:
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/
tesseract-ocr-read-only

leptonica-1.70:
Built and installed from source code: leptonica-1.70.tar.gz

Ubuntu 12.10


Please provide any additional information below.

Followed compiling instructions:
https://code.google.com/p/tesseract-ocr/wiki/Compiling

up to:
./autogen.sh
./configure
make

When running "make", it errors out:

Making all in api
make[2]: Entering directory `/home/****/temp/tesseract-ocr-3.03/api'
/bin/bash ../libtool --tag=CXX --mode=link g++ -std=c++11 -o tesseract
tesseract-tesseractmain.o libtesseract.la -lrt -llept -lpthread
libtool: link: g++ -std=c++11 -o .libs/tesseract
tesseract-tesseractmain.o ./.libs/libtesseract.so -lrt -llept -lpthread
./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'
collect2: error: ld returned 1 exit status
make[2]: *** [tesseract] Error 1


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

tesser...@googlecode.com

unread,
May 7, 2014, 3:29:46 AM5/7/14
to tesserac...@googlegroups.com

Comment #1 on issue 1151 by zde...@gmail.com:
Error: ./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'
http://code.google.com/p/tesseract-ocr/issues/detail?id=1151

The message statutes that tesseract library can not find pixGenerateCIData
function (provided by leptonica 1.70), so this is not tesseract issue, but
leptonica installation issue.
IMO there could be 2 reasons for error:
1. you did not uninstall old leptonica library properly before installing
1.70 version
2. you did not install leptonica 1.70 properly.

tesser...@googlecode.com

unread,
May 7, 2014, 4:50:21 PM5/7/14
to tesserac...@googlegroups.com
Updates:
Status: WorksForMe

Comment #2 on issue 1151 by zde...@gmail.com:
Error: ./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'
http://code.google.com/p/tesseract-ocr/issues/detail?id=1151

(No comment was entered for this change.)

tesser...@googlecode.com

unread,
Aug 19, 2014, 11:49:13 PM8/19/14
to tesserac...@googlegroups.com

Comment #3 on issue 1151 by freddyth...@gmail.com:
Error: ./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'
http://code.google.com/p/tesseract-ocr/issues/detail?id=1151

Any chance you can toss us a bone on how to find information on removing
old libraries or properly installing leptonica 1.70? I have the same
problem, but am following instructions to no avail. Thanks.

tesser...@googlecode.com

unread,
Sep 5, 2014, 10:27:44 AM9/5/14
to tesserac...@googlegroups.com

Comment #4 on issue 1151 by karl.nyb...@gmail.com:
Error: ./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'
https://code.google.com/p/tesseract-ocr/issues/detail?id=1151

I found that the earlier version of leptonica was installed (by default?)
in /usr/include/leptonica and /usr/lib/leptonica and 1.71 (I didn't try
1.70) was installed in /usr/local/include/leptonica and
/usr/local/lib/leptonica.

Easiest solution -

# rm -rf /usr/include/leptonica /usr/lib/leptonica

as the /usr/local/*/leptonica were being searched AFTER the
/usr/*/leptonica versions.

tesser...@googlecode.com

unread,
Sep 5, 2014, 1:38:20 PM9/5/14
to tesserac...@googlegroups.com

Comment #5 on issue 1151 by n.nicki...@gmx.de:
Error: ./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'
https://code.google.com/p/tesseract-ocr/issues/detail?id=1151

Ihave the same problem. leptonica is installed correctly - at least "make
check" fpr leptonica 1.71 says that all tests were passed.
Nevertheless, the directories in question seem not to exist.

I do have /usr/local/include/leptonica, but I do have only liblept*-files
in /usr/local/lib - no subdirectory "Leptonica"

tesser...@googlecode.com

unread,
Sep 11, 2014, 4:45:19 AM9/11/14
to tesserac...@googlegroups.com

Comment #6 on issue 1151 by kur...@gmail.com:
Error: ./.libs/libtesseract.so: undefined reference to `pixGenerateCIData'
https://code.google.com/p/tesseract-ocr/issues/detail?id=1151

I had the same issue, I rebuilt leptonica and change the prefix dir to /usr

#./configure --prefix /usr

That then installed the liblept in /usr/lib and I was able to carry on
compiling tesseract-ocr.
Reply all
Reply to author
Forward
0 new messages