【问题标题】:Theos problems with g++ darwin9g++ darwin9 的 Theos 问题
【发布时间】:2012-08-03 06:04:00
【问题描述】:

大家好,我正在使用 ipad 2 3g ios 5.1.1 无论如何,我尝试通过theos编译一个应用程序,这就是问题所在 我找到带有makefile的helloworld目录,并通过终端输入make 它说它正在编译,但它给了我这个错误

    /bin/sh: /usr/bin/arm-apple-darwin9-g++: no such file ir directory
    make [2] : *** [obj/main.mm.o] Error 127
    make [1] : *** [internal-tool-all_] Error 2
    make: *** [helloworld.all.tool.variables] Error 2

使用这个theos模板

    Choose template: 4 (iphone/tool)
    Project Name: helloworld
    Package Name: com.memyself.helloworld
    Author Maintainer Name: me myself

我知道它在 /usr/bin 中寻找 arm-apple-darwin9-g++(我在那个目录中有 arm-apple-darwin9-c++) 但那是什么,我从哪里得到?哦,那些错误是什么我完全没有得到帮助

【问题讨论】:

    标签: ipad ios5 g++ cydia


    【解决方案1】:

    这很简单, 从这里http://apt.saurik.com/cydia/debs/libgcc_4.2-20080410-1-6_iphoneos-arm.deb 下载 libgcc 包,然后安装它。之后从 Cydia 安装 GNU C 编译器并记住将头文件放在 var/theos/include 目录中。祝你好运!

    【讨论】:

    • 现在我找到了。 /bin/sh:/usr/theos/bin/ldid:可执行文件 make [2] 中的 CPU 类型错误:*** [obj/helloworld] 错误 126 make [1]:*** [internal-tool-all_] 错误2 make: *** [helloworld.all.tool.variables] 错误 2
    猜你喜欢
    • 1970-01-01
    • 2011-09-07
    • 2018-03-22
    • 1970-01-01
    • 2011-05-30
    • 2011-01-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多