-
Notifications
You must be signed in to change notification settings - Fork 566
Android toolchain files in log4cplus are obsolete #283
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
Comments
There is a directory |
Thanks, I'll check that. |
No, I got almost same errors when running the script. I did define ANDROID_NDK. But it seems something is still missing. It does not work out-of-the box. I'll try to investigate this. I wonder if you could try this in Linux at some point ? It's only one script |
I updated cmake from 3.0 to 3.9 but still errors:
|
Looks like cmake has capability to build for Android: https://cmake.org/cmake/help/v3.7/manual/cmake-toolchains.7.html#cross-compiling-for-android |
Ok, I have succeeded in compiling with latest NDK-r15c. The toolchain in log4cplus/android directory supports only NDK up to r10. That's why I get strange errors. For newer NDK simply use toolchain file from NDK like this. You also need cmake version >= 3.6
... produces this kind of compiler flags:
if you want more options for Android build you can check them from toolchain file. This can be closed. I guess it would be easy to update current scripts to use this way presented here for all targets. Also maybe some comment about this in the readme would be good to avoid same problem for someone else.. Under Cygwin + MinGW this seems to work:
|
Is the CMake toolchain file for Android now obsolete since Android ships its own variant of it? If it is, we could document this fact and add a note for older Android users that they still can use the one we ship on their platforms. |
Yes, it seems so. You have to find older android sdk to make it build with what is currently included here in log4cplus. |
So, what do we do about this? |
Ping. |
Remove obsolete Android build support directory. Closes #283.
I have removed the entire directory. I assume anyone interested in building log4cplus for Android know what he is doing. |
I'm trying to build log4cplus for Android. It would be really great to make it easy to build for Android too because this is the best logging library there is..
I'm working with Linux environment and I've read instruction from /android/android.toolchain.cmake
The text was updated successfully, but these errors were encountered: