获取GNU C编译器工作在iOS 6.x [英] Get GNU C Compiler working on iOS 6.x

查看:261
本文介绍了获取GNU C编译器工作在iOS 6.x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个越狱(evasi0n)第四代iPad,有iOS 6.1固件。



通过Cydia我安装了移动终端,版本520-2。 >
然后,在教程后,我已下载并安装了CSU,Link Identify Editor,



在安装过程中没有任何问题。

教程和项目分别更新2012年2月15日和2012年2月18日,所以他们工作正常,直到iOS 5.x(我已经测试了程序在我的iPhone 4S,iOS 5.1.1和它的工作,所以我可以编译和执行设备上的C代码)



但是在iPad(iOS 6.1)上的移动终端中,当我键入


$ gcc


我得到


非法指示:4


我在这几天搜索了很多,但我找不到任何有关GCC在iOS 6.x上,自最近一次讨论,并于2012年10月12日更新,而evasi0n越狱程序自2013年2月4日起可以开始。



感谢您的帮助。



UPDATE



),这个问题与iOS 6.x固件无关,而与A6 / A6X芯片无关,分别在iPhone 5和iPad 4代。

解决方案

某些软件必须使用ARMv7s支持进行重建。



要使用ARMv7重新编译,必须使用 -arch ARMv7 选项运行gcc,使用最新的SDK(6.0或6.1,我不认为它将使用旧的SDK版本,但你可以试试)。接下来,使用创建一个胖二进制文件code> lipo ,因此它将适用于多种架构。



[官方< gcc-full page]
http://code.google.com/p/iphone-gcc-full/issues/detail?id=6


I have a jailbroken (evasi0n) 4th generation iPad, with iOS 6.1 firmware.

Through Cydia I've installed Mobile Terminal, version 520-2.
Then, following this tutorial, I've downloaded and installed CSU, Link Identify Editor, LibGCC, GCC and Headers/Libraries.

During installation there were not any problems.

The tutorial and the project are updated respectively to Feb 15, 2012 and Feb 18, 2012, so they work fine till iOS 5.x (I've tested the procedure on my iPhone 4S, iOS 5.1.1 and it works, so I can compile and execute C code on the device)

But in Mobile Terminal, on iPad (iOS 6.1) when I type

$ gcc

I get

Illegal instruction: 4

I searched a lot during these days, but I can't find anything about GCC on iOS 6.x, since the last recent discussion about that is updated at Oct 12, 2012, while evasi0n jailbreak procedure has been possible starting from Feb 4, 2013.

Thanks for any help.

UPDATE

It seems (from the answers) that the problem is not related to iOS 6.x firmware, but to A6/A6X Chip, respectively on iPhone 5 and iPad 4th generation.

解决方案

Some software must be rebuilt with ARMv7s support. GCC is one of them.

To recompile with ARMv7 you have to run gcc with the -arch ARMv7 option and use latest SDK (6.0 or 6.1, I don't think it will work with old SDK versions but you can try). Next, create a fat binary using lipo so it will work on multiple architectures.

[This issue in official iphone-gcc-full page] (http://code.google.com/p/iphone-gcc-full/issues/detail?id=6)

这篇关于获取GNU C编译器工作在iOS 6.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆