[mythtv] Problem with 32-bit android version

Peter Bennett pb.mythtv at gmail.com
Mon Oct 17 15:33:13 UTC 2022


On 10/12/22 09:53, Peter Bennett wrote:
> With that patch and the config CONFIG=firetv-max, I ran distclean, 
> built libs and apk
>
> It still fails with a slightly different error, instead of 
> "iconv_open", it now complains about "__sendto_chk"
>
> 10-12 09:43:10.402 15975 15998 I Qt      : qt started
> 10-12 09:43:10.417 15975 15998 E AndroidRuntime: FATAL EXCEPTION: 
> qtMainLoopThread
> 10-12 09:43:10.417 15975 15998 E AndroidRuntime: Process: 
> org.mythtv.mythfrontend, PID: 15975
> 10-12 09:43:10.417 15975 15998 E AndroidRuntime: 
> java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol 
> "__sendto_chk" referenced by 
> "/data/app/org.mythtv.mythfrontend-2/lib/arm/libexiv2.14.so"...
>
> Output from your above command, but I think you will see the same on 
> your system. We already established that fire stick 4k fails with a 
> build that you did on your system.
>
>
> (INSTALLROOT=`pwd`/mythinstall; export PKG_CONFIG_DIR=; export 
> PKG_CONFIG_LIBDIR=$INSTALLROOT/lib/pkgconfig:$INSTALLROOT/share/pkgconfig:$QTBASE/lib/pkgconfig; 
> export PKG_CONFIG_SYSROOT_DIR=$INSTALLROOT; export 
> PKG_CONFIG_SYSROOT_DIR=; pkg-config --list-all; )
>
> exiv2      exiv2 - Exif and IPTC metadata library and tools
> fftw3f     FFTW - fast Fourier transform library
> flac       FLAC - Free Lossless Audio Codec Library
> fontconfig Fontconfig - Font configuration and customization library
> freetype2  FreeType 2 - A free, high-quality, and portable font engine.
> fribidi    GNU FriBidi - Unicode Bidirectional Algorithm Library
> icu-i18n   icu-i18n - International Components for Unicode: 
> Internationalization library
> icu-io     icu-io - International Components for Unicode: Stream and 
> I/O Library
> icu-uc     icu-uc - International Components for Unicode: Common and 
> Data libraries
> libass     libass - LibASS is an SSA/ASS subtitles rendering library
> libbluray  libbluray - library supporting Blu-ray playback
> libcrypto  OpenSSL-libcrypto - OpenSSL cryptography library
> libssl     OpenSSL-libssl - Secure Sockets Layer and cryptography 
> libraries
> libxml-2.0 libXML - libXML library version2.
> libzip     libzip - library for handling zip archives
> lzo2       lzo2 - LZO - a real-time data compression library
> ogg        ogg - ogg is a library for manipulating ogg bitstreams
> openssl    OpenSSL - Secure Sockets Layer and cryptography libraries 
> and tools
> samplerate samplerate - An audio Sample Rate Conversion library
> soundtouch SoundTouch - SoundTouch is an open-source audio processing 
> library for changing the Tempo, Pitch and Playback Rates of audio 
> streams or files
> taglib     TagLib - Audio meta-data library
> taglib_c   TagLib C Bindings - Audio meta-data library (C bindings)
> vorbis     vorbis - vorbis is the primary Ogg Vorbis library
> vorbisenc  vorbisenc - vorbisenc is a library that provides a 
> convenient API for setting up an encoding environment using libvorbis
> vorbisfile vorbisfile - vorbisfile is a library that provides a 
> convenient high-level API for decoding and basic manipulation of all 
> Vorbis I audio streams
>
> Peter
>
I removed your patch again.

After trying many combinations of settings, I found that the ones to fix 
the issue are ANDROID_NATIVE_API_LEVEL and ANDROID_MIN_SDK_VERSION

The settings for firetv-max have ANDROID_NATIVE_API_LEVEL=28 and 
ANDROID_MIN_SDK_VERSION=25

I committed a new config called firetv-4k with 
ANDROID_NATIVE_API_LEVEL=21 and ANDROID_MIN_SDK_VERSION=21

ANDROID_NATIVE_API_LEVEL=25 gives "cannot find 
armv7a-linux-androideabi25-clang"

ANDROID_NATIVE_API_LEVEL=28 gives iconv linking error when trying to run it

ANDROID_NATIVE_API_LEVEL=21 works fine.

I don't understand the difference between ANDROID_NATIVE_API_LEVEL and 
ANDROID_MIN_SDK_VERSION. The fire tv 4k has api level 25. Is this 
related to ANDROID_NATIVE_API_LEVEL and why would that not work? I did 
install api level 25 with android studio but that did not help, still 
got the same error.

Peter




More information about the mythtv-dev mailing list