-
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
Native compile on arm gives me "libavutil/avutil.h": File does not exist" #322
Comments
Make sure to specify manually the platform as per the guide here:
https://github.com/bytedeco/javacpp-presets/wiki/Build-Environments#linux-arm
|
Hi I am not tying to cross compile, I am trying to compile directly on the TK1. |
Yes, please try anyway. Platform detection has not been tested for Linux on ARM.
|
@vb216 Any comments about this? |
Cool board, not seen that one before. Will take a look.. I did have in mind, that it could be a good idea to rework the armhf build so that it would compile natively on arm and have some aliases/symlinks in the cross compile docker so that the same build carries on working there too |
Getting there.. so far only real changes have been to ffmpeg cppbuild.sh. OpenBLAS took a long time to build, and spotted something up with the flags - multiple definitions of march and mfpu, looks like it picks up both definitions of platform.compiler.fastfpu and platform.compiler.default ? It's not a problem as such as still builds, just seems odd and less certainty over which are definitely going to be used [INFO] g++ -I/home/pi/javacpp-presets/openblas/cppbuild/linux-armhf/include/ -I/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/include -I/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/include/linux /home/pi/javacpp-presets/openblas/target/classes/org/bytedeco/javacpp/jniopenblas.cpp -march=armv6 -mfpu=vfp -mfloat-abi=hard -O3 -s -march=armv7-a -mfpu=neon -mfloat-abi=hard -ffast-math -Wl,-rpath,$ORIGIN/ -Wl,-z,noexecstack -Wl,-Bsymbolic -Wall -fPIC -shared -o libjniopenblas.so -L/home/pi/javacpp-presets/openblas/cppbuild/linux-armhf/lib/ -Wl,-rpath,/home/pi/javacpp-presets/openblas/cppbuild/linux-armhf/lib/ -lopenblas |
* Fix FFmpeg builds on ARM when not using a cross compiler (issue #322)
Should build natively on Arm (hard float) OK now, I've tested it on a Pi3 here: You might need to add some swap depending on how much memory you have, for openblas needs around 2GB it seems, and add in the usual dependencies. I need to update the wiki build instructions, as you can now either grab the public docker image and cross compile straight away, or add required build tools and libs and build native now. |
Fix included in version 1.3, enjoy! Thanks for the fix @vb216 :) |
Hi,
I'm trying to do a native ARM build on a Jetson TK1, bt I can't get around the error:
even though libavutil/avutil.h is clearly under the ffmpeg directory.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: