[mythtv] Building for Android, mariadb issue
Mark Spieth
mark at digivation.com.au
Tue Aug 7 02:34:09 UTC 2018
On 07/08/18 12:25, David Engel wrote:
> On Mon, Aug 06, 2018 at 07:47:31PM -0600, John P Poet wrote:
>> On Mon, Aug 6, 2018 at 7:19 PM David Engel <david at istwok.net> wrote:
>>
>>> On Sun, Aug 05, 2018 at 05:44:01PM -0500, David Engel wrote:
>>>> On Sun, Aug 05, 2018 at 02:49:41PM -0600, John P Poet wrote:
>>>>>>>> which ndk?
>>>>>>>> I have validated 13b
>>>>>>>> 14 onwards has missing headers.
>>>>>>>> The other thing to check is your default environment. printenv.
>>>>>>>> Not sure otherwise.
>>>>>>> I vaguely remember some nl_langinfo problem, but not the solution.
>>>>>>> I'm searching my old emails. I'll reply if find something.
>>>>>> My search didn't yield anything. As Mark said, make sure you're
>>> using
>>>>>> the currently, preferred NDK. Also, make sure you run "./makelibs.sh
>>>>>> all" instead of simply "./makelibs.sh". I know that tripped me up at
>>>>>> first.
>>>>>>
>>>>> I downloaded and linked r13b. That seems to mess up the toolchain.
>>> Even
>>>>> after re-running maketoolchain.sh, I got:
>>>>> *
>>> /home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc:
>>>>> Command not found*
>>>> I'll try to do a full install and build from scratch, but it won't be
>>>> until at least tomorrow.
>>> John,
>>>
>>> I did a full install of Android Studio/SDK/NDK and build of libs and
>>> mythfrontend today. I updated the Readme.md to specify NDK r13b
>>> instead of r15c and removed a couple of very minor things that weren't
>>> necessary. I also fixed a bug in makelibs.sh related to the recent
>>> library changes. It all built and runs fine.
>>>
>>> I think the main problem you're having is trying to use the NDK
>>> installed by Android Studio. Be sure to install the r13b (or r15c if
>>> you really want to) version manually as directed and I think you
>>> should be fine.
>>>
>>> We should eventually try to get builds to use the NDK installed by
>>> Android Studio, but that's a job for another day.
>>>
>>> David
>>>
>> Hi David,
>>
>> The instructions say
>> "After Android Studio is installed, *use it* to install the Android SDK and
>> NDK."
>>
>> It also says
>> "Install the desired SDK Tools. CMake and the *NDK* are the main ones."
>>
>> It sounds like those statements needs to be changed.
> Point taken. Those instructions predate my involvement and being
> someone who doesn't like writing documentaton nor is any good at
> writing it, I haven't changed any more than I really need to.
>
>> The instructions also say
>> "For the NDK Get android-ndk-r13b-linux-x86_64.bin and install it in
>> ~/android *too*."
>>
>> That "*too*" implies that r13b also needs installed in ~/Android/Sdk/ as
>> nkd-bundle?
> That definitely needs clarification. I don't even know if the NDK
> installed by Studio is even needed. The one installed manually
> absolutely is since those tools are the ones used by makelibs.sh and
> mythbuild.sh.
>
>> You are building it for Android version 26 (Oreo), right?
>>
>> Thank you for your help with this!
> I run on Oreo on my Shields. The version on the Mecool I occasionally
> run on is Nougat and the FireTv I also occasionally run on is whatever
> custom version Amazon has. The target API level defined in
> mythbuild.sh is the default 21 which is Lollipop.
>
>
For clarity
$ ll ~/android
drwxr-xr-x 12 mark mark 4096 Aug 4 11:18 .
drwxr-xr-x 178 mark mark 20480 Aug 7 12:34 ..
lrwxrwxrwx 1 mark mark 16 Feb 13 10:46 android-ndk -> android-ndk-r13b
drwxr-xr-x 10 mark mark 4096 Aug 8 2016 android-ndk-r12b
drwxr-xr-x 13 mark mark 4096 Feb 17 22:43 android-ndk-r13b
drwxr-xr-x 14 mark mark 4096 Feb 3 2018 android-ndk-r15c
drwxr-xr-x 18 mark mark 4096 Jan 4 2018 android-sdk-linux
drwxrwxr-x 8 mark mark 4096 Jan 4 2018 android-studio
-rw-r--r-- 1 mark mark 3944 Feb 20 2015 digivation.keystore
-rw-r--r-- 1 mark mark 3890 Feb 20 2015 digivation-release.keystore
-rwxr-xr-x 1 mark mark 1221 Feb 20 16:04 maketoolchain.sh
-rwxr-xr-x 1 mark mark 978 Jan 4 2018 setenv.sh
lrwxrwxrwx 1 mark mark 30 Feb 14 2015 studio.sh -> ./android-studio/bin/studio.sh
maketoolchain.sh use the defaults : sdk:21, stl:gnustl, gccversion:4.9
HTH
Mark
More information about the mythtv-dev
mailing list