android源码编译错误 :源码编译AllJoynObj.o的问题
郁闷啊,今年三月份下载源码后编译也是遇到这个问题,当时放弃解决了。。。。这阵子各种需求,继续下载源码编译,结果还是遇到这个问题。。。这个AllJoynObj.o的问题困扰了半年啦。。。悲剧啊啊。。还没得到解决。。哪位大哥大姐编译源码有木有遇到这个问题啊。。。之前先装那些软件的时候
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:i386Ubuntu是32位的,有些东西按照上面装的时候提示找不到对应package。。几个下载不到也没去理会。。。gcc也降到4.4.7版本。。。大体情况就是这样啦。。。下面具体错误:
target Non-prelinked: acc (out/target/product/generic/symbols/system/bin/acc)
target thumb C++: alljoyn-daemon <= external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc
In file included from external/alljoyn/common/inc/qcc/StringMapKey.h:30,
from external/alljoyn/alljoyn_core/src/LocalTransport.h:34,
from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:33,
from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:47:
external/alljoyn/common/inc/qcc/STLContainer.h:29:24: error: ext/hash_map: No such file or directory
external/alljoyn/common/inc/qcc/STLContainer.h:30:24: error: ext/hash_set: No such file or directory
In file included from external/alljoyn/alljoyn_core/src/LocalTransport.h:34,
from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:33,
from external/alljoyn/alljoyn_core/daemon/AllJoynObj.cc:47:
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 in this scope
external/alljoyn/alljoyn_core/src/KeyStore.h: In member function 'qcc::String ajn::KeyStore::GetGuid()':
external/alljoyn/alljoyn_core/src/KeyStore.h:173: error: 'thisGuid' was not declared in this scope
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::Inte易做图ceDescription::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::Inte易做图ceDescription::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 --------------------编程问答-------------------- gcc降到4.4.3版本或者以下 --------------------编程问答-------------------- 话了阵力气下载了gcc3.4和gcc4.4.3...结果还是报了这个错。。。。还有没有方法啊啊。。。。。。多谢啦。。。 --------------------编程问答-------------------- 话了阵力气下载了gcc3.4和gcc4.4.3...结果还是报了这个错。。。。还有没有方法啊啊。。。。。。多谢啦。。。 --------------------编程问答-------------------- 这个问题怎么解决呀!我也遇到了呀! --------------------编程问答-------------------- 哇,原来高通除了做系统芯片,移动开发技术也很强大啊,特别是扩增实境Vuforia,手机图形优化Adreno, 点对点Alljoyn对开发者来说真给力。期待更多的新技术 --------------------编程问答-------------------- 好像很厉害的样子 --------------------编程问答-------------------- 这个问题怎么解决呀!我也遇到了呀 --------------------编程问答-------------------- 好像很厉害的样子
补充:移动开发 , Android