readium / readium-sdk

A C++ ePub renderer SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Android NDK sysroot/usr/include/[arm-linux-androideabi]

danielweck opened this issue · comments

Once Android Studio updates the NDK and build tool dependencies, the readium-sdk build fails. This is because the headers are now centralized in sysroot/usr/include/[arm-linux-androideabi].
I have a working fix in the develop branch for Gradle experimental (NDK DSL), and I will include the additional include directives for Gradle stable (old-school Makefiles). This will have to be patched in the CMake scripts for readium-lcp-client too...

Note that the compiler failure actually occurs only with Gradle experimental (which launches the NDK build process via the Gradle DSL), whereas the Gradle stable build succeeds (traditional makefiles, direct invocation of the ndk-build command line from Gradle script).

Note that the CMake build in readium-lcp-client works, because NDK sysroot is automatically "mounted" to the includes.