All,
I have successfully built leptonica-1.74.0 source on Ubuntu 16.04 LTS, now I am trying to build tesseract-3.05.01 from source, but make fails with the following error -
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o tesseract tesseract-tesseractmain.o libtesseract.la -lrt -lpthread
libtool: link: g++ -g -O2 -std=c++11 -o .libs/tesseract tesseract-tesseractmain.o ./.libs/libtesseract.so -lrt -lpthread -Wl,-rpath -Wl,/home/sss/dev/c/tesseract-3.05.01/bin/lib
/usr/bin/ld: tesseract-tesseractmain.o: undefined reference to symbol 'lept_free'
//home/sss/dev/c/leptonica-1.74.0/bin/lib/liblept.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
I checked my Makefile.am as suggested by Arsen below, but I could not find tesseract_LDADD += -lrt
Does any know how I can get around this error?