1

GMPiPadアプリに使ってみました。

残念ながら、XCode 4.5.1ライブラリ - のアーキテクチャが正しくないため、実行に失敗しましたarmv7s

Undefined symbols for architecture armv7s:
  "___gmpz_add", referenced from:
      _main in gmp.o
  "___gmpz_get_str", referenced from:
      _main in gmp.o
  "___gmpz_init_set_str", referenced from:
      _main in gmp.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

armv7のアーキテクチャでライブラリを構築しようとしましたが、 XCode では正常に実行されましたが、 armv7s では実行されませんでした。

armv7の私の構成は次GMPのとおりです。

sudo sh ./configure CC="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2" CXX="/Applications/Xcode.app/Contents/Developer /Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2" CPP="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 -E" LD="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld" CPPFLAGS="-arch armv7-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=4.2" AR="/Applications/Xcode.app/Contents/Developer /Platforms/iPhoneOS.platform/Developer/usr/bin/ar" NM="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/nm" NMEDIT="/Applications/Xcode .app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/nmedit" LIBTOOL="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool" LIPO ="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo" OOOL="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr /bin/otool" RANLIB="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib" STRIP="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin /strip" --disable-shared --enable-static --prefix=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/gmp/5.1.0/armv7 --host=none-apple-darwin10

armv7sの場合:-

sudo sh ./configure CC="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2" CXX="/Applications/Xcode.app/Contents/Developer /Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2" CPP="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 -E" LD="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld" CPPFLAGS="-arch armv7s-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=4.2" AR="/Applications/Xcode.app/Contents/Developer /Platforms/iPhoneOS.platform/Developer/usr/bin/ar" NM="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/nm" NMEDIT="/Applications/Xcode .app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/nmedit" LIBTOOL="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool" LIPO ="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo" OOOL="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr /bin/otool" RANLIB="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib" STRIP="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin /strip" --disable-shared --enable-static --prefix=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/gmp/5.1.0/armv7s --host=none-apple-darwin10

GMPサポートしているかどうかをグーグルで調べてみましarmv7sたが、これに関する情報はありません。

サポートされていませんか、それとも以前の構成がMAKE間違っていますか?

4

0 に答える 0