[mythtv-users] MythTV-Frontend does not start on Amazon FireTV (non-4K)

Peter Bennett pb.mythtv at gmail.com
Sat Jul 11 20:59:35 UTC 2020


On 7/10/20 9:13 PM, Mark Spieth wrote:
> If you mean Fire TV Stick Gen 2, that is not 4K. Only the 32 bit 
> version of mythfrontend would work.
>>
>> I tried this on a fire stick gen 2 and I agree it is not working. The 
>> same apk installed on fire stick 4K works fine.
>>
>> Error message is
>>
>> E/art     ( 8394): 
>> dlopen("/data/app/org.mythtv.mythfrontend-2/lib/arm/libQt5Core_armeabi-v7a.so", 
>> RTLD_LAZY) failed: dlopen failed: empty/missing DT_HASH in 
>> "libQt5Core_armeabi-v7a.so" (built with --hash-style=gnu?)
>> --------- beginning of crash
>> E/AndroidRuntime( 8394): FATAL EXCEPTION: qtMainLoopThread
>> E/AndroidRuntime( 8394): Process: org.mythtv.mythfrontend, PID: 8394
>> E/AndroidRuntime( 8394): java.lang.UnsatisfiedLinkError: dlopen 
>> failed: empty/missing DT_HASH in "libQt5Core_armeabi-v7a.so" (built 
>> with --hash-style=gnu?)
>> E/AndroidRuntime( 8394):     at java.lang.Runtime.load(Runtime.java:331)
>> E/AndroidRuntime( 8394):     at java.lang.System.load(System.java:981)
>> E/AndroidRuntime( 8394):     at 
>> org.qtproject.qt5.android.QtNative$2.run(QtNative.java:199)
>> E/AndroidRuntime( 8394):     at 
>> org.qtproject.qt5.android.QtThread$2.run(QtThread.java:87)
>> E/AndroidRuntime( 8394):     at 
>> org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
>> E/AndroidRuntime( 8394):     at java.lang.Thread.run(Thread.java:818)
>>
> I have pushed a fix for this. should work but untested. pristine libs 
> rebuild required of course.
>
> Mark
>
>
As you had recommended, I changed the ANDROID_NATIVE_API_LEVEL to 21

Using master ..

Libs built fine, but trying to build mythtv gives these errors (see 
below). It does not make much sense, since fseeko is supposed to be in 
stdio.h ?

In file included from mythcommandlineparser.cpp:28:
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:950:9: 
error: use of undeclared identifier 'fseeko'
     if (fseeko(__file_, __width > 0 ? __width * __off : 0, __whence))
         ^
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:213:5: 
note: in instantiation of member function 
'std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> 
 >::seekoff' requested here
     basic_filebuf();
     ^
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:1356:5: 
note: in instantiation of member function 
'std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> 
 >::basic_filebuf' requested here
     basic_ofstream();
     ^
mythcommandlineparser.cpp:2754:14: note: in instantiation of member 
function 'std::__ndk1::basic_ofstream<char, 
std::__ndk1::char_traits<char> >::basic_ofstream' requested here
     ofstream pidfs;
              ^
In file included from mythcommandlineparser.cpp:28:
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:952:20: 
error: use of undeclared identifier 'ftello'
     pos_type __r = ftello(__file_);
                    ^
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:968:9: 
error: use of undeclared identifier 'fseeko'
     if (fseeko(__file_, __sp, SEEK_SET))
         ^
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:213:5: 
note: in instantiation of member function 
'std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> 
 >::seekpos' requested here
     basic_filebuf();
     ^
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:1356:5: 
note: in instantiation of member function 
'std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> 
 >::basic_filebuf' requested here
     basic_ofstream();
     ^
mythcommandlineparser.cpp:2754:14: note: in instantiation of member 
function 'std::__ndk1::basic_ofstream<char, 
std::__ndk1::char_traits<char> >::basic_ofstream' requested here
     ofstream pidfs;
              ^
In file included from mythcommandlineparser.cpp:28:
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:1032:13: 
error: use of undeclared identifier 'fseeko'
         if (fseeko(__file_, -__c, SEEK_CUR))
             ^
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:213:5: 
note: in instantiation of member function 
'std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> 
 >::sync' requested here
     basic_filebuf();
     ^
/home/peter/Android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:1356:5: 
note: in instantiation of member function 
'std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> 
 >::basic_filebuf' requested here
     basic_ofstream();
     ^
mythcommandlineparser.cpp:2754:14: note: in instantiation of member 
function 'std::__ndk1::basic_ofstream<char, 
std::__ndk1::char_traits<char> >::basic_ofstream' requested here
     ofstream pidfs;
              ^
4 errors generated.
make[3]: *** [Makefile:6200: obj/mythcommandlineparser.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory 
'/home/peter/proj/github.com/MythTV/packaging-master/android/build/mythtv/libs/libmythbase'
make[2]: *** [Makefile:81: sub-libmythbase-make_first] Error 2
make[2]: Leaving directory 
'/home/peter/proj/github.com/MythTV/packaging-master/android/build/mythtv/libs'
make[1]: *** [Makefile:66: libs] Error 2
make[1]: Leaving directory 
'/home/peter/proj/github.com/MythTV/packaging-master/android/build/mythtv'
make: *** [Makefile:36: apk] Error 2



More information about the mythtv-users mailing list