Hi, I'm trying to compile tesseract OCR package from souce for OpenWRT which I'd like to use for CAPTCHA recognition. So far I've managed to write the following Makefile:
include $(TOPDIR)/rules.mk
PKG_NAME:=tesseract
PKG_VERSION:=2.04
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://tesseract-ocr.googlecode.com/files/
#PKG_MD5SUM:= 5b2e98da2310c71c703d4617b88a173f
include $(INCLUDE_DIR)/package.mk
define Package/tesseract
SECTION:=utils
CATEGORY:=Utilities
TITLE:=tesseract
URL:=http://tesseract-ocr.googlecode.com/files/
endef
define Package/tesseract/description
OCR
endef
define Build/Configure
$(call Build/Configure/Default)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" all
endef
define Package/tesseract/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tesseract $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,tesseract))
The tesseract packet is present in the 'make menuconfig' so I sign it with <M> so the packet would be build as .ipk file.
When it comes to compiling, sources are being downloaded and then I get the error after about 30s of compiling tesseract.
What might be a problem? Any Ideas?
Thanks in advance, Andrzej