Kodi Community Forum
configure: error: C preprocessor "/lib/cpp" fails sanity check - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184)
+---- Thread: configure: error: C preprocessor "/lib/cpp" fails sanity check (/showthread.php?tid=293565)

Pages: 1 2


RE: configure: error: C preprocessor "/lib/cpp" fails sanity check - paopao - 2016-10-18

Once I found out I could build on Ubuntu (actually, a docker image thereof), I gave up on Mac and put some energy into making a Dockerfile for specifying a reproducible build environment. It's just so boring diagnosing these stupid "works on my machine" issues. It doesn't help with the Mac issue, but it's a pretty good workaround.

Here it is: https://github.com/phillipao/kodi-for-android-build-env/blob/master/Dockerfile.

It's really just the package dependencies and the Android NDK and SDK. I had to add a couple packages to the list from README.android, because these base docker images are super minimal (it was missing file (the command), which caused make-custom-toolchain.sh to fail in hilarious awful ways). And I made some changes to reduce the size of the SDK and NDK on disk. But it's still big, coming in at 5GiB+. But...it works Smile


configure: error: C preprocessor "/lib/cpp" fails sanity check - Memphiz - 2016-10-18

And now we look forward to your kdi for android improvements Smile