-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glog can't be compiled using Android NDK r16 #306
Comments
Adding -DANDROID_PLATFORM="android-21" solves it. |
@daquexian Do you know why there is no glog output in logcat of android studio when debugging native code? |
@knsong glog print logs to stdout or a log file instead of android logcat. For android logcat support you can try https://github.com/tzutalin/miniglog |
@daquexian thanks! |
[Adding -DANDROID_PLATFORM="android-21" solves it.] |
When glog is built by Android NDK r15 or r14, there will be an error
undefined reference to 'stderr'
(like this issue) when glog is built as static library and linked to other programs. Please refer to this document. As shown in above document, this error can be avoided by adding a specific flag. But in Android NDK r16 there is no such flag. So glog can't be built by NDK r16.Are there any ways to solve it?
The text was updated successfully, but these errors were encountered: