LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1710|回复: 16

firefox 3 (xulrunner) 需要apng支持的libpng,怎么解决?

[复制链接]
发表于 2008-6-19 07:57:16 | 显示全部楼层 |阅读模式
emerge mozilla firefox 3.0 或者xulrunner的时候, 在configure的时候要检查libpng对apng的支持, 但是系统的png是不支持apng的,总是失败在configure上面,不知道大家是怎么解决的?

checking whether the compiler can resolve const ambiguities for templates... yes
checking whether the C++ "using" keyword can change access... yes
checking whether the C++ "using" keyword resolves ambiguity... yes
checking for "std::" namespace... yes
checking whether standard template operator!=() is ambiguous... unambiguous
checking for C++ reinterpret_cast... yes
checking for C++ dynamic_cast to void*... yes
checking whether C++ requires implementation of unused virtual methods... yes
checking for trouble comparing to zero near std:perator!=()... no
checking for LC_MESSAGES... yes
checking for nspr-config... /usr/bin/nspr-config
checking for NSPR - version >= 4.7.0... yes
checking for nss-config... /usr/bin/nss-config
checking for NSS - version >= 3.12.0... yes
checking for jpeg_destroy_compress in -ljpeg... yes
checking for gzread in -lz... yes
checking for png_get_valid in -lpng... yes
checking for png_get_acTL in -lpng... no
configure: error: --with-system-png won't work because the system's libpng doesn't have APNG support

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/www-client/mozilla-firefox-3.0/work/mozilla/config.log
*
* ERROR: www-client/mozilla-firefox-3.0 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 3152:  Called econf
*               ebuild.sh, line  526:  Called die
* The specific snippet of code:
*                      die "econf failed"
*  The die message:
*   econf failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/www-client/mozilla-firefox-3.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-client/mozilla-firefox-3.0/temp/environment'.
发表于 2008-6-19 11:12:41 | 显示全部楼层
你的libpng什么版本的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-19 12:15:26 | 显示全部楼层
libpng-1.2.27 from portage.
回复 支持 反对

使用道具 举报

发表于 2008-6-19 14:16:52 | 显示全部楼层
我刚才试了一下,我用libpng-1.2.27 from portage也是可以的,你试试sync一下portage,然后再重新emerge 一下libpng和xulrunner看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-19 14:33:49 | 显示全部楼层
试验了n次了,都出现这个问题。我用的glibc-2.8-20080602版本的。gcc4.3.1不知道有没有影响
回复 支持 反对

使用道具 举报

发表于 2008-6-19 14:45:03 | 显示全部楼层
可能是gcc4.3.1的问题吧,不过你可以安装firefox-bin版试试,也很好用的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-19 15:12:10 | 显示全部楼层
这个东西和编译器也有关系?
不太可能吧?
回复 支持 反对

使用道具 举报

发表于 2008-6-19 15:31:54 | 显示全部楼层
看config.log
回复 支持 反对

使用道具 举报

发表于 2008-6-19 17:07:54 | 显示全部楼层
有时侯把/usr/portage/distfiles/下面的源码包解压出来,重新手动configure+make会有意想不到的收获
回复 支持 反对

使用道具 举报

发表于 2008-6-19 18:10:52 | 显示全部楼层
再不知道什么出问题的情况下,不推荐楼上的方法。Portage 也是这样,只不过是用了个小黑盒了,原则上会得到一样的结果。楼主可以按 zhllg 版主的要求把 config.log 帖出来分析分析。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表