-
Notifications
You must be signed in to change notification settings - Fork 171
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
Can't build the .so files #9
Comments
Hello @catalin-florescu ,
I don't see any path before /toolchains, so I guess you didn't define the ANDROID_NDK_HOME environment variable. Please make sure you have defined it with the value of the actual path to your Android NDK. |
Thanks for this quick reply. Update |
@catalin-florescu , well, you can do this and it should work. |
@catalin-florescu Could you please check the path to your NDK? I mean there is a 'ndk' directory in Android SDK, but it isn't the NDK itself. In my case, for example, the actual path to NDK is '/Users/javernaut/Library/Android/sdk/ndk/20.0.5594570'. When it is done and you still have the error, please post the log again. Just want to see the path used for the C compiler. Update So I'm 99% sure your problem is in the ANDROID_NDK_HOME. You either set it to the wrong directory or the script doesn't see it for some reason. |
Yes, it is. Is from Android Studio. My path is The logs are the same from above. Nothing changed. Should display the full path instead of Did you downloaded separately or comes with Android Studio? |
I've installed it from Android Studio, but not the 'NDK bundle' version. I installed the 'NDK (Side-by-side)' |
I've downloaded the NDK separately. Now it works! You can specify in documentation to have the NDK Side-by-side version or separately, not the bundle. |
@catalin-florescu , actually long ago I used the NDK bundle installed from Android Studio and it worked fine. However, nice that you managed to setup everything correctly. I consider this issue is resolved. |
Well, |
@catalin-florescu , interesting. Let me check it out. |
None of them |
|
@catalin-florescu , FYI you can save some time building the FFmpeg only for 1 architecture (for testing purposes). For that you can temporary comment 3 of 4 lines that call
You can find it in the very bottom of the ffmpeg-android-maker.sh file. |
I haven't changed other things than NDK_HOME. |
user1@NOTEBOOK-TOxLEc:.../StudioProjects/WhatTheCodec/ffmpeg-android-maker$ ./ffmpeg-android-maker.sh -dav1d user1@NOTEBOOK-TOxLEc:.../StudioProjects/WhatTheCodec/ffmpeg-android-maker$ echo $ANDROID_NDK_HOME this is done with wsl windows |
@lectricas , seems like you don't have |
thanks for such a quick reply. I've just manage to successuly build and run WhatThatCodec using docker. Seems like everything is working fine. Thank you |
@lectricas you are welcome. Also nice to hear the Docker image is useful :) |
Hello,
I've tried to build the .so files using terminal, but i get some errors. I'm not so sure where is the problem, but i think is from my NDK.
The NDK comes from Android Studio.
Here is the logs (can't format logs, sorry):
Using FFmpeg 4.2
/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi16-clang is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:94: /libavutil/Makefile: No such file or directory
Makefile:94: /ffbuild/library.mak: No such file or directory
Makefile:96: /fftools/Makefile: No such file or directory
Makefile:97: /doc/Makefile: No such file or directory
Makefile:98: /doc/examples/Makefile: No such file or directory
Makefile:163: /tests/Makefile: No such file or directory
make: *** No rule to make target
/tests/Makefile'. Stop. Makefile:2: ffbuild/config.mak: No such file or directory Makefile:40: /tools/Makefile: No such file or directory Makefile:41: /ffbuild/common.mak: No such file or directory Makefile:94: /libavutil/Makefile: No such file or directory Makefile:94: /ffbuild/library.mak: No such file or directory Makefile:96: /fftools/Makefile: No such file or directory Makefile:97: /doc/Makefile: No such file or directory Makefile:98: /doc/examples/Makefile: No such file or directory Makefile:163: /tests/Makefile: No such file or directory make: *** No rule to make target
/tests/Makefile'. Stop.Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:94: /libavutil/Makefile: No such file or directory
Makefile:94: /ffbuild/library.mak: No such file or directory
Makefile:96: /fftools/Makefile: No such file or directory
Makefile:97: /doc/Makefile: No such file or directory
Makefile:98: /doc/examples/Makefile: No such file or directory
Makefile:163: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
./ffmpeg-android-maker.sh: line 197: /toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-readelf: No such file or directory
cp: /Users/catalin/Downloads/ffmpeg-android-maker-master/build/armeabi-v7a/lib/*.so: No such file or directory
/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android21-clang is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:94: /libavutil/Makefile: No such file or directory
Makefile:94: /ffbuild/library.mak: No such file or directory
Makefile:96: /fftools/Makefile: No such file or directory
Makefile:97: /doc/Makefile: No such file or directory
Makefile:98: /doc/examples/Makefile: No such file or directory
Makefile:163: /tests/Makefile: No such file or directory
make: *** No rule to make target
/tests/Makefile'. Stop. Makefile:2: ffbuild/config.mak: No such file or directory Makefile:40: /tools/Makefile: No such file or directory Makefile:41: /ffbuild/common.mak: No such file or directory Makefile:94: /libavutil/Makefile: No such file or directory Makefile:94: /ffbuild/library.mak: No such file or directory Makefile:96: /fftools/Makefile: No such file or directory Makefile:97: /doc/Makefile: No such file or directory Makefile:98: /doc/examples/Makefile: No such file or directory Makefile:163: /tests/Makefile: No such file or directory make: *** No rule to make target
/tests/Makefile'. Stop.Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:94: /libavutil/Makefile: No such file or directory
Makefile:94: /ffbuild/library.mak: No such file or directory
Makefile:96: /fftools/Makefile: No such file or directory
Makefile:97: /doc/Makefile: No such file or directory
Makefile:98: /doc/examples/Makefile: No such file or directory
Makefile:163: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
./ffmpeg-android-maker.sh: line 197: /toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android-readelf: No such file or directory
cp: /Users/catalin/Downloads/ffmpeg-android-maker-master/build/arm64-v8a/lib/*.so: No such file or directory
/toolchains/llvm/prebuilt/darwin-x86_64/bin/i686-linux-android16-clang is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:94: /libavutil/Makefile: No such file or directory
Makefile:94: /ffbuild/library.mak: No such file or directory
Makefile:96: /fftools/Makefile: No such file or directory
Makefile:97: /doc/Makefile: No such file or directory
Makefile:98: /doc/examples/Makefile: No such file or directory
Makefile:163: /tests/Makefile: No such file or directory
make: *** No rule to make target
/tests/Makefile'. Stop. Makefile:2: ffbuild/config.mak: No such file or directory Makefile:40: /tools/Makefile: No such file or directory Makefile:41: /ffbuild/common.mak: No such file or directory Makefile:94: /libavutil/Makefile: No such file or directory Makefile:94: /ffbuild/library.mak: No such file or directory Makefile:96: /fftools/Makefile: No such file or directory Makefile:97: /doc/Makefile: No such file or directory Makefile:98: /doc/examples/Makefile: No such file or directory Makefile:163: /tests/Makefile: No such file or directory make: *** No rule to make target
/tests/Makefile'. Stop.Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:94: /libavutil/Makefile: No such file or directory
Makefile:94: /ffbuild/library.mak: No such file or directory
Makefile:96: /fftools/Makefile: No such file or directory
Makefile:97: /doc/Makefile: No such file or directory
Makefile:98: /doc/examples/Makefile: No such file or directory
Makefile:163: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
./ffmpeg-android-maker.sh: line 197: /toolchains/llvm/prebuilt/darwin-x86_64/bin/i686-linux-android-readelf: No such file or directory
cp: /Users/catalin/Downloads/ffmpeg-android-maker-master/build/x86/lib/*.so: No such file or directory
/toolchains/llvm/prebuilt/darwin-x86_64/bin/x86_64-linux-android21-clang is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:94: /libavutil/Makefile: No such file or directory
Makefile:94: /ffbuild/library.mak: No such file or directory
Makefile:96: /fftools/Makefile: No such file or directory
Makefile:97: /doc/Makefile: No such file or directory
Makefile:98: /doc/examples/Makefile: No such file or directory
Makefile:163: /tests/Makefile: No such file or directory
make: *** No rule to make target
/tests/Makefile'. Stop. Makefile:2: ffbuild/config.mak: No such file or directory Makefile:40: /tools/Makefile: No such file or directory Makefile:41: /ffbuild/common.mak: No such file or directory Makefile:94: /libavutil/Makefile: No such file or directory Makefile:94: /ffbuild/library.mak: No such file or directory Makefile:96: /fftools/Makefile: No such file or directory Makefile:97: /doc/Makefile: No such file or directory Makefile:98: /doc/examples/Makefile: No such file or directory Makefile:163: /tests/Makefile: No such file or directory make: *** No rule to make target
/tests/Makefile'. Stop.Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:94: /libavutil/Makefile: No such file or directory
Makefile:94: /ffbuild/library.mak: No such file or directory
Makefile:96: /fftools/Makefile: No such file or directory
Makefile:97: /doc/Makefile: No such file or directory
Makefile:98: /doc/examples/Makefile: No such file or directory
Makefile:163: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
./ffmpeg-android-maker.sh: line 197: /toolchains/llvm/prebuilt/darwin-x86_64/bin/x86_64-linux-android-readelf: No such file or directory
cp: /Users/catalin/Downloads/ffmpeg-android-maker-master/build/x86_64/lib/*.so: No such file or directory
./ffmpeg-android-maker.sh: line 225: cd: /Users/catalin/Downloads/ffmpeg-android-maker-master/build: No such file or directory
./ffmpeg-android-maker.sh: line 226: cd: .DS_Store: Not a directory
cp: include: No such file or directory
Thanks.
The text was updated successfully, but these errors were encountered: