undefined symbols for arm64

66 views
Skip to first unread message

Azeem Qureshi

unread,
May 9, 2025, 1:02:05 PMMay 9
to tesseract-ocr
Hello 

i'm trying to rebuild tesseract-ocr for m1 architectures, i was able to successfully rebuild all the included binaries like liblept, libtiff, libpng, libjpeg, and libtesseract but i get this error message when trying to build for an m1 simulator (arm64)

Undefined symbol: STRING::STRING(char const*)

Undefined symbol: STRING::STRING(STRING const&)

Undefined symbol: STRING::STRING()

Undefined symbol: STRING::~STRING()

Undefined symbol: STRING::operator=(STRING const&)

Undefined symbol: tesseract::TessBaseAPI::GetVariableAsString(char const*, STRING*)

Undefined symbol: tesseract::TessBaseAPI::Init(char const*, char const*, tesseract::OcrEngineMode, char**, int, GenericVector<STRING> const*, GenericVector<STRING> const*, bool)

Undefined symbol: tesseract::TessBaseAPI::SetImage(Pix const*)

Undefined symbol: tesseract::TessBaseAPI::Recognize(ETEXT_DESC*)

Undefined symbol: tesseract::IntSimdMatrix::intSimdMatrixNEON

Undefined symbol: tesseract::DotProductNEON(float const*, float const*, int)

Undefined symbol: tesseract::TessPDFRenderer::TessPDFRenderer(char const*)

Undefined symbol: STRING::string() const

My purpose here is to embed the tesseractOCR framework into another iOS application and I want to be able to develop on my m1 simulator without issues but I kept getting architecture issues around the tesseractOCR library. 

Any recommendations to resolve this? am i pursuing this wrong altogether?


Thanks

Zdenko Podobny

unread,
May 9, 2025, 1:14:07 PMMay 9
to tesser...@googlegroups.com
??? STRING::STRING was removed from code line 2,5 years ago... So you are using old code at least..

What do you mean with `i'm trying to rebuild tesseract-ocr`? 


Zdenko


pi 9. 5. 2025 o 19:01 'Azeem Qureshi' via tesseract-ocr <tesser...@googlegroups.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tesseract-ocr/2a5dde07-9729-4baf-bc73-6d5e38f1fc01n%40googlegroups.com.

Azeem Qureshi

unread,
May 12, 2025, 1:35:44 PMMay 12
to tesser...@googlegroups.com
Hello thanks for the reply

okay so im using the tesseractOCR iOS library on this repo https://github.com/gali8/Tesseract-OCR-iOS. I can use this library in my iOS app without issues as long as I target a device, or if i target a Rosetta based simulator. But what I can't seem to get working is to target an M1 simulator. The reason being I would like to eventually embed this sdk into a react-native application. And when using react native npx command it doesn't let you target rosetta based simulators. Is this library just way too out of date? and I should just use the other libraries you posted?

Also the Xcode project for this Tesseract-OCR-iOS library has 5 sub modules, libtiff, libpng, libjpeg, libtesseract, and liblept. Each of those libraries I was able to use cmake to create an xcode project, then pointed to an m1-simulator and got a new module which i replaced in the Tesseract-OCR-iOS project. But then that's when i get this error and I'm not sure how to proceed past this point. 

Thanks
Azeem 


From: tesser...@googlegroups.com <tesser...@googlegroups.com> on behalf of Zdenko Podobny <zde...@gmail.com>
Sent: Friday, May 9, 2025 1:13 PM
To: tesser...@googlegroups.com <tesser...@googlegroups.com>
Subject: Re: [tesseract-ocr] undefined symbols for arm64
 
Caution! External Sender. Beware of contents

GB Group plc ('GBG')
Registered Address: The Foundation, Herons Way, Chester, CH4 9GB
Registered in England number: 2415211
VAT number: 539 7162 18

DISCLAIMER: Please visit www.gbgplc.com/legal/email-disclaimers
This email message has been delivered safely and archived online by Mimecast. For more information please visit www.mimecast.co.uk
Reply all
Reply to author
Forward
0 new messages