Creating a static c lib for ios -
i'm want compile c library iphone. i'm totally unexperienced , googled around , found her: compile c lib iphone
the original source code of project want build compiles fine on mac , result contains following directory structure
bin include lib share
so after want build stuff can use on iphone. first step copy , pasted configure command link above , hit enter. result:
./configure --build=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 checking build system type... arm-apple-darwin checking host system type... arm-apple-darwin checking bsd-compatible install... /usr/bin/install -c checking whether build environment sane... yes checking thread-safe mkdir -p... ./install-sh -c -d checking gawk... no checking mawk... no checking nawk... no checking awk... awk checking whether make sets $(make)... yes checking host system type... posix checking gcc... /developer/platforms/iphoneos.platform/developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 checking whether c compiler works... no configure: error: in `/path/to/gwenhywfar-4.3.0-src': configure: error: c compiler cannot create executables
but problem that? how can repaired? right if assume preventing creating binary executables solution?
Comments
Post a Comment