Hello,

I am trying to build a small shared library to use Tesseract.

After much trial and error, I've gotten to the point where I can 
successfully compile and link my library.  However, when I load the 
library, I'm getting an error stating "Symbol not found:  _Config".

I'm guessing I'm missing a library dependency when I link the library.  Can 
anyone suggest which one, or how I may try to fix this?

I'm building this on a machine running OS X Lion (10.7.4).  I'm using the 
command line tools that come with Xcode 4.4.1.

Here's my compile command:

llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe 
-fno-common -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall 
-Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -DENABLE_DTRACE -arch x86_
64 -pipe 
-I/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/include 
-I../tesseract-3.01/api -I../tesseract-3.01/ccstruct -I../tesseract-3.01/ccutil 
-I../tesseract-3.01/ccmain -I../leptonica-1.69/src -I../tesseract-3.01/wordrec 
-I../tesseract-3.01/viewer -I../tesseract-3.01/cutil -../tesseract-3.01/dict 
-I../tesseract-3.01/classify -I../tesseract-3.01/image 
-I../tesseract-3.01/textord 
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-c 
ocr.cpp -o build/ocr.o

And here's my link command:

llvm-g++-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F.  -arch 
x86_64build/ocr.o -L/usr/local/lib -ltesseract_api
.3 -ltesseract_ccutil.3 -ltesseract_cutil.3 
-ltesseract_image.3-ltesseract_textord
.3 -ltesseract_viewer.3 -ltesseract_ccstruct.3  -ltesseract_classify.3  
-ltesseract_dict.3 -ltesseract_main.3 -ltesseract_training.3-ltesseract_wordrec
.3 -llept.3 -ltiff.3 -lpthread -o build/ocr.so

Any suggestion would be greatly appreciated.

Thanks in advance,

Jeff

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to