46
SFML projects / Re: Feather Kit - A C++ Game Framework
« on: October 08, 2014, 03:17:13 pm »
I've got an error when I build the lib :
/featherkit/src/entity/glmtypeadder.cpp:40:20: error: ‘u64vec2’ is not a member of ‘glm’
return glm::u64vec2(static_cast<uint64_t>(std::stoul(params[0])), static_cast<uint64_t>(std::stoul(params[1])));
^
I've the last libglm version available in Ubuntu packages.
Edit: the same with all u64vecX and i64vecX, I replaced them by their rightfull name : uvecX and ivecX and it solved these errors.
But I've got another error :
/featherkit/src/rendering/quad.cpp:6:37: error: converting to ‘const vec2 {aka const glm::detail::tvec2<float>}’ from initializer list would use explicit constructor ‘glm::detail::tvec2<T>::tvec2(const value_type&, const value_type&) [with T = float; glm::detail::tvec2<T>::value_type = float]’
Quad::Quad() : Quad({2.0f, 2.0f})
along with some other initializer errors that I corrected in the sources (switch from init. list to constructors) and it worked
/featherkit/src/entity/glmtypeadder.cpp:40:20: error: ‘u64vec2’ is not a member of ‘glm’
return glm::u64vec2(static_cast<uint64_t>(std::stoul(params[0])), static_cast<uint64_t>(std::stoul(params[1])));
^
I've the last libglm version available in Ubuntu packages.
Edit: the same with all u64vecX and i64vecX, I replaced them by their rightfull name : uvecX and ivecX and it solved these errors.
But I've got another error :
/featherkit/src/rendering/quad.cpp:6:37: error: converting to ‘const vec2 {aka const glm::detail::tvec2<float>}’ from initializer list would use explicit constructor ‘glm::detail::tvec2<T>::tvec2(const value_type&, const value_type&) [with T = float; glm::detail::tvec2<T>::value_type = float]’
Quad::Quad() : Quad({2.0f, 2.0f})
along with some other initializer errors that I corrected in the sources (switch from init. list to constructors) and it worked