ios - OSX cross compiling library for ARMv7 -
I am trying to compile a library for an iOS application and I get the following error message:
create cache ./config.cache Check for GCC ... / Application / Xcode.app/Contents/Developer/usr/bin/gcc-arch armv7 C compiler check (/ application / Xcode.app / Contents / developer / usr / bin / gcc -arch armv7) works ... no configured: error: installation or configuration issue: C compiler can not be executable
Consider why armv7 compiler executables can not be made but it works for the i386 and x86_64? How can I fix this error?
What library?
I'm guessing OpenSSL looks at it (use BSD-Generic 32
), and if so, use it to create it.
Important bits to help you choose the right build If you are curious, build-libssl.sh scripts.
Update:
Specifying sometimes, specifying -arch
is not enough to pass the entire -target
Especially when compiling libraries, or libraries, which are usually deployed in Unix-type systems.
Try clang-target arm64- apple-iOS ...
and clang -target armv7-apple-ios ...
, and after that Use lipo
so that libraries with multiple architectures can be merged.
You clang -target armv7-apple-ios -dM -E - & lt; With possible target triples (and can inspect their definitions made by them, if you are curious) can try. / Dev / null | Less
, for example.
Comments
Post a Comment