-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with Clang5.0 (C ++ 17) #87
Comments
errors Error call to non-static member function without an object argument Library_RmlUi (Android\01_Library\Library_RmlUi) C:\dev\c\MMDAgent-1.4\Library_RmlUi\Include\RmlUi\Core\Containers\robin_hood.h 1344 |
ndk is std::align not supported fix plan ./Include/RmlUi/Core/Types.h |
std::hash<::Rml::Core::Character> need add. Now the build passes. `` template <> struct hash<::Rml::Core::Character> { inline void* align(std::size_t alignment, std::size_t size, |
Isn't gnustl_static deprecated in favor of c++_static? |
In my project, I built using gnustl_static because c ++ _ static did not have enough functions to build. |
I'm unable to test this, so please let me know if it works :) |
Build was OK. |
Great! |
Build error occurs in VisualStdio Android development environment.
The build is RMLUI_STATIC_LIB only
gnustl_static
Code I tentatively addressed
./Include/RmlUi/Core/Types.h
template <class T> struct hash { using utype = typename ::std::underlying_type<T>::type; size_t operator() (const T& t) const { ::std::hash<utype> h; return h(static_cast<utype>(t)); }
to
``
#ifdef ANDROID
template <> struct hash<::Rml::Core::PropertyId> {
using utype = typename ::std::underlying_type<::Rml::Core::PropertyId>::type;
size_t operator() (const ::Rml::Core::PropertyId& t) const { ::std::hash h; return h(static_cast(t)); }
#endif
``
The text was updated successfully, but these errors were encountered: