编译android 4.0源码 dalvik_system_Zygote.o错误

挤不上公交车的路人甲 2013-09-03 09:39:28
编译android 4.0源码 系统 ubuntu 12.04 64bit
每次编译都会出现如下错误

out/host/linux-x86/obj/SHARED_LIBRARIES/libdvm_intermediates/native/dalvik_system_Zygote.o]

然后我就想去指定路径看看dalvik_system_Zygote.o 这个文件,结果没有,那这个错误是怎么来的呢,是不是编译是的一个临时文件,不太懂,哪位了解情况 ,还望多多指教,谢谢。

...全文
261 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
Capacity360 2016-05-11
  • 打赏
  • 举报
回复
out/host/linux-x86/obj/SHARED_LIBRARIES/libdvm_intermediates/native/dalvik_system_Zygote.o] 然后我就想去指定路径看看dalvik_system_Zygote.o 这个文件,结果没有,这个问题你怎么解决的呢?我现在也遇到这个一样的问题了,非常感谢
无为_ 2014-05-07
  • 打赏
  • 举报
回复
引用 8 楼 mimixi666 的回复:
不知道楼主解决了没有,我百度貌似是这样的: http://www.linuxidc.com/Linux/2014-03/97761p2.htm 要更改源代码。。 我正在测试中。。 在dalvik/vm/native/dalvik_system_Zygote.cpp中间增加一个头文件定义#include <sys/resource.h> #include "Dalvik.h" #include "native/InternalNativePriv.h" #include <sys/resource.h> 本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2014-03/97761p2.htm
正解
无为_ 2014-05-04
  • 打赏
  • 举报
回复
mimixi666 2014-04-11
  • 打赏
  • 举报
回复
不知道楼主解决了没有,我百度貌似是这样的: http://www.linuxidc.com/Linux/2014-03/97761p2.htm 要更改源代码。。 我正在测试中。。 在dalvik/vm/native/dalvik_system_Zygote.cpp中间增加一个头文件定义#include <sys/resource.h> #include "Dalvik.h" #include "native/InternalNativePriv.h" #include <sys/resource.h> 本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2014-03/97761p2.htm
yuleyouxi 2013-09-06
  • 打赏
  • 举报
回复
你参考下http://blog.csdn.net/ithomer/article/details/6977386 试试重新走一次下面的命令,看会不会少装了些库 sudo apt-get install git-core gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386
yuleyouxi 2013-09-04
  • 打赏
  • 举报
回复
怎么都是函数未声明啊。。。会不会是下载的代码不完整?
  • 打赏
  • 举报
回复
咋就没个人来帮忙瞅瞅呢
  • 打赏
  • 举报
回复
引用 5 楼 yuleyouxi 的回复:
怎么都是函数未声明啊。。。会不会是下载的代码不完整?
不会吧 下载不完成 源码是不会拷到指定目录的
  • 打赏
  • 举报
回复
external/srec/tools/thirdparty/OpenFst/fst/lib/map.h: In instantiation of ‘void fst::MapFstImpl<A, B, C>::Expand(fst::MapFstImpl<A, B, C>::StateId) [with A = fst::StdArc; B = fst::GallicArc<fst::StdArc, (fst::StringType)2u>; C = fst::ToGallicMapper<fst::StdArc, (fst::StringType)2u>; fst::MapFstImpl<A, B, C>::StateId = int]’: external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:336:7: required from ‘size_t fst::MapFstImpl<A, B, C>::NumArcs(fst::MapFstImpl<A, B, C>::StateId) [with A = fst::StdArc; B = fst::GallicArc<fst::StdArc, (fst::StringType)2u>; C = fst::ToGallicMapper<fst::StdArc, (fst::StringType)2u>; size_t = unsigned int; fst::MapFstImpl<A, B, C>::StateId = int]’ external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:492:60: required from ‘size_t fst::MapFst<A, B, C>::NumArcs(fst::MapFst<A, B, C>::StateId) const [with A = fst::StdArc; B = fst::GallicArc<fst::StdArc, (fst::StringType)2u>; C = fst::ToGallicMapper<fst::StdArc, (fst::StringType)2u>; size_t = unsigned int; fst::MapFst<A, B, C>::StateId = int]’ external/srec/tools/make_cfst/make_cfst.cpp:270:1: required from here external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:360:29: error: ‘SetArcs’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:360:29: note: declarations in dependent base ‘fst::CacheBaseImpl<fst::CacheState<fst::GallicArc<fst::StdArc, (fst::StringType)2u> > >’ are not found by unqualified lookup external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:360:29: note: use ‘this->SetArcs’ instead external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:367:7: error: ‘AddArc’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:367:7: note: declarations in dependent base ‘fst::CacheBaseImpl<fst::CacheState<fst::GallicArc<fst::StdArc, (fst::StringType)2u> > >’ are not found by unqualified lookup external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:367:7: note: use ‘this->AddArc’ instead external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:383:13: error: ‘AddArc’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:383:13: note: declarations in dependent base ‘fst::CacheBaseImpl<fst::CacheState<fst::GallicArc<fst::StdArc, (fst::StringType)2u> > >’ are not found by unqualified lookup external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:383:13: note: use ‘this->AddArc’ instead external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:392:11: error: ‘AddArc’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:392:11: note: declarations in dependent base ‘fst::CacheBaseImpl<fst::CacheState<fst::GallicArc<fst::StdArc, (fst::StringType)2u> > >’ are not found by unqualified lookup external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:392:11: note: use ‘this->AddArc’ instead external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:397:5: error: ‘SetArcs’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:397:5: note: declarations in dependent base ‘fst::CacheBaseImpl<fst::CacheState<fst::GallicArc<fst::StdArc, (fst::StringType)2u> > >’ are not found by unqualified lookup external/srec/tools/thirdparty/OpenFst/fst/lib/map.h:397:5: note: use ‘this->SetArcs’ instead In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/arcsort.h:24:0, from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:54, from external/srec/tools/make_cfst/make_cfst.cpp:24: external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h: In instantiation of ‘S* fst::CacheBaseImpl<S>::ExtendState(fst::CacheBaseImpl<S>::StateId) [with S = fst::CacheState<fst::StdArc>; fst::CacheBaseImpl<S>::StateId = int]’: external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:171:29: required from ‘void fst::CacheBaseImpl<S>::AddArc(fst::CacheBaseImpl<S>::StateId, const Arc&) [with S = fst::CacheState<fst::StdArc>; fst::CacheBaseImpl<S>::StateId = int; fst::CacheBaseImpl<S>::Arc = fst::StdArc]’ external/srec/tools/thirdparty/OpenFst/fst/lib/determinize.h:502:7: required from ‘void fst::DeterminizeFstImpl<A, S>::Expand(fst::DeterminizeFstImpl<A, S>::StateId) [with A = fst::StdArc; fst::StringType S = (fst::StringType)2u; fst::DeterminizeFstImpl<A, S>::StateId = int]’ external/srec/tools/make_cfst/make_cfst.cpp:270:1: required from here external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:132:9: error: ‘SetState’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:132:9: note: declarations in dependent base ‘fst::VectorFstBaseImpl<fst::CacheState<fst::StdArc> >’ are not found by unqualified lookup external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:132:9: note: use ‘this->SetState’ instead external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:136:11: error: ‘SetState’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:136:11: note: declarations in dependent base ‘fst::VectorFstBaseImpl<fst::CacheState<fst::StdArc> >’ are not found by unqualified lookup external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:136:11: note: use ‘this->SetState’ instead external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h: In instantiation of ‘void fst::CacheBaseImpl<S>::GC(fst::CacheBaseImpl<S>::StateId, bool) [with S = fst::CacheState<fst::StdArc>; fst::CacheBaseImpl<S>::StateId = int]’: external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:194:9: required from ‘void fst::CacheBaseImpl<S>::SetArcs(fst::CacheBaseImpl<S>::StateId) [with S = fst::CacheState<fst::StdArc>; fst::CacheBaseImpl<S>::StateId = int]’ external/srec/tools/thirdparty/OpenFst/fst/lib/determinize.h:503:5: required from ‘void fst::DeterminizeFstImpl<A, S>::Expand(fst::DeterminizeFstImpl<A, S>::StateId) [with A = fst::StdArc; fst::StringType S = (fst::StringType)2u; fst::DeterminizeFstImpl<A, S>::StateId = int]’ external/srec/tools/make_cfst/make_cfst.cpp:270:1: required from here external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:290:9: error: ‘SetState’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:290:9: note: declarations in dependent base ‘fst::VectorFstBaseImpl<fst::CacheState<fst::StdArc> >’ are not found by unqualified lookup external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:290:9: note: use ‘this->SetState’ instead target thumb C: libext4_utils <= system/extras/ext4_utils/backed_block.c target thumb C: libext4_utils <= system/extras/ext4_utils/output_file.c target thumb C: libext4_utils <= system/extras/ext4_utils/contents.c target thumb C: libext4_utils <= system/extras/ext4_utils/extent.c target thumb C: libext4_utils <= system/extras/ext4_utils/indirect.c target thumb C: libext4_utils <= system/extras/ext4_utils/uuid.c target thumb C: libext4_utils <= system/extras/ext4_utils/sha1.c target thumb C: libext4_utils <= system/extras/ext4_utils/sparse_crc32.c target thumb C: libext4_utils <= system/extras/ext4_utils/wipe.c make: *** [out/host/linux-x86/obj/EXECUTABLES/make_cfst_intermediates/make_cfst.o] 错误 1 这个错误怎么改呢? 我很奇怪 ,难道这些源码不都是编译通过的吗,怎么会我们本地编译就会出现这么问题呢?
yuleyouxi 2013-09-03
  • 打赏
  • 举报
回复
估计是编译dalvik_system_Zygote.cpp的时候才出问题了,你仔细看下完整的log,找下具体报的错误
  • 打赏
  • 举报
回复
就没个人 给点儿意见吗? csdn真成水军乐园来吗

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧