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: [email protected] <[email protected]> on behalf 
of Zdenko Podobny <[email protected]>
Sent: Friday, May 9, 2025 1:13 PM
To: [email protected] <[email protected]>
Subject: Re: [tesseract-ocr] undefined symbols for arm64

Caution! External Sender. Beware of contents


??? 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`?
There should be no problem to compile and use it on Apple silicon see 
https://github.com/tesseract-ocr/tesseract/issues/3286<https://github.com/tesseract-ocr/tesseract/issues/3286>
 or 
https://github.com/tesseract-ocr/tesseract/blob/ade0dfaa8cc1b12341286aa91e11f8ab77a035ad/.github/workflows/unittest-macos.yml#L16<https://github.com/tesseract-ocr/tesseract/blob/ade0dfaa8cc1b12341286aa91e11f8ab77a035ad/.github/workflows/unittest-macos.yml#L16>


Zdenko


pi 9. 5. 2025 o 19:01 'Azeem Qureshi' via tesseract-ocr 
<[email protected]<mailto:[email protected]>> 
napĂ­sal(a):
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

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion visit 
https://groups.google.com/d/msgid/tesseract-ocr/2a5dde07-9729-4baf-bc73-6d5e38f1fc01n%40googlegroups.com<https://groups.google.com/d/msgid/tesseract-ocr/2a5dde07-9729-4baf-bc73-6d5e38f1fc01n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 
[email protected]<mailto:[email protected]>.
To view this discussion visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8ztto2JTbLx26irTaP-2xbSbSBE3gW9%2BSYBA1C09daDOg%40mail.gmail.com<https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8ztto2JTbLx26irTaP-2xbSbSBE3gW9%2BSYBA1C09daDOg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
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

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/tesseract-ocr/MN2PR07MB60622FE5A7BB11B8A7D93F169197A%40MN2PR07MB6062.namprd07.prod.outlook.com.

Reply via email to