Compile C lib für iPhone

Ich versuche, die ZeroMQ C-Bindung zu kompilieren, um sie auf dem iPhone verwenden zu können. Hier sind meine Konfigurationsoptionen:

./configure --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 CFLAGS="-pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=3.1.2 -gdwarf-2 -mthumb -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk -mdynamic-no-pic" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar AS=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as LIBTOOL=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool STRIP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/strip RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib

Es konfiguriert und kompiliert tatsächlich einwandfrei, aber wenn ich es zum Abschnitt Xcode Frameworks hinzufüge, erhalte ich eine Warnung:ld: warning: in /path/to/app/libzmq.a, file was built for unsupported file format which is not the architecture being linked (armv7) und viele nicht gefundene Symbolfehler.

Wenn ich die derzeit aktive Architektur von Armv6 in Armv7 ändere, ändert sich die Warnmeldung in Armv6. Was mache ich falsch

anke, D

Antworten auf die Frage(4)

Ihre Antwort auf die Frage