build error 20210530

Submitted by slackstone on Sat, 05/29/2021 - 13:17

from /home/pi/supertux/src/addon/addon_manager.hpp:28, from /home/pi/supertux/src/addon/addon_manager.cpp:20: /usr/include/glm/gtx/type_trait.hpp:16:3: error: #error "GLM: GLM_GTX_type_trait is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." # error "GLM: GLM_GTX_type_trait is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." ^~~~~ In file included from /usr/include/glm/gtx/type_trait.hpp:22, from /usr/include/glm/gtx/io.inl:7, from /usr/include/glm/gtx/io.hpp:201, from /home/pi/supertux/src/math/vector.hpp:25, from /home/pi/supertux/src/supertux/gameconfig.hpp:25, from /home/pi/supertux/src/addon/addon_manager.hpp:28, from /home/pi/supertux/src/addon/addon_manager.cpp:20: /usr/include/glm/gtx/dual_quaternion.hpp:24:3: error: #error "GLM: GLM_GTX_dual_quaternion is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." # error "GLM: GLM_GTX_dual_quaternion is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." ^~~~~ make[2]: *** [CMakeFiles/supertux2_lib.dir/build.make:77: CMakeFiles/supertux2_lib.dir/src/addon/addon_manager.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:117: CMakeFiles/supertux2_lib.dir/all] Error 2 make: *** [Makefile:152: all] Error 2


PER mrkubax10#7043:

for now this can be added:

#if defined(arm) && !defined(ANDROID) #define GLM_ENABLE_EXPERIMENTAL #endif