在iOS上编译irssi(Apple TV)
问题描述:
我试图编译在appleTV 2上执行的irssi的最新版本(ios)irssi已经存在于回购协议中,但它是一个不支持perl支持的旧版本。我已经在设备上编译了一个应用程序,一个简单的来自http://imho.nu/Home/start-your-frappliance/appletv-mm-example/的HelloWorld。在iOS上编译irssi(Apple TV)
当我尝试编译之前配置别的,它失败,出现错误:
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',这可能会搞砸了?
答
很高兴你发现了我的imho.nu页面。我只是通过测试简单的方法来进入。 apt-get install irssi
。这安装了irssi 0.8.12(20071006 0939)直接从cydia。
我装:
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#
在任何情况下
,你写了为恕我直言。 nu是好的,但我不认为perl模块是在该版本的irssi中加载的。你的/ LOAD输出是否包含perl?我的不是。此版本是08.12最新版本是08.15 – 2012-03-01 21:45:18
也请在imho.nu上添加联系信息或打开评论 – 2012-03-01 21:45:50