当我用fedora 16编译android 2.3.4时,我得到了一个android构建错误。(在同一台机器上编译android 2.2.1非常有效。)
错误消息:
(..)
Install: out/target/product/generic/system/lib/libttspico.so
Install: out/target/product/generic/system/lib/libttssynthproxy.so
target Generated: libwebcore <= external/webkit/WebCore/dom/make_names.pl
Can't locate Switch.pm in @INC (@INC contains: external/webkit/WebCore/bindings/scripts /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at external/webkit/WebCore/dom/make_names.pl line 38.
BEGIN failed--compilation aborted at external/webkit/WebCore/dom/make_names.pl line 38.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/HTMLNames.h] Fehler 2
这里有什么问题?
由于
答案 0 :(得分:3)
如果您使用的是Fedora 16,则需要通过yum添加 Switch.pm :
yum install perl-Switch
答案 1 :(得分:1)
这是与Perl相关的问题。 Fedora 16 Perl版本中不再包含 Switch.pm 软件包。您需要安装此软件包。