aws-lambda-tesseract-layer icon indicating copy to clipboard operation
aws-lambda-tesseract-layer copied to clipboard

feat: add ARM64 support

Open bweigel opened this issue 3 years ago • 1 comments

bweigel avatar Nov 07 '22 16:11 bweigel

@bweigel - thanks for this, even though still in draft.

I got this to work locally via clang instead of gss compiler, which appears to be the recommendation from the tesseract team too.

Edits were:

RUN yum -y install clang gcc-c++ make autoconf aclocal automake libtool \

and:

RUN echo "/opt/leptonica/lib" > /etc/ld.so.conf.d/leptonica.conf RUN echo sudo ldconfig

I also stripped out CXXFLAGS on the tesseract build

It took an age to build, but that could be my laptop. Either way - I've just published to my AWS account as a layer and working just fine, thanks!

mnai-prout-james avatar Nov 09 '22 09:11 mnai-prout-james