Yeah, I've managed to get it to work for macOS. The arm-apple-darwin64 host 
is for iOS and I think that's what's causing the issues.

On Monday, 11 March 2019 06:41:18 UTC, Kristóf Horváth wrote:
>
> macOS almost works; it requires minor hacks to the shell scripts to 
> account for the older version of bash it provides and differences in mktemp.
>
>
> I copued this from wiki. Otherwise i recommend linux. 
>
> Hamilton Chapman <[email protected] <javascript:>> ezt írta (időpont: 
> 2019. márc. 11., H 6:03):
>
>> I'm trying to build Tesseract for usage on iOS and have run `autogen.sh` 
>> and then `configure`, like this (as part of a separate Makefile):
>>
>> export LIBS="-lz -lpng -ljpeg -ltiff" ; \
>> export SDKROOT=
>> "/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk"
>>  
>> ; \
>> export 
>> CFLAGS="-I/Users/ham/projects/swift/Tesseract-OCR-iOS/TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/
>>  
>> -L/Users/ham/projects/swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib 
>> -Qunused-arguments -arch arm64 -pipe -no-cpp-precomp -isysroot $SDKROOT 
>> -miphoneos-version-min="10.0" -O2 -fembed-bitcode" ; \
>> export CPPFLAGS=$CFLAGS ; \
>> export 
>> CXXFLAGS="-I/Users/ham/projects/swift/Tesseract-OCR-iOS/TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/
>>  
>> -L/Users/ham/projects/swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib 
>> -Qunused-arguments -arch arm64 -pipe -no-cpp-precomp -isysroot $SDKROOT 
>> -miphoneos-version-min="10.0" -O2 -Wno-deprecated-register"; \
>> export LDFLAGS="-L$SDKROOT/usr/lib/ 
>> -L/Users/ham/projects/swift/Tesseract-OCR-iOS/TesseractOCR/leptonica/ios/arm-apple-darwin64/src/.libs"
>>  
>> ; \
>> export LIBLEPT_HEADERSDIR=/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ ; \
>> export PKG_CONFIG_PATH=/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/leptonica/ios/arm-apple-darwin64/ ; \
>> ./configure --host=arm-apple-darwin64 --prefix=`pwd` --enable-shared=no 
>> --disable-graphics
>>
>>
>> This works fine, but then when running `make -sj8 && make install` for 
>> the generated Tesseract Makefile I get the output below. I'm not sure why 
>> AVX and SSE etc are being enabled when, as far as I know, they shouldn't be 
>> as the host doesn't support them. Any ideas?
>>
>> Making all in src/arch
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../src/arch -I../.. 
>> -DNDEBUG -I../../../../src/ccstruct -I../../../../src/ccutil -I
>> ../../../../src/viewer -I/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ -L/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib -Qunused-arguments -arch 
>> arm64 -pipe -no-cpp-precomp -isysroot /Applications/Xcode8.app/Contents/
>> Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -
>> miphoneos-version-min=10.0 -O2 -fembed-bitcode -I/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/leptonica/ios/arm-apple-darwin64/
>> include/leptonica -mavx2 -I/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ -L/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib -Qunused-arguments -arch 
>> arm64 -pipe -no-cpp-precomp -isysroot /Applications/Xcode8.app/Contents/
>> Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -
>> miphoneos-version-min=10.0 -O2 -Wno-deprecated-register -std=c++14 -MT 
>> libtesseract_avx2_la-intsimdmatrixavx2.lo -MD -MP -MF .deps/
>> libtesseract_avx2_la-intsimdmatrixavx2.Tpo -c ../../../../src/arch/
>> intsimdmatrixavx2.cpp -o libtesseract_avx2_la-intsimdmatrixavx2.o
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../src/arch -I../.. 
>> -DNDEBUG -I../../../../src/ccstruct -I../../../../src/ccutil -I
>> ../../../../src/viewer -I/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ -L/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib -Qunused-arguments -arch 
>> arm64 -pipe -no-cpp-precomp -isysroot /Applications/Xcode8.app/Contents/
>> Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -
>> miphoneos-version-min=10.0 -O2 -fembed-bitcode -I/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/leptonica/ios/arm-apple-darwin64/
>> include/leptonica -mavx -I/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ -L/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib -Qunused-arguments -arch 
>> arm64 -pipe -no-cpp-precomp -isysroot /Applications/Xcode8.app/Contents/
>> Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -
>> miphoneos-version-min=10.0 -O2 -Wno-deprecated-register -std=c++14 -MT 
>> libtesseract_avx_la-dotproductavx.lo -MD -MP -MF .deps/
>> libtesseract_avx_la-dotproductavx.Tpo -c ../../../../src/arch/
>> dotproductavx.cpp -o libtesseract_avx_la-dotproductavx.o
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../src/arch -I../.. 
>> -DNDEBUG -I../../../../src/ccstruct -I../../../../src/ccutil -I
>> ../../../../src/viewer -I/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ -L/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib -Qunused-arguments -arch 
>> arm64 -pipe -no-cpp-precomp -isysroot /Applications/Xcode8.app/Contents/
>> Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -
>> miphoneos-version-min=10.0 -O2 -fembed-bitcode -I/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/leptonica/ios/arm-apple-darwin64/
>> include/leptonica -msse4.1 -I/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ -L/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib -Qunused-arguments -arch 
>> arm64 -pipe -no-cpp-precomp -isysroot /Applications/Xcode8.app/Contents/
>> Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -
>> miphoneos-version-min=10.0 -O2 -Wno-deprecated-register -std=c++14 -MT 
>> libtesseract_sse_la-dotproductsse.lo -MD -MP -MF .deps/
>> libtesseract_sse_la-dotproductsse.Tpo -c ../../../../src/arch/
>> dotproductsse.cpp -o libtesseract_sse_la-dotproductsse.o
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../src/arch -I../.. 
>> -DNDEBUG -I../../../../src/ccstruct -I../../../../src/ccutil -I
>> ../../../../src/viewer -I/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ -L/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib -Qunused-arguments -arch 
>> arm64 -pipe -no-cpp-precomp -isysroot /Applications/Xcode8.app/Contents/
>> Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -
>> miphoneos-version-min=10.0 -O2 -fembed-bitcode -I/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/leptonica/ios/arm-apple-darwin64/
>> include/leptonica -msse4.1 -I/Users/ham/projects/swift/Tesseract-OCR-iOS/
>> TesseractOCR/tesseract-ocr/ios/arm-apple-darwin64/ -L/Users/ham/projects/
>> swift/Tesseract-OCR-iOS/TesseractOCR/ios/lib -Qunused-arguments -arch 
>> arm64 -pipe -no-cpp-precomp -isysroot /Applications/Xcode8.app/Contents/
>> Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -
>> miphoneos-version-min=10.0 -O2 -Wno-deprecated-register -std=c++14 -MT 
>> libtesseract_sse_la-intsimdmatrixsse.lo -MD -MP -MF .deps/
>> libtesseract_sse_la-intsimdmatrixsse.Tpo -c ../../../../src/arch/
>> intsimdmatrixsse.cpp -o libtesseract_sse_la-intsimdmatrixsse.o
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../src/arch -I../.. 
>> -DNDEBUG -I../../../../src/ccstruct -I../../../../src/ccutil -I
>> ../../../../src/viewer -DAVX -DAVX2 -DSSE4_1 -I/Users/ham/<span 
>> style="color: #000;" class="styled-b
>>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/67994cad-8c95-418a-96ae-8c35c2f22cf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to