Are the instructions @
https://github.com/MythTV/packaging/blob/master/android/Readme.md up to
date? I am trying to build latest master on a Fedora 34 machine.
First error I got was that
Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang
did not exist. To fix that I soft linked the version specific file:
$ ln -s aarch64-linux-android29-clang aarch64-linux-android-clang
Then `make SDK=29 MODE=arm64 libs` produces:
make[2]: Entering directory
'/home/john/src/Myth/Android/packaging/android/libs64/openssl-1.0.2u/crypto'
make[2]: warning: jobserver unavailable: using -j1. Add '+' to parent make
rule.
/usr/bin/perl ../util/mkbuildinf.pl
"/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang
-I. -I.. -I../include -DOPENSSL_THREADS
--cross-compile-prefix-cc=/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-
-D__ANDROID_API__=29 " "os.api_level" >buildinf.h
/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang
-I. -I.. -I../include -DOPENSSL_THREADS
--cross-compile-prefix-cc=/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-
-D__ANDROID_API__=29 -c -o cryptlib.o cryptlib.c
clang: error: unsupported option
'--cross-compile-prefix-cc=/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-'
make[2]: *** [<builtin>: cryptlib.o] Error 1
make[2]: Leaving directory
'/home/john/src/Myth/Android/packaging/android/libs64/openssl-1.0.2u/crypto'
make[1]: *** [Makefile:288: build_crypto] Error 1
make[1]: Leaving directory
'/home/john/src/Myth/Android/packaging/android/libs64/openssl-1.0.2u'
~/src/Myth/Android/packaging/android/libs64
~/src/Myth/Android/packaging/android
make: *** [Makefile:33: libs] Error 2
I have hunted a bit trying to solve that, but have not found a solution.
Can anyone tell me how to get past this?
Thanks,
John
https://github.com/MythTV/packaging/blob/master/android/Readme.md up to
date? I am trying to build latest master on a Fedora 34 machine.
First error I got was that
Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang
did not exist. To fix that I soft linked the version specific file:
$ ln -s aarch64-linux-android29-clang aarch64-linux-android-clang
Then `make SDK=29 MODE=arm64 libs` produces:
make[2]: Entering directory
'/home/john/src/Myth/Android/packaging/android/libs64/openssl-1.0.2u/crypto'
make[2]: warning: jobserver unavailable: using -j1. Add '+' to parent make
rule.
/usr/bin/perl ../util/mkbuildinf.pl
"/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang
-I. -I.. -I../include -DOPENSSL_THREADS
--cross-compile-prefix-cc=/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-
-D__ANDROID_API__=29 " "os.api_level" >buildinf.h
/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang
-I. -I.. -I../include -DOPENSSL_THREADS
--cross-compile-prefix-cc=/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-
-D__ANDROID_API__=29 -c -o cryptlib.o cryptlib.c
clang: error: unsupported option
'--cross-compile-prefix-cc=/home/john/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-'
make[2]: *** [<builtin>: cryptlib.o] Error 1
make[2]: Leaving directory
'/home/john/src/Myth/Android/packaging/android/libs64/openssl-1.0.2u/crypto'
make[1]: *** [Makefile:288: build_crypto] Error 1
make[1]: Leaving directory
'/home/john/src/Myth/Android/packaging/android/libs64/openssl-1.0.2u'
~/src/Myth/Android/packaging/android/libs64
~/src/Myth/Android/packaging/android
make: *** [Makefile:33: libs] Error 2
I have hunted a bit trying to solve that, but have not found a solution.
Can anyone tell me how to get past this?
Thanks,
John