fatal error: 'machine/asm.h' file not found

111 views
Skip to first unread message

rahil ali

unread,
May 27, 2019, 1:43:19 PM5/27/19
to android-ndk
After upgrading NDK from android-ndk-r11c to android-ndk-r19c found fatal error: 'machine/asm.h' file not found during compilation.

Steven Winston

unread,
May 28, 2019, 4:27:48 PM5/28/19
to android-ndk
You likely need to set the isystem flag correctly for your architecture path. I'm other words something close to this:
-isystem …/ndk-bundle/sysroot/usr/include/arm-linux-androideabi

Or, ya know, easy method, use the Gradle Android cmake plugin. Android studio does this by default.

Dan Albert

unread,
Jun 3, 2019, 7:48:45 PM6/3/19
to android-ndk
For anyone else that lands here, the answer is on https://github.com/android-ndk/ndk/issues/989

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/be5fa455-a259-432f-8356-aa47ee17cbab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages