编译android源码出错,求指导

huangduizhang 2013-09-05 05:26:11
我下几次,总算下载成功,make的时候出现里这些错误,谁能帮我指导下
external/alljoyn/common/inc/qcc/StringMapKey.h:144: error: 'hash' is not a template
external/alljoyn/common/inc/qcc/StringMapKey.h:144: error: explicit specialization of non-template '__gnu_cxx::hash'
In file included from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:33,
from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:47:
external/alljoyn/alljoyn_core/src/LocalTransport.h:274: error: ISO C++ forbids declaration of 'GUID' with no type
external/alljoyn/alljoyn_core/src/LocalTransport.h:274: error: invalid use of '::'
external/alljoyn/alljoyn_core/src/LocalTransport.h:274: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/LocalTransport.h:281: error: expected ';' before 'uint32_t'
external/alljoyn/alljoyn_core/src/LocalTransport.h:369: error: 'GUID' in namespace 'qcc' does not name a type
In file included from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:34,
from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:47:
external/alljoyn/alljoyn_core/src/Router.h:112: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/src/Router.h:112: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/src/Router.h:112: error: expected ';' before '&' token
In file included from external/alljoyn/alljoyn_core/src/AuthMechanism.h:39,
from external/alljoyn/alljoyn_core/src/BusInternal.h:40,
from external/alljoyn/alljoyn_core/src/EndpointAuth.h:31,
from external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:35,
from external/alljoyn/alljoyn_core/daemon/VirtualEndpoint.h:30,
from external/alljoyn/alljoyn_core/daemon/NameTable.h:38,
from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:35,
from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:47:
external/alljoyn/alljoyn_core/src/KeyStore.h:123: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:123: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:123: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:133: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:133: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:133: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:141: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:141: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:141: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:149: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:149: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:149: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/KeyStore.h:158: error: 'qcc::GUID' has not been declared
external/alljoyn/alljoyn_core/src/KeyStore.h:229: error: 'GUID' is not a member of 'qcc'
external/alljoyn/alljoyn_core/src/KeyStore.h:229: error: 'GUID' is not a member of 'qcc'
external/alljoyn/alljoyn_core/src/KeyStore.h:229: error: template argument 1 is invalid
external/alljoyn/alljoyn_core/src/KeyStore.h:229: error: template argument 3 is invalid
external/alljoyn/alljoyn_core/src/KeyStore.h:229: error: template argument 4 is invalid
external/alljoyn/alljoyn_core/src/KeyStore.h:244: error: 'GUID' in namespace 'qcc' does not name a type
external/alljoyn/alljoyn_core/src/KeyStore.h: In member function 'QStatus ajn::KeyStore::GetGuid(int&)':
external/alljoyn/alljoyn_core/src/KeyStore.h:163: error: 'thisGuid' was not declared
external/alljoyn/alljoyn_core/src/EndpointAuth.h:107: error: invalid use of '::'
external/alljoyn/alljoyn_core/src/EndpointAuth.h:107: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/EndpointAuth.h:115: error: expected ';' before 'uint32_t'
external/alljoyn/alljoyn_core/src/EndpointAuth.h:136: error: 'GUID' in namespace 'qcc' does not name a type
In file included from external/alljoyn/alljoyn_core/daemon/VirtualEndpoint.h:30,
from external/alljoyn/alljoyn_core/daemon/NameTable.h:38,
from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:35,
from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:47:
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:215: error: ISO C++ forbids declaration of 'GUID' with no type
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:215: error: invalid use of '::'
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:215: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:222: error: expected ';' before 'const'
In file included from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:35,
from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:47:
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected ';' before '&' token
In file included from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:47:
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:94: error: expected ';' before 'qcc'
In file included from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:48:
external/alljoyn/alljoyn_core/daemon/AllJoynObj.h:377: error: ISO C++ forbids declaration of 'GUID' with no type
external/alljoyn/alljoyn_core/daemon/AllJoynObj.h:377: error: invalid use of '::'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.h:377: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc: In constructor 'ajn::AllJoynObj::AllJoynObj(ajn::Bus&)':
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:83: error: class 'ajn::AllJoynObj' does not have any field named 'guid'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:83: error: 'class ajn::BusAttachment::Internal' has no member named 'GetGlobalGUID'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc: In member function 'QStatus ajn::AllJoynObj::AddBusToBusEndpoint(ajn::RemoteEndpoint&)':
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:1922: error: 'class ajn::RemoteEndpoint' has no member named 'GetRemoteGUID'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc: In member function 'QStatus ajn::AllJoynObj::ExchangeNames(ajn::RemoteEndpoint&)':
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:2012: error: 'class ajn::RemoteEndpoint' has no member named 'GetRemoteGUID'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc: In member function 'void ajn::AllJoynObj::ExchangeNamesSignalHandler(const ajn::InterfaceDescription::Member*, const char*, ajn::Message&)':
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:2091: error: 'guid' was not declared in this scope
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:2146: error: 'class ajn::RemoteEndpoint' has no member named 'GetRemoteGUID'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:2146: error: 'class ajn::RemoteEndpoint' has no member named 'GetRemoteGUID'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc: In member function 'void ajn::AllJoynObj::NameChangedSignalHandler(const ajn::InterfaceDescription::Member*, const char*, ajn::Message&)':
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:2171: error: 'guid' was not declared in this scope
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:2223: error: 'class ajn::RemoteEndpoint' has no member named 'GetRemoteGUID'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:2223: error: 'class ajn::RemoteEndpoint' has no member named 'GetRemoteGUID'
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc: In member function 'virtual void ajn::AllJoynObj::NameOwnerChanged(const qcc::String&, const qcc::String*, const qcc::String*)':
external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:2302: error: 'guid' was not declared in this scope
make: *** [out/target/product/generic/obj/EXECUTABLES/alljoyn-daemon_intermediates/daemon/AllJoynObj.o] Error 1
...全文
349 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
小鸡会游泳 2013-12-22
  • 打赏
  • 举报
回复
来学习学习,求进步。。。
liujian306492275 2013-12-22
  • 打赏
  • 举报
回复
看你环境配置的有问题,还需要很多依赖的类库没安装。
happyLife002 2013-12-22
  • 打赏
  • 举报
回复
看你环境配置的有问题,还需要很多依赖的类库没安装。
passself 2013-09-05
  • 打赏
  • 举报
回复
http://blog.csdn.net/ithomer/article/details/6977386 先按这上面的安装,再编译,你应该少很多东西,报错了就好找了

80,362

社区成员

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

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