GNOME Bugzilla – Bug 760008
orc/orcdebug.c:39:25: fatal error: android/log.h: No such file or directory
Last modified: 2015-12-30 22:57:48 UTC
orc fails to build because of automatic dependency detection. It detects Android llog on my system somehow, but then fails to compile of course, since I'm running Gentoo and not an android... Would be nice to have a configuration option --disable-android or --enable-android for configure. Reproducible: Always Steps to Reproduce: 1. just trying to compile orc with llog library provided on your system Actual Results: Build fails with missing header error Expected Results: Build succeeded
Where does this liblog come from on your system, what is it? It must also contain the symbol __android_log_print, otherwise configure wouldn't detect it. It would probably make sense to limit the usage of that to systems that have an Android specific host triplet.
Created attachment 318049 [details] [review] Patch to make android liblog optional Added --enable-android-log option to enable detection of android liblog.
Created attachment 318050 [details] [review] configure: Only check for Android's liblog on Android targets
Comment on attachment 318049 [details] [review] Patch to make android liblog optional This should come with some auto-detection if anything. I think it's better to just only ever use it for Android targets for now.
Attachment 318050 [details] pushed as e0d39f6 - configure: Only check for Android's liblog on Android targets
Sebastian, target-based detection is much better, I'm agree with you! In my case these symbols come from android ndk (I think) or some related tools for Android ROM manipulation. Can not tell more right now, but can dig for it later if it is important.
Well, it's mostly important for yourself :) That seems like a messed up system if you have random NDK libraries in your library path. It will probably cause problems elsewhere too.