Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to build lib on Mac M1 #430

Open
jannyProjects opened this issue May 16, 2023 · 3 comments
Open

unable to build lib on Mac M1 #430

jannyProjects opened this issue May 16, 2023 · 3 comments

Comments

@jannyProjects
Copy link

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

@OleksiiShvachenko
Copy link

OleksiiShvachenko commented Jun 9, 2023

@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/'`"

@jannyProjects
Copy link
Author

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

Thanx

@KodaKoder
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants