-
Notifications
You must be signed in to change notification settings - Fork 751
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
Build FFmpeg for Android without GCC #562
Comments
only arm fails p.s. last lines from
it says My OS: Linux 64 (Ubuntu 18.0), NDK: v17 |
solved I have to use NDK r15c instead of r17 to build for arm, though r17 works ok for other archs |
Well, let's keep that opened since Google will apparently be removing GCC from in NDK r18:
https://github.com/android-ndk/ndk/wiki/Changelog-r17 So we'll need to figure out something for that eventually. |
Is there a solution for this on NDK r17? I'm getting the same issue with a javacpp project im working on. the 64bit armv8 builds fine, but the armv-7a fails with this error |
@zkrige these building scripts are supposed to work with NDK 15, no one at that time tested/optimized them for newer version of NDK, there is no need to downvote my comments, have some respect |
It's done! Now all presets for Android get built with Clang from NDK r18b: http://bytedeco.org/builds/ |
There is no Gradle build for Android, if that's what you mean. It wouldn't be portable to any other platform, so I'm not going to spend time on this personally, but as usual contributions are welcome! Please send a pull request. |
@saudet I see you have changed minimum API version from 14 to 21 in the script (for 32 cpu architectures) 9f279b6#diff-1e00f893b0beb998acb8357f4f0163a1R35 |
It might work, yes, could you give it a try? We need to cut somewhere at some point, so unless there is a good reason to not do it now, might as well be now. It only creates more maintenance for me to adjust the builds all the time, but again, if you have time to spend on this, any and all contributions are welcome! |
Tested with script from https://github.com/IljaKosynkin/FFmpeg-Development-Kit to Build FFmpeg 4.0.3 I can't get it work on my KitKat device (19 API, on Marshmallow (23 API, The tiny script to build FFmpeg 4.0.3 with Clang:
|
Well, version 1.4.4 has been released and it requires Android 5.0. I'm assuming use of KitKat has dropped dramatically over the holidays, so I'm not concerned about that :) |
I edited https://github.com/bytedeco/javacpp-presets/blob/master/ffmpeg/cppbuild.sh script a little bit to build FFmpeg without x264/265 and other extra libs:
build works fine for arm64
but for just arm (armv7a) I get an error:
The text was updated successfully, but these errors were encountered: