RandyGaul / cute_framework

The *cutest* framework out there for creating 2D games in C++!
https://randygaul.github.io/cute_framework/#/
Other
534 stars 31 forks source link

Does not compile on ARM Ubuntu #167

Closed pusewicz closed 3 months ago

pusewicz commented 3 months ago
In file included from /home/piotr/Work/GitHub/cute_framework/src/cute_audio.cpp:25:
/home/piotr/Work/GitHub/cute_framework/libraries/cute/cute_sound.h:728:18: fatal error: xmmintrin.h: No such file or directory
  728 |         #include <xmmintrin.h>
      |                  ^~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/cute.dir/build.make:104: CMakeFiles/cute.dir/src/cute_audio.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:684: CMakeFiles/cute.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Possible fix: https://github.com/darktable-org/darktable/commit/d10c290fb3b47bbc8fd90d6d1d7935b900c1caf6

RandyGaul commented 3 months ago

ARM intrinsics aren't supported. You can define CUTE_SOUND_SCALAR_MODE to get it compiling in scalar mode instead. I'm open to PR to include some macros to sneak in this define within cute_audio.cpp for compilers/platforms that don't support SSE.