我的目标是将libgdx游戏移植到iOS。 我遵循了http://www.robovm.org/docs.html
的安装说明根据说明安装clang和robovm。
从安装了robovm插件的eclipse,如果我运行iOS模拟器应用程序后显示错误消息。从终端转换单个java类文件也是如此。
7/9/13 12:31:13 PM: [ INFO] Building executable
7/9/13 12:31:13 PM: [DEBUG] Compiling java.lang.Byte
7/9/13 12:31:13 PM: [DEBUG] Optimizing java.lang.Byte
7/9/13 12:31:13 PM: [DEBUG] /opt/llvm/bin/opt -mem2reg -always-inline -o=/Users/pgs/.robovm/cache/ios/x86/default/opt/robovm-0.0.2/lib/robovm-rt.jar/java/lang/Byte.class.bc /Users/pgs/.robovm/cache/ios/x86/default/opt/robovm-0.0.2/lib/robovm-rt.jar/java/lang/Byte.class.ll
7/9/13 12:31:13 PM: [DEBUG] Generating x86 assembly for java.lang.Byte
7/9/13 12:31:13 PM: [DEBUG] /opt/llvm/bin/llc -mtriple=i386-unknown-ios -ffunction-sections -fdata-sections -disable-fp-elim -o=/Users/pgs/.robovm/cache/ios/x86/default/opt/robovm-0.0.2/lib/robovm-rt.jar/java/lang/Byte.class.s /Users/pgs/.robovm/cache/ios/x86/default/opt/robovm-0.0.2/lib/robovm-rt.jar/java/lang/Byte.class.bc
7/9/13 12:31:13 PM: [DEBUG] Assembling java.lang.Byte
7/9/13 12:31:13 PM: [DEBUG] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -o /Users/pgs/.robovm/cache/ios/x86/default/opt/robovm-0.0.2/lib/robovm-rt.jar/java/lang/Byte.class.o -g -arch i386 /Users/pgs/.robovm/cache/ios/x86/default/opt/robovm-0.0.2/lib/robovm-rt.jar/java/lang/Byte.class.s
7/9/13 12:31:14 PM: [ERROR] /Users/pgs/.robovm/cache/ios/x86/default/opt/robovm-0.0.2/lib/robovm-rt.jar/java/lang/Byte.class.s:474:2: error: invalid instruction mnemonic 'vcvtsi2ssl'
7/9/13 12:31:14 PM: [ERROR] vcvtsi2ssl %eax, %xmm0, %xmm0
7/9/13 12:31:14 PM: [ERROR] ^~~~~~~~~~
7/9/13 12:31:14 PM: [ERROR] Build failed
答案 0 :(得分:1)
问题解决了:))
需要使用clang版本: clang + llvm-3.2-x86_64-apple-darwin11
我之前使用的是版本:clang + llvm-3.3-x86_64-apple-darwin12。