| Summary: | fatal error: 'cpu-features.h' file not found on CMake Android armeabi-v7a | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Steve Robinson <ssrobins> |
| Component: | build | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | davillal, sylvain.becker |
| Version: | 2.0.12 | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
| Attachments: | Patch for CMakeLists.txt | ||
(In reply to Steve Robinson from comment #0) > Created attachment 4313 [details] > Patch for CMakeLists.txt > > When building SDL 2.0.12 with CMake Android armeabi-v7a ABI, I get this > error: > SDL_cpuinfo.c:89:10: fatal error: 'cpu-features.h' file not found > > Android arm64-v8a works fine. > > I've attached a patch to the CMakeLists.txt file that adds source file and > include directory references to get it building. > > Environment: > CMake: 3.17.1 > Android NDK: r21 > macOS: 10.15.4 I had the same problem, this fixed it for me. Thank you very much! This seems fair. Just added: https://hg.libsdl.org/SDL/rev/f1127e895e08 Thanks! Confirmed fixed in SDL 2.0.14, thanks! |
Created attachment 4313 [details] Patch for CMakeLists.txt When building SDL 2.0.12 with CMake Android armeabi-v7a ABI, I get this error: SDL_cpuinfo.c:89:10: fatal error: 'cpu-features.h' file not found Android arm64-v8a works fine. I've attached a patch to the CMakeLists.txt file that adds source file and include directory references to get it building. Environment: CMake: 3.17.1 Android NDK: r21 macOS: 10.15.4