baresip / baresip-ios

Baresip for iOS
46 stars 33 forks source link

libcrypto.dylib for architecture x86_64 #42

Open lecong opened 3 years ago

lecong commented 3 years ago

Hi, I want using this library for iOS 12 (64 bit)

When I run command: $ make contrib

have error:

ld: building for iOS Simulator, but linking in dylib file (/usr/local/opt/openssl/lib/libcrypto.dylib) built for macOS, file '/usr/local/opt/openssl/lib/libcrypto.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [librem.dylib] Error 1
make: *** [librem] Error 2

Can your help me resolve it?

kisso commented 3 years ago

i have same issue...

Koshub commented 3 years ago

Probably for quick fix setting empty OPENSSL_OPT := will help (see here). It's just trying to use macOS openssl which is not built for iOS

kisso commented 3 years ago

Probably for quick fix setting empty OPENSSL_OPT := will help (see here). It's just trying to use macOS openssl which is not built for iOS

after that fix I am getting another error: Makefile:148: bad libre version, required version is ">= 2.0.1-dev". LIBRE_MK: ../re/mk/re.mk. Stop. make: [baresip] Error 2

Kaleeshwaran04 commented 1 year ago

fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: specifed architecture type (arm64) for file (/Users/Desktop/baresip-ios/contrib/aarch64/lib/libre.a) does not match its cputype (16777223) and cpusubtype (3) (should be cputype (16777228) and cpusubtype (0)) make: *** [libre] Error 1

am faceing this error how to resolve thie error? Please help me!