【问题标题】:compile irssi on iOS (Apple TV)在 iOS (Apple TV) 上编译 irssi
【发布时间】:2012-02-29 03:50:34
【问题描述】:

我正在尝试编译最新版本的 irssi 以在 AppleTV 2 (ios) 上执行 irssi 已存在于 repos 中,但它是一个旧版本,不支持 perl。我在设备上编译了一个应用程序,一个来自 http://imho.nu/Home/start-your-frappliance/appletv-mm-example/ 的简单 HelloWorld。

当我尝试在编译之前配置任何其他内容时,它会失败并显示错误:

checking whether the C compiler works... no
configure: error: in `/private/var/download/irssi/irssi-0.8.15'

config.log 内容:

gcc version 4.2.1 (Based on Apple Inc. build 5555)
configure:3477: $? = 0
configure:3466: gcc -V >&5
gcc: '-V' option must have argument
configure:3477: $? = 1
configure:3466: gcc -qversion >&5
gcc: no input files
configure:3477: $? = 1
configure:3497: checking whether the C compiler works
configure:3519: gcc    conftest.c  >&5
ld: library not found for -lSystem
collect2: ld returned 1 exit status
configure:3523: $? = 1
configure:3561: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "irssi"
| #define PACKAGE_TARNAME "irssi"
| #define PACKAGE_VERSION "0.8.15"
| #define PACKAGE_STRING "irssi 0.8.15"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3566: error: in `/private/var/download/irssi/irssi-0.8.15':
configure:3570: error: C compiler cannot create executables
See `config.log' for more details.

谁能说明问题可能是什么?似乎脚本通过 gcc '-V' 而不是 '-v' 这可能会搞砸?

【问题讨论】:

    标签: ios configure


    【解决方案1】:

    很高兴你找到了我的 imho.nu 页面。我只是通过测试简单的方法进入。 apt-get install irssi。这直接从 cydia 安装了 irssi 0.8.12 (20071006 0939)。

    我安装了:

    wget http://apt.saurik.com/debs/libgcc_4.2-20080410-1-6_iphoneos-arm.deb
    dpkg -i libgcc_4.2-20080410-1-6_iphoneos-arm.deb
    apt-get install iphone-gcc ldid make
    

    当我输入gcc -v(不是-V)时,它会给我:

    AppleTV:/usr/bin root# gcc -v
    Using built-in specs.
    Target: arm-apple-darwin9
    Configured with: ../llvm-gcc-4.2/configure --build=x86_64-unknown-linux-gnu --host=arm-apple-darwin9 --enable-static=no --enable-shared=yes --prefix=/usr --localstatedir=/var/cache/iphone-gcc --enable-languages=c,c++,objc,obj-c++ --enable-wchar_t=no --with-gxx-include-dir=/usr/include/c++/4.0.0
    Thread model: posix
    gcc version 4.2.1 (Based on Apple Inc. build 5555)
    AppleTV:/usr/bin root#   
    

    见:http://imho.nu/iMHo/scripting-with-irssi/

    【讨论】:

    • 无论如何,你为 imho.nu 写的文章很好,但我认为 perl 模块没有加载到那个版本的 irssi 中。您的 /LOAD 输出是否包含 perl?我的没有。另外那个版本是 08.12 最新的是 08.15
    • 另外请在 imho.nu 上添加联系信息或打开 cmets
    猜你喜欢
    • 2013-11-20
    • 1970-01-01
    • 1970-01-01
    • 2016-02-23
    • 1970-01-01
    • 1970-01-01
    • 2011-12-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多