humeman / openauto-patched-installer

Installer for openauto which patches various issues with newer GooglePlayServices/touchscreen/device detection/compilation issues.
21 stars 23 forks source link

compile error in ubuntu LTS 16.04 #2

Open sduzzw opened 4 years ago

sduzzw commented 4 years ago

when i compile this project in ubuntu 16.04 LTS,the following error occured。 [ 82%] Built target aasdk_proto Scanning dependencies of target aasdk [ 82%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/MessageInStream.cpp.o [ 82%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/FrameSize.cpp.o [ 83%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/Message.cpp.o [ 83%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/ChannelReceiveMessageQueue.cpp.o In file included from /usr/include/c++/5/bits/hashtable.h:35:0, from /usr/include/c++/5/unordered_map:47, from /home/ubuntuer/aasdk/include/f1x/aasdk/Messenger/ChannelReceiveMessageQueue.hpp:21, from /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:19: /usr/include/c++/5/bits/hashtable_policy.h: In instantiation of ‘struct std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash >’: /usr/include/c++/5/type_traits:137:12: required from ‘struct std::and_<std::is_fast_hash<std::hash >, std::detail::__is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > >’ /usr/include/c++/5/type_traits:148:38: required from ‘struct std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::__is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ /usr/include/c++/5/bits/unordered_map.h:100:66: required from ‘class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::shared_ptr > >’ /home/ubuntuer/aasdk/include/f1x/aasdk/Messenger/ChannelReceiveMessageQueue.hpp:43:49: required from here /usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call to ‘(const std::hash) (const f1x::aasdk::messenger::ChannelId&)’ noexcept(declval<const _Hash&>()(declval<const _Key&>()))> ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/utility:70, from /usr/include/c++/5/unordered_map:38, from /home/ubuntuer/aasdk/include/f1x/aasdk/Messenger/ChannelReceiveMessageQueue.hpp:21, from /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:19: /usr/include/c++/5/type_traits: In instantiation of ‘struct std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’: /usr/include/c++/5/bits/unordered_map.h:100:66: required from ‘class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::shared_ptr > >’ /home/ubuntuer/aasdk/include/f1x/aasdk/Messenger/ChannelReceiveMessageQueue.hpp:43:49: required from here /usr/include/c++/5/type_traits:148:38: error: ‘value’ is not a member of ‘std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > >’ : public integral_constant<bool, !_Pp::value> ^ In file included from /usr/include/c++/5/unordered_map:48:0, from /home/ubuntuer/aasdk/include/f1x/aasdk/Messenger/ChannelReceiveMessageQueue.hpp:21, from /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:19: /usr/include/c++/5/bits/unordered_map.h: In instantiation of ‘class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::shared_ptr > >’: /home/ubuntuer/aasdk/include/f1x/aasdk/Messenger/ChannelReceiveMessageQueue.hpp:43:49: required from here /usr/include/c++/5/bits/unordered_map.h:100:66: error: ‘value’ is not a member of ‘std::not_<std::_and<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; ^ /usr/include/c++/5/bits/unordered_map.h:107:45: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::key_type key_type; ^ /usr/include/c++/5/bits/unordered_map.h:108:47: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::value_type value_type; ^ /usr/include/c++/5/bits/unordered_map.h:109:48: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::mapped_type mapped_type; ^ /usr/include/c++/5/bits/unordered_map.h:110:43: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::hasher hasher; ^ /usr/include/c++/5/bits/unordered_map.h:111:46: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::key_equal key_equal; ^ /usr/include/c++/5/bits/unordered_map.h:112:51: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::allocator_type allocator_type; ^ /usr/include/c++/5/bits/unordered_map.h:117:45: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::pointer pointer; ^ /usr/include/c++/5/bits/unordered_map.h:118:50: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::const_pointer const_pointer; ^ /usr/include/c++/5/bits/unordered_map.h:119:47: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::reference reference; ^ /usr/include/c++/5/bits/unordered_map.h:120:52: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::const_reference const_reference; ^ /usr/include/c++/5/bits/unordered_map.h:121:46: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::iterator iterator; ^ /usr/include/c++/5/bits/unordered_map.h:122:51: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::const_iterator const_iterator; ^ /usr/include/c++/5/bits/unordered_map.h:123:51: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::local_iterator local_iterator; ^ /usr/include/c++/5/bits/unordered_map.h:124:57: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::const_local_iterator const_local_iterator; ^ /usr/include/c++/5/bits/unordered_map.h:125:47: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::size_type size_type; ^ /usr/include/c++/5/bits/unordered_map.h:126:52: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ typedef typename _Hashtable::difference_type difference_type; ^ /usr/include/c++/5/bits/unordered_map.h:280:7: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ operator=(initializer_list l) ^ /usr/include/c++/5/bits/unordered_map.h:379:2: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::__is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ emplace(_Args&&... args) ^ /usr/include/c++/5/bits/unordered_map.h:432:7: error: ‘value’ is not a member of ‘std::not_<std::_and<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ insert(const value_type& x) ^ /usr/include/c++/5/bits/unordered_map.h:439:2: error: ‘value’ is not a member of ‘std::_not<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ insert(_Pair&& __x) ^ /usr/include/c++/5/bits/unordered_map.h:499:7: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ insert(initializer_list l) ^ /usr/include/c++/5/bits/unordered_map.h:645:7: error: ‘value’ is not a member of ‘std::not_<std::and_<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ equal_range(const key_type& x) ^ /usr/include/c++/5/bits/unordered_map.h:649:7: error: ‘value’ is not a member of ‘std::not_<std::_and<std::is_fast_hash<std::hash >, std::detail::is_noexcept_hash<f1x::aasdk::messenger::ChannelId, std::hash > > >’ equal_range(const key_type& x) const ^ /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp: In member function ‘void f1x::aasdk::messenger::ChannelReceiveMessageQueue::push(f1x::aasdk::messenger::Message::Pointer)’: /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:32:15: error: ‘class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::sharedptr > >’ has no member named ‘count’ if(queue.count(channelId) == 0) ^ /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:34:16: error: ‘class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::sharedptr > >’ has no member named ‘emplace’ queue.emplace(std::make_pair(channelId, MessageQueue())); ^ /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:37:33: error: ‘class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::sharedptr > >’ has no member named ‘at’ auto& channelQueue = queue.at(channelId); ^ /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp: In member function ‘f1x::aasdk::messenger::Message::Pointer f1x::aasdk::messenger::ChannelReceiveMessageQueue::pop(f1x::aasdk::messenger::ChannelId)’: /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:43:33: error: ‘class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::sharedptr > >’ has no member named ‘at’ auto& channelQueue = queue.at(channelId); ^ /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:49:16: error: ‘class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::sharedptr > >’ has no member named ‘erase’ queue.erase(channelId); ^ /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp: In member function ‘bool f1x::aasdk::messenger::ChannelReceiveMessageQueue::empty(f1x::aasdk::messenger::ChannelId) const’: /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:57:19: error: ‘const class std::unordered_map<f1x::aasdk::messenger::ChannelId, std::queue<std::sharedptr > >’ has no member named ‘count’ return queue.count(channelId) == 0; ^ In file included from /usr/include/c++/5/unordered_map:48:0, from /home/ubuntuer/aasdk/include/f1x/aasdk/Messenger/ChannelReceiveMessageQueue.hpp:21, from /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:19: /usr/include/c++/5/bits/unordered_map.h: In instantiation of ‘void std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::clear() [with _Key = f1x::aasdk::messenger::ChannelId; _Tp = std::queue<std::shared_ptr >; _Hash = std::hash; _Pred = std::equal_to; _Alloc = std::allocator<std::pair<const f1x::aasdk::messenger::ChannelId, std::queue<std::shared_ptr > > >]’: /home/ubuntuer/aasdk/src/Messenger/ChannelReceiveMessageQueue.cpp:62:18: required from here /usr/include/c++/5/bits/unordered_map.h:568:9: error: using invalid field ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::_M_h’ { _M_h.clear(); } ^ CMakeFiles/aasdk.dir/build.make:134: recipe for target 'CMakeFiles/aasdk.dir/src/Messenger/ChannelReceiveMessageQueue.cpp.o' failed make[2]: [CMakeFiles/aasdk.dir/src/Messenger/ChannelReceiveMessageQueue.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/aasdk.dir/all' failed make[1]: [CMakeFiles/aasdk.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: [all] Error 2 [OAInstaller] ERROR: Couldn't build AASDK! [OAInstaller] If necessary, report this under the Issues tab on the installer github at https://github.com/humeman/openauto-patched-installer.

humeman commented 4 years ago

Seems to be an issue exclusively with Ubuntu 16.04. Not sure what in specific, but others have reported that upgrading to 17.10 or later fixes this. Will look into it further in a bit.