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这个错误怎么改呢? 我很奇怪 ,难道这些源码不都是编译通过的吗,怎么会我们本地编译就会出现这么问题呢?
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这个错误怎么改呢? 我很奇怪 ,难道这些源码不都是编译通过的吗,怎么会我们本地编译就会出现这么问题呢?
试试重新走一次下面的命令,看会不会少装了些库
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-down libxml2-utils xsltproc zlib1g-dev:i386
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