-
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
building ffmpeg for android on Mac fails for LAME, SPEEX and OPENCORE_AMR #133
Comments
Should be fixed in this commit: 85dcf0b Thanks for reporting! |
Thank you Samuel, I've tried with your commits and it does make some progress but eventually it still fails to build with the above command when it gets to LAME in ffmpeg. The error is different though:
|
Looks like we'll need to redirect |
Okay thank you for the great fix, it's finished ffmpeg successfully, but it still can't finish the entire build. There's an fftw error this time. Should I open a new issue with this? In any case, here's the error log:
|
…causing errors under Mac OS X (issue #133)
Yes, there were a few issues left with that on Mac OS X. I think I've managed to fix everything, so check out the latest commit! Thanks for testing :) |
Awesome, thanks to the last commit it's done with fftw now and progressed even farther in the build, it's not finished yet though. Fails with leptonica:
|
Right, we need to make sure the |
Great, it goes without error till almost the last module, it fails at tesseract:
|
What is the error you get for |
Apologies, I meant to write fails *AFTER tesseract. For the last 3 modules, caffe, cuda and tensorflow, shows error 'android-arm is not supported'. Is this a build error or just a compatibility issue with armeabi? Anything we should/can do about this or should I just remove those modules for armeabi platform? |
@kristofgiber It just means that builds are not available. If you would like to contribute builds for those platforms, it would be most welcome! |
Okay but I'm still not at that stage apparently: even though my cppbuild.sh build finished correctly (except for the modules unavailable for android), when I run maven command
it fails with opencv with this error:
|
@kristofgiber Check the comments inside the |
Awesome, followed the comment instructions and it's completed everything. Thanks for all the help Samuel! As a short summary for anyone else trying to set up javacpp for android platform from complete scratch on Mac:
Install latest android NDK and Xcode
git clone https://github.com/bytedeco/javacpp.git cd javacpp mvn install cd ../javacpp-presets ANDROID_NDK=path_to_android_ndk/ bash cppbuild.sh -platform android-arm install mvn clean install -Dplatform=android-arm -Dplatform.root=path_to_android_ndk/ -Dplatform.compiler=path_to_arm-linux-androideabi-g++/arm-linux-androideabi-g++ Repeat last 2 commands for platform android-x86 as well. The jar files will be generated in the target folder of each module. |
@kristofgiber I've updated the wiki pages to update and clarify a few things, based on your comments. Let me know if you see anything else we could improve! Thanks |
Should all be fixed in version 1.2. Let me know if you still have issues with that. Thanks! |
I know about the similar issue #45 by IFDeveloper but that's been marked solved while none of the suggested solutions seem to work for me.
I run:
It goes through opencv with success but fails during ffmpeg with the following error:
Even if I remove LAME from the cppbuild.sh it gives the same error for SPEEX and OPENCORE_AMR. If I get rid of all 3, it finishes ffmpeg build but I need them later in the build process.
The text was updated successfully, but these errors were encountered: