error: 'asm/types.h' file not found for Android build with CMake 3.14.0 RC2 (RC1 was fine)
After installing CMake 3.14.0 RC2, I get this build error when building an Android library: android-ndk-r18b/sysroot/usr/include/linux/types.h:21:10: fatal error: 'asm/types.h' file not found
This happens on my Macbook and inside a docker container, which is defined in this repo: https://gitlab.com/ssrobins/docker-android-build Both environments use Android NDK r18b.
If I go back to CMake 3.14.0 RC1, I don't get the error.
To reproduce this, do the following:
- Either use the Dockerfile to set up the docker container defined here, https://gitlab.com/ssrobins/docker-android-build/blob/master/Dockerfile, or follow the install steps outlined in the Dockerfile on a Mac.
- git clone https://gitlab.com/ssrobins/sdl2-example.git
- From the main repo directory, run: sh ./build_android.sh. This will run cmake to generate the makefiles and do the build.