Android [Makefile:34: x86_64-linux-android-21-debug/.libs/libbluray.la] Error 2
#1
I'm using Ubuntu 20.04 LTS on Window 10

I'm following this https://github.com/xbmc/xbmc/blob/master...Android.md

Android SDK: commandlinetools-linux-7583922_latest

Android NDK: android-ndk-r21e-linux-x86_64

I use this configure:
./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=x86_64-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r21e --prefix=$HOME/android-tools/xbmc-depends

And I run:
make -j$(getconf _NPROCESSORS_ONLN)

Then I have an error here:

touch .installed-x86_64-linux-android-21-debug
make[2]: Leaving directory '/root/kodi/tools/depends/target/xz'
make -C python3
make[2]: Entering directory '/root/kodi/tools/depends/target/python3'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/kodi/tools/depends/target/python3'
make -C libshairplay
make[2]: Entering directory '/root/kodi/tools/depends/target/libshairplay'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/kodi/tools/depends/target/libshairplay'
make -C libfmt
make[2]: Entering directory '/root/kodi/tools/depends/target/libfmt'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/kodi/tools/depends/target/libfmt'
make -C libspdlog
make[2]: Entering directory '/root/kodi/tools/depends/target/libspdlog'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/kodi/tools/depends/target/libspdlog'
make -C libplist
make[2]: Entering directory '/root/kodi/tools/depends/target/libplist'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/kodi/tools/depends/target/libplist'
make -C libbluray
make[2]: Entering directory '/root/kodi/tools/depends/target/libbluray'
rm -rf x86_64-linux-android-21-debug; mkdir -p x86_64-linux-android-21-debug
cd x86_64-linux-android-21-debug; /usr/bin/tar --strip-components=1 -xf /root/android-tools/xbmc-tarballs/libbluray-1.1.2.tar.bz2

bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

/usr/bin/tar: Child returned status 2
/usr/bin/tar: Error is not recoverable: exiting now
make[2]: *** [Makefile:24: x86_64-linux-android-21-debug] Error 2
make[2]: Leaving directory '/root/kodi/tools/depends/target/libbluray'
make[1]: *** [Makefile:142: libbluray] Error 2
make[1]: Leaving directory '/root/kodi/tools/depends/target'
make: *** [Makefile:11: target/.installed-x86_64-linux-android-21-debug] Error 2


I tried 'make clean' target/libbluray but still have error.
Please have me! Thank you!
Reply
#2
a corrupt tarball by the looks of it.

Go into $HOME/android-tools/xbmc-tarballs and find libbluray-1.1.2.tar.bz2 and delete it. it'll download it fresh next run. Do a make distclean in tools/depends/target/libbluray as well just to be sure its clean.
Reply
#3
Thank you ^.^, it's worked, but I got another error while continue:
https://paste.kodi.tv/tivubecunu

When I try 'make clean' ffmpeg, it logs this error:
https://paste.kodi.tv/jexodajebi.kodi

Please help me, what should I do?
Reply
#4
Use make distclean for the problematic dependencies.
Then try to make again without the -j switch, worked for me several times already in the past.
Reply
#5
When I got this error I tried make distclean ffmpeg
Quote:make[2]: Entering directory '/root/kodi/tools/depends/target/dav1d'
cd x86_64-linux-android-21-debug/build; /root/android-tools/xbmc-depends/x86_64-linux-gnu-native/bin/ninja -v
[1/9] /usr/bin/meson --internal vcstagger ../include/vcs_version.h.in include/vcs_version.h 0.8.1 /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/include @VCS_TAG@ '(.*)' /usr/bin/git --git-dir /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/.git describe --tags --long --match '?.*.*' --always
fatal: not a git repository: '/root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/.git'
cd x86_64-linux-android-21-debug/build; /root/android-tools/xbmc-depends/x86_64-linux-gnu-native/bin/ninja -v install
[1/10] /usr/bin/meson --internal vcstagger ../include/vcs_version.h.in include/vcs_version.h 0.8.1 /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/include @VCS_TAG@ '(.*)' /usr/bin/git --git-dir /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/.git describe --tags --long --match '?.*.*' --always
fatal: not a git repository: '/root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/.git'
[1/2] /usr/bin/meson install --no-rebuild
Installing src/libdav1d.so.5.0.0 to /usr/local/lib/x86_64-linux-gnu
Installing tools/dav1d to /usr/local/bin
Installing /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/include/dav1d/common.h to /usr/local/include/dav1d
Installing /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/include/dav1d/data.h to /usr/local/include/dav1d
Installing /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/include/dav1d/dav1d.h to /usr/local/include/dav1d
Installing /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/include/dav1d/headers.h to /usr/local/include/dav1d
Installing /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/include/dav1d/picture.h to /usr/local/include/dav1d
Installing /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/build/include/dav1d/version.h to /usr/local/include/dav1d
Installing /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/build/meson-private/dav1d.pc to /usr/local/lib/x86_64-linux-gnu/pkgconfig
touch .installed-x86_64-linux-android-21-debug
make[2]: Leaving directory '/root/kodi/tools/depends/target/dav1d'
make -C ffmpeg
make[2]: Entering directory '/root/kodi/tools/depends/target/ffmpeg'
make -C x86_64-linux-android-21-debug
make[3]: Entering directory '/root/kodi/tools/depends/target/ffmpeg/x86_64-linux-android-21-debug'
Makefile:177: /tests/Makefile: No such file or directory
make[3]: *** No rule to make target '/tests/Makefile'. Stop.
make[3]: Leaving directory '/root/kodi/tools/depends/target/ffmpeg/x86_64-linux-android-21-debug'
make[2]: *** [Makefile:90: .build-x86_64-linux-android-21-debug] Error 2
make[2]: Leaving directory '/root/kodi/tools/depends/target/ffmpeg'
make[1]: *** [Makefile:142: ffmpeg] Error 2
make[1]: Leaving directory '/root/kodi/tools/depends/target'
make: *** [Makefile:11: target/.installed-x86_64-linux-android-21-debug] Error 2

I run:
 
Quote:make -C target/ffmpeg distclean

and  then run:
Quote:make

And I got new error:
Quote:Installing /root/kodi/tools/depends/target/dav1d/x86_64-linux-android-21-debug/build/meson-private/dav1d.pc to /usr/local/lib/x86_64-linux-gnu/pkgconfig
touch .installed-x86_64-linux-android-21-debug
make[2]: Leaving directory '/root/kodi/tools/depends/target/dav1d'
make -C ffmpeg
make[2]: Entering directory '/root/kodi/tools/depends/target/ffmpeg'
rm -rf x86_64-linux-android-21-debug; mkdir -p x86_64-linux-android-21-debug
cd x86_64-linux-android-21-debug; /usr/bin/tar --strip-components=1 -xf /root/android-tools/xbmc-tarballs/ffmpeg-4.4-N-Alpha1.tar.gz
cd x86_64-linux-android-21-debug; sed -i".bak" -e "s%pkg_config_default=pkg-config%export PKG_CONFIG_LIBDIR=/root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/lib/pkgconfig \&\& pkg_config_default=/root/android-tools/xbmc-depends/x86_64-linux-gnu-native/bin/pkg-config%" configure
cd x86_64-linux-android-21-debug;\
CFLAGS="-DANDROID -D__ANDROID_API__=21 -fexceptions -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -DPIC -Og -g -D_DEBUG  -I/root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/include/android-21 -isystem /root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/include" CXXFLAGS="-DANDROID -D__ANDROID_API__=21 -fexceptions -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -DPIC -frtti -Og -g -D_DEBUG  -I/root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/include/android-21 -isystem /root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/include" CPPFLAGS="-DANDROID -D__ANDROID_API__=21 -fexceptions -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -DPIC -Og -g -D_DEBUG  -I/root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/include/android-21 -isystem /root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/include" LDFLAGS="-L/root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/lib -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -L/root/android-tools/xbmc-depends/x86_64-linux-android-21-debug/lib/android-21  " \
./configure --prefix=/root/android-tools/xbmc-depends/x86_64-linux-android-21-debug --extra-version="kodi-4.4-N-Alpha1" --cc="/root/android-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang" --cxx="/root/android-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang++" --ar=/root/android-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar --ranlib=/root/android-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib --strip=/root/android-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --disable-devices --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-sdl2 --enable-gpl --enable-runtime-cpudetect --enable-postproc --enable-pthreads --enable-muxer=spdif --enable-muxer=adts --enable-muxer=asf --enable-muxer=ipod --enable-encoder=ac3 --enable-encoder=aac --enable-encoder=wmav2 --enable-protocol=http --enable-gnutls --enable-encoder=png --enable-encoder=mjpeg --enable-libdav1d  --arch=x86_64 --enable-cross-compile --cpu=x86_64 --enable-pic --extra-cflags='-no-integrated-as -mno-stackrealign' --target-os=linux --extra-libs=-liconv --disable-linux-perf
ERROR: dav1d >= 0.5.0 not found using pkg-config

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
[email protected] 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.
make[2]: *** [Makefile:85: x86_64-linux-android-21-debug] Error 1
make[2]: Leaving directory '/root/kodi/tools/depends/target/ffmpeg'
make[1]: *** [Makefile:142: ffmpeg] Error 2
make[1]: Leaving directory '/root/kodi/tools/depends/target'
make: *** [Makefile:11: target/.installed-x86_64-linux-android-21-debug] Error 2

I tried make distclean ffmpeg and run 'make' again but I still got this error:
Quote:ERROR: dav1d >= 0.5.0 not found using pkg-config

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
[email protected] 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.
make[2]: *** [Makefile:85: x86_64-linux-android-21-debug] Error 1
make[2]: Leaving directory '/root/kodi/tools/depends/target/ffmpeg'
make[1]: *** [Makefile:142: ffmpeg] Error 2
make[1]: Leaving directory '/root/kodi/tools/depends/target'
make: *** [Makefile:11: target/.installed-x86_64-linux-android-21-debug] Error 2
Any solution for this problem? Please help me. Thanks!
Reply
#6
Did you clean your dav1d dependency too?
Your ffmpeg fails because it can't find dav1d (which is a library to do av1 sw decoding).
So try to clean and/or build dav1d first then continue with ffmpeg.
Reply
#7
Yes, I tried cleaning dav1d too but it still error.

How to "clean and/or build dav1d first", did you mean distclean dav1d and run 'make', then distclean ffmpeg and run 'make' again? I tried, it didn't solve the error.
Reply

Logout Mark Read Team Forum Stats Members Help
[Makefile:34: x86_64-linux-android-21-debug/.libs/libbluray.la] Error 20