libetpan icon indicating copy to clipboard operation
libetpan copied to clipboard

unable to build lib on Mac M1

Open jannyProjects opened this issue 1 year ago • 3 comments

I tried to build library for iOS using tutorial from README file but I am getting following error in xCode:

running prepare-cyrus-sasl.sh prepare sources building tools generated makemd5arm64 properly building for iPhoneOS - armv7 log to /libetpan/build-mac/dependencies/build/libsasl/workdir/20230516192856/src/cyrus-sasl-2.1.28-iPhoneOS-armv7/build.log Command ExternalBuildToolExecution failed with a nonzero exit code

and here is a error from log file mentioned above:

*** building for iPhoneOS - armv7 *** configure: WARNING: you should use --build, --host, --target configure: creating cache ./config.cache checking build system type... Invalid configuration 16.4armv7': machine 16.4armv7' not recognized configure: error: /bin/sh config/config.sub 16.4armv7 failed

jannyProjects avatar May 16 '23 17:05 jannyProjects

@jannyProjects I fixed that error by updating next line in prepare-cyrus-sasl.sh

-SDK_IOS_VERSION="`xcodebuild -showsdks 2>/dev/null | grep iphoneos | sed 's/.*iphoneos\(.*\)/\1/'`"
+SDK_IOS_VERSION="`xcodebuild -showsdks 2>/dev/null | grep 'sdk iphoneos' | sed 's/.*iphoneos\(.*\)/\1/'`"

OleksiiShvachenko avatar Jun 09 '23 04:06 OleksiiShvachenko

@OleksiiShvachenko your fix helped fix the issue. You should create PR :)

Thanx

jannyProjects avatar Jun 09 '23 08:06 jannyProjects

The fix works indeed Would be possible to compile libetpan also for catalyst?

KodaKoder avatar Jul 20 '23 17:07 KodaKoder