首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在iOS上编译irssi (苹果电视)

在iOS上编译irssi (苹果电视)
EN

Stack Overflow用户
提问于 2012-02-28 06:11:25
回答 1查看 655关注 0票数 0

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

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

代码语言:javascript
复制
checking whether the C compiler works... no
configure: error: in `/private/var/download/irssi/irssi-0.8.15'

config.log读取:

代码语言:javascript
复制
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’,这可能会把事情搞砸?

EN

回答 1

Stack Overflow用户

发布于 2012-02-29 03:48:58

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

我安装了:

代码语言:javascript
复制
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)时,它会显示:

代码语言:javascript
复制
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/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9473162

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档