Mailing List Archive

Building for Android, mariadb issue
Following:

*https://github.com/MythTV/packaging/tree/master/android
<https://github.com/MythTV/packaging/tree/master/android>*

It says:

The script downloads source to build, but fails on mariadb. To avoid this
problem create directory workdir/packaging/android/tarballs and dowload
mariadb-connector-c-2.1.0-src.tar.gz from
https://downloads.mariadb.org/connector-c/2.1.0/ into that directory.

I have done that, but mariadb still fails to build for me:

/home/john/android/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc
-fPIC -fexceptions -Wno-psabi
--sysroot=/home/john/android/android-ndk/platforms/android-21/arch-arm64
-funwind-tables -fsigned-char -no-canonical-prefixes -fdata-sections
-ffunction-sections -Wa,--noexecstack -Dushort=uint16_t -Wunused
-Wno-uninitialized -fomit-frame-pointer -fstrict-aliasing -funswitch-loops
-finline-limit=300 -O3 -DNDEBUG -DDBUG_OFF -Wl,--no-undefined
-Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack
-Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libmariadb.so -o libmariadb.so
CMakeFiles/mariadb_obj.dir/array.c.o
CMakeFiles/mariadb_obj.dir/ma_dyncol.c.o
CMakeFiles/mariadb_obj.dir/bchange.c.o CMakeFiles/mariadb_obj.dir/bmove.c.o
CMakeFiles/mariadb_obj.dir/bmove_upp.c.o
CMakeFiles/mariadb_obj.dir/my_charset.c.o
CMakeFiles/mariadb_obj.dir/hash.c.o CMakeFiles/mariadb_obj.dir/violite.c.o
CMakeFiles/mariadb_obj.dir/net.c.o CMakeFiles/mariadb_obj.dir/charset.c.o
CMakeFiles/mariadb_obj.dir/ma_time.c.o CMakeFiles/mariadb_obj.dir/dbug.c.o
CMakeFiles/mariadb_obj.dir/default.c.o
CMakeFiles/mariadb_obj.dir/errmsg.c.o
CMakeFiles/mariadb_obj.dir/my_vsnprintf.c.o
CMakeFiles/mariadb_obj.dir/errors.c.o
CMakeFiles/mariadb_obj.dir/getopt1.c.o
CMakeFiles/mariadb_obj.dir/getopt.c.o
CMakeFiles/mariadb_obj.dir/int2str.c.o
CMakeFiles/mariadb_obj.dir/is_prefix.c.o
CMakeFiles/mariadb_obj.dir/libmariadb.c.o
CMakeFiles/mariadb_obj.dir/list.c.o CMakeFiles/mariadb_obj.dir/llstr.c.o
CMakeFiles/mariadb_obj.dir/longlong2str.c.o
CMakeFiles/mariadb_obj.dir/mf_dirname.c.o
CMakeFiles/mariadb_obj.dir/mf_fn_ext.c.o
CMakeFiles/mariadb_obj.dir/mf_format.c.o
CMakeFiles/mariadb_obj.dir/mf_loadpath.c.o
CMakeFiles/mariadb_obj.dir/mf_pack.c.o
CMakeFiles/mariadb_obj.dir/mf_path.c.o
CMakeFiles/mariadb_obj.dir/mf_unixpath.c.o
CMakeFiles/mariadb_obj.dir/mf_wcomp.c.o
CMakeFiles/mariadb_obj.dir/mulalloc.c.o
CMakeFiles/mariadb_obj.dir/my_alloc.c.o
CMakeFiles/mariadb_obj.dir/my_compress.c.o
CMakeFiles/mariadb_obj.dir/my_context.c.o
CMakeFiles/mariadb_obj.dir/my_div.c.o
CMakeFiles/mariadb_obj.dir/my_error.c.o
CMakeFiles/mariadb_obj.dir/my_fopen.c.o
CMakeFiles/mariadb_obj.dir/my_fstream.c.o
CMakeFiles/mariadb_obj.dir/my_getwd.c.o
CMakeFiles/mariadb_obj.dir/my_init.c.o
CMakeFiles/mariadb_obj.dir/my_lib.c.o
CMakeFiles/mariadb_obj.dir/my_malloc.c.o
CMakeFiles/mariadb_obj.dir/my_messnc.c.o
CMakeFiles/mariadb_obj.dir/my_net.c.o
CMakeFiles/mariadb_obj.dir/my_once.c.o
CMakeFiles/mariadb_obj.dir/my_open.c.o
CMakeFiles/mariadb_obj.dir/my_port.c.o
CMakeFiles/mariadb_obj.dir/my_pthread.c.o
CMakeFiles/mariadb_obj.dir/my_read.c.o
CMakeFiles/mariadb_obj.dir/my_realloc.c.o
CMakeFiles/mariadb_obj.dir/my_seek.c.o
CMakeFiles/mariadb_obj.dir/my_static.c.o
CMakeFiles/mariadb_obj.dir/my_symlink.c.o
CMakeFiles/mariadb_obj.dir/my_thr_init.c.o
CMakeFiles/mariadb_obj.dir/my_write.c.o
CMakeFiles/mariadb_obj.dir/mysql_async.c.o
CMakeFiles/mariadb_obj.dir/password.c.o
CMakeFiles/mariadb_obj.dir/str2int.c.o
CMakeFiles/mariadb_obj.dir/strcend.c.o
CMakeFiles/mariadb_obj.dir/strcont.c.o
CMakeFiles/mariadb_obj.dir/strend.c.o
CMakeFiles/mariadb_obj.dir/strfill.c.o
CMakeFiles/mariadb_obj.dir/string.c.o
CMakeFiles/mariadb_obj.dir/strinstr.c.o
CMakeFiles/mariadb_obj.dir/strmake.c.o
CMakeFiles/mariadb_obj.dir/strmov.c.o
CMakeFiles/mariadb_obj.dir/strnmov.c.o
CMakeFiles/mariadb_obj.dir/strtoll.c.o
CMakeFiles/mariadb_obj.dir/strtoull.c.o
CMakeFiles/mariadb_obj.dir/strxmov.c.o
CMakeFiles/mariadb_obj.dir/strxnmov.c.o
CMakeFiles/mariadb_obj.dir/thr_mutex.c.o
CMakeFiles/mariadb_obj.dir/typelib.c.o CMakeFiles/mariadb_obj.dir/sha1.c.o
CMakeFiles/mariadb_obj.dir/my_stmt.c.o
CMakeFiles/mariadb_obj.dir/my_loaddata.c.o
CMakeFiles/mariadb_obj.dir/my_stmt_codec.c.o
CMakeFiles/mariadb_obj.dir/client_plugin.c.o
CMakeFiles/mariadb_obj.dir/my_auth.c.o
CMakeFiles/mariadb_obj.dir/ma_secure.c.o
-L/home/john/workdir/packaging/android/mythinstall64/libs/arm64-v8a -lz
/home/john/workdir/packaging/android/mythinstall64/lib/libiconv.a -ldl -lm
"/home/john/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/libsupc++.a"
/home/john/workdir/packaging/android/mythinstall64/lib/libiconv.a(localcharset.o):
In function `locale_charset':
localcharset.c:(.text+0x3e0): undefined reference to `nl_langinfo'
collect2: error: ld returned 1 exit status
make[2]: *** [libmariadb/CMakeFiles/libmariadb.dir/build.make:235:
libmariadb/libmariadb.so] Error 1
make[2]: Leaving directory
'/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/build'
make[1]: *** [CMakeFiles/Makefile2:243:
libmariadb/CMakeFiles/libmariadb.dir/all] Error 2
make[1]: Leaving directory
'/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/build'


am I missing a step?

Thanks,

John
Re: Building for Android, mariadb issue [ In reply to ]
On 03/08/18 10:43, John P Poet wrote:
> Following:
>
> *https://github.com/MythTV/packaging/tree/master/android*
>
> It says:
>
> The script downloads source to build, but fails on mariadb. To avoid
> this problem create directory workdir/packaging/android/tarballs and
> dowload mariadb-connector-c-2.1.0-src.tar.gz from
> https://downloads.mariadb.org/connector-c/2.1.0/ into that directory.
>
> I have done that, but mariadb still fails to build for me:
>
> /home/john/android/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc
> -fPIC -fexceptions -Wno-psabi
> --sysroot=/home/john/android/android-ndk/platforms/android-21/arch-arm64
> -funwind-tables -fsigned-char -no-canonical-prefixes -fdata-sections
> -ffunction-sections -Wa,--noexecstack -Dushort=uint16_t -Wunused
> -Wno-uninitialized -fomit-frame-pointer -fstrict-aliasing
> -funswitch-loops -finline-limit=300 -O3 -DNDEBUG -DDBUG_OFF 
> -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections
> -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now  -shared
> -Wl,-soname,libmariadb.so -o libmariadb.so
> CMakeFiles/mariadb_obj.dir/array.c.o
> CMakeFiles/mariadb_obj.dir/ma_dyncol.c.o
> CMakeFiles/mariadb_obj.dir/bchange.c.o
> CMakeFiles/mariadb_obj.dir/bmove.c.o
> CMakeFiles/mariadb_obj.dir/bmove_upp.c.o
> CMakeFiles/mariadb_obj.dir/my_charset.c.o
> CMakeFiles/mariadb_obj.dir/hash.c.o
> CMakeFiles/mariadb_obj.dir/violite.c.o
> CMakeFiles/mariadb_obj.dir/net.c.o
> CMakeFiles/mariadb_obj.dir/charset.c.o
> CMakeFiles/mariadb_obj.dir/ma_time.c.o
> CMakeFiles/mariadb_obj.dir/dbug.c.o
> CMakeFiles/mariadb_obj.dir/default.c.o
> CMakeFiles/mariadb_obj.dir/errmsg.c.o
> CMakeFiles/mariadb_obj.dir/my_vsnprintf.c.o
> CMakeFiles/mariadb_obj.dir/errors.c.o
> CMakeFiles/mariadb_obj.dir/getopt1.c.o
> CMakeFiles/mariadb_obj.dir/getopt.c.o
> CMakeFiles/mariadb_obj.dir/int2str.c.o
> CMakeFiles/mariadb_obj.dir/is_prefix.c.o
> CMakeFiles/mariadb_obj.dir/libmariadb.c.o
> CMakeFiles/mariadb_obj.dir/list.c.o
> CMakeFiles/mariadb_obj.dir/llstr.c.o
> CMakeFiles/mariadb_obj.dir/longlong2str.c.o
> CMakeFiles/mariadb_obj.dir/mf_dirname.c.o
> CMakeFiles/mariadb_obj.dir/mf_fn_ext.c.o
> CMakeFiles/mariadb_obj.dir/mf_format.c.o
> CMakeFiles/mariadb_obj.dir/mf_loadpath.c.o
> CMakeFiles/mariadb_obj.dir/mf_pack.c.o
> CMakeFiles/mariadb_obj.dir/mf_path.c.o
> CMakeFiles/mariadb_obj.dir/mf_unixpath.c.o
> CMakeFiles/mariadb_obj.dir/mf_wcomp.c.o
> CMakeFiles/mariadb_obj.dir/mulalloc.c.o
> CMakeFiles/mariadb_obj.dir/my_alloc.c.o
> CMakeFiles/mariadb_obj.dir/my_compress.c.o
> CMakeFiles/mariadb_obj.dir/my_context.c.o
> CMakeFiles/mariadb_obj.dir/my_div.c.o
> CMakeFiles/mariadb_obj.dir/my_error.c.o
> CMakeFiles/mariadb_obj.dir/my_fopen.c.o
> CMakeFiles/mariadb_obj.dir/my_fstream.c.o
> CMakeFiles/mariadb_obj.dir/my_getwd.c.o
> CMakeFiles/mariadb_obj.dir/my_init.c.o
> CMakeFiles/mariadb_obj.dir/my_lib.c.o
> CMakeFiles/mariadb_obj.dir/my_malloc.c.o
> CMakeFiles/mariadb_obj.dir/my_messnc.c.o
> CMakeFiles/mariadb_obj.dir/my_net.c.o
> CMakeFiles/mariadb_obj.dir/my_once.c.o
> CMakeFiles/mariadb_obj.dir/my_open.c.o
> CMakeFiles/mariadb_obj.dir/my_port.c.o
> CMakeFiles/mariadb_obj.dir/my_pthread.c.o
> CMakeFiles/mariadb_obj.dir/my_read.c.o
> CMakeFiles/mariadb_obj.dir/my_realloc.c.o
> CMakeFiles/mariadb_obj.dir/my_seek.c.o
> CMakeFiles/mariadb_obj.dir/my_static.c.o
> CMakeFiles/mariadb_obj.dir/my_symlink.c.o
> CMakeFiles/mariadb_obj.dir/my_thr_init.c.o
> CMakeFiles/mariadb_obj.dir/my_write.c.o
> CMakeFiles/mariadb_obj.dir/mysql_async.c.o
> CMakeFiles/mariadb_obj.dir/password.c.o
> CMakeFiles/mariadb_obj.dir/str2int.c.o
> CMakeFiles/mariadb_obj.dir/strcend.c.o
> CMakeFiles/mariadb_obj.dir/strcont.c.o
> CMakeFiles/mariadb_obj.dir/strend.c.o
> CMakeFiles/mariadb_obj.dir/strfill.c.o
> CMakeFiles/mariadb_obj.dir/string.c.o
> CMakeFiles/mariadb_obj.dir/strinstr.c.o
> CMakeFiles/mariadb_obj.dir/strmake.c.o
> CMakeFiles/mariadb_obj.dir/strmov.c.o
> CMakeFiles/mariadb_obj.dir/strnmov.c.o
> CMakeFiles/mariadb_obj.dir/strtoll.c.o
> CMakeFiles/mariadb_obj.dir/strtoull.c.o
> CMakeFiles/mariadb_obj.dir/strxmov.c.o
> CMakeFiles/mariadb_obj.dir/strxnmov.c.o
> CMakeFiles/mariadb_obj.dir/thr_mutex.c.o
> CMakeFiles/mariadb_obj.dir/typelib.c.o
> CMakeFiles/mariadb_obj.dir/sha1.c.o
> CMakeFiles/mariadb_obj.dir/my_stmt.c.o
> CMakeFiles/mariadb_obj.dir/my_loaddata.c.o
> CMakeFiles/mariadb_obj.dir/my_stmt_codec.c.o
> CMakeFiles/mariadb_obj.dir/client_plugin.c.o
> CMakeFiles/mariadb_obj.dir/my_auth.c.o
> CMakeFiles/mariadb_obj.dir/ma_secure.c.o
> -L/home/john/workdir/packaging/android/mythinstall64/libs/arm64-v8a
> -lz /home/john/workdir/packaging/android/mythinstall64/lib/libiconv.a
> -ldl -lm
> "/home/john/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/libsupc++.a"
> /home/john/workdir/packaging/android/mythinstall64/lib/libiconv.a(localcharset.o):
> In function `locale_charset':
> localcharset.c:(.text+0x3e0): undefined reference to `nl_langinfo'
> collect2: error: ld returned 1 exit status
> make[2]: *** [libmariadb/CMakeFiles/libmariadb.dir/build.make:235:
> libmariadb/libmariadb.so] Error 1
> make[2]: Leaving directory
> '/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/build'
> make[1]: *** [CMakeFiles/Makefile2:243:
> libmariadb/CMakeFiles/libmariadb.dir/all] Error 2
> make[1]: Leaving directory
> '/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/build'
>
>
> am I missing a step?
>
>
which ndk?
I have validated 13b
14 onwards has missing headers.
The other thing to check is your default environment. printenv.
Not sure otherwise.

Mark
Re: Building for Android, mariadb issue [ In reply to ]
On Fri, Aug 03, 2018 at 12:21:01PM +1000, Mark Spieth wrote:
>
> On 03/08/18 10:43, John P Poet wrote:
> > Following:
> >
> > *https://github.com/MythTV/packaging/tree/master/android*
> >
> > It says:
> >
> > The script downloads source to build, but fails on mariadb. To avoid
> > this problem create directory workdir/packaging/android/tarballs and
> > dowload mariadb-connector-c-2.1.0-src.tar.gz from
> > https://downloads.mariadb.org/connector-c/2.1.0/ into that directory.
> >
> > I have done that, but mariadb still fails to build for me:
> >
> > /home/john/android/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc
> > -fPIC -fexceptions -Wno-psabi
> > --sysroot=/home/john/android/android-ndk/platforms/android-21/arch-arm64
> > -funwind-tables -fsigned-char -no-canonical-prefixes -fdata-sections
> > -ffunction-sections -Wa,--noexecstack -Dushort=uint16_t -Wunused
> > -Wno-uninitialized -fomit-frame-pointer -fstrict-aliasing
> > -funswitch-loops -finline-limit=300 -O3 -DNDEBUG -DDBUG_OFF?
> > -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections
> > -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now? -shared
> > -Wl,-soname,libmariadb.so -o libmariadb.so
> > CMakeFiles/mariadb_obj.dir/array.c.o
> > CMakeFiles/mariadb_obj.dir/ma_dyncol.c.o
> > CMakeFiles/mariadb_obj.dir/bchange.c.o
> > CMakeFiles/mariadb_obj.dir/bmove.c.o
> > CMakeFiles/mariadb_obj.dir/bmove_upp.c.o
> > CMakeFiles/mariadb_obj.dir/my_charset.c.o
> > CMakeFiles/mariadb_obj.dir/hash.c.o
> > CMakeFiles/mariadb_obj.dir/violite.c.o
> > CMakeFiles/mariadb_obj.dir/net.c.o
> > CMakeFiles/mariadb_obj.dir/charset.c.o
> > CMakeFiles/mariadb_obj.dir/ma_time.c.o
> > CMakeFiles/mariadb_obj.dir/dbug.c.o
> > CMakeFiles/mariadb_obj.dir/default.c.o
> > CMakeFiles/mariadb_obj.dir/errmsg.c.o
> > CMakeFiles/mariadb_obj.dir/my_vsnprintf.c.o
> > CMakeFiles/mariadb_obj.dir/errors.c.o
> > CMakeFiles/mariadb_obj.dir/getopt1.c.o
> > CMakeFiles/mariadb_obj.dir/getopt.c.o
> > CMakeFiles/mariadb_obj.dir/int2str.c.o
> > CMakeFiles/mariadb_obj.dir/is_prefix.c.o
> > CMakeFiles/mariadb_obj.dir/libmariadb.c.o
> > CMakeFiles/mariadb_obj.dir/list.c.o CMakeFiles/mariadb_obj.dir/llstr.c.o
> > CMakeFiles/mariadb_obj.dir/longlong2str.c.o
> > CMakeFiles/mariadb_obj.dir/mf_dirname.c.o
> > CMakeFiles/mariadb_obj.dir/mf_fn_ext.c.o
> > CMakeFiles/mariadb_obj.dir/mf_format.c.o
> > CMakeFiles/mariadb_obj.dir/mf_loadpath.c.o
> > CMakeFiles/mariadb_obj.dir/mf_pack.c.o
> > CMakeFiles/mariadb_obj.dir/mf_path.c.o
> > CMakeFiles/mariadb_obj.dir/mf_unixpath.c.o
> > CMakeFiles/mariadb_obj.dir/mf_wcomp.c.o
> > CMakeFiles/mariadb_obj.dir/mulalloc.c.o
> > CMakeFiles/mariadb_obj.dir/my_alloc.c.o
> > CMakeFiles/mariadb_obj.dir/my_compress.c.o
> > CMakeFiles/mariadb_obj.dir/my_context.c.o
> > CMakeFiles/mariadb_obj.dir/my_div.c.o
> > CMakeFiles/mariadb_obj.dir/my_error.c.o
> > CMakeFiles/mariadb_obj.dir/my_fopen.c.o
> > CMakeFiles/mariadb_obj.dir/my_fstream.c.o
> > CMakeFiles/mariadb_obj.dir/my_getwd.c.o
> > CMakeFiles/mariadb_obj.dir/my_init.c.o
> > CMakeFiles/mariadb_obj.dir/my_lib.c.o
> > CMakeFiles/mariadb_obj.dir/my_malloc.c.o
> > CMakeFiles/mariadb_obj.dir/my_messnc.c.o
> > CMakeFiles/mariadb_obj.dir/my_net.c.o
> > CMakeFiles/mariadb_obj.dir/my_once.c.o
> > CMakeFiles/mariadb_obj.dir/my_open.c.o
> > CMakeFiles/mariadb_obj.dir/my_port.c.o
> > CMakeFiles/mariadb_obj.dir/my_pthread.c.o
> > CMakeFiles/mariadb_obj.dir/my_read.c.o
> > CMakeFiles/mariadb_obj.dir/my_realloc.c.o
> > CMakeFiles/mariadb_obj.dir/my_seek.c.o
> > CMakeFiles/mariadb_obj.dir/my_static.c.o
> > CMakeFiles/mariadb_obj.dir/my_symlink.c.o
> > CMakeFiles/mariadb_obj.dir/my_thr_init.c.o
> > CMakeFiles/mariadb_obj.dir/my_write.c.o
> > CMakeFiles/mariadb_obj.dir/mysql_async.c.o
> > CMakeFiles/mariadb_obj.dir/password.c.o
> > CMakeFiles/mariadb_obj.dir/str2int.c.o
> > CMakeFiles/mariadb_obj.dir/strcend.c.o
> > CMakeFiles/mariadb_obj.dir/strcont.c.o
> > CMakeFiles/mariadb_obj.dir/strend.c.o
> > CMakeFiles/mariadb_obj.dir/strfill.c.o
> > CMakeFiles/mariadb_obj.dir/string.c.o
> > CMakeFiles/mariadb_obj.dir/strinstr.c.o
> > CMakeFiles/mariadb_obj.dir/strmake.c.o
> > CMakeFiles/mariadb_obj.dir/strmov.c.o
> > CMakeFiles/mariadb_obj.dir/strnmov.c.o
> > CMakeFiles/mariadb_obj.dir/strtoll.c.o
> > CMakeFiles/mariadb_obj.dir/strtoull.c.o
> > CMakeFiles/mariadb_obj.dir/strxmov.c.o
> > CMakeFiles/mariadb_obj.dir/strxnmov.c.o
> > CMakeFiles/mariadb_obj.dir/thr_mutex.c.o
> > CMakeFiles/mariadb_obj.dir/typelib.c.o
> > CMakeFiles/mariadb_obj.dir/sha1.c.o
> > CMakeFiles/mariadb_obj.dir/my_stmt.c.o
> > CMakeFiles/mariadb_obj.dir/my_loaddata.c.o
> > CMakeFiles/mariadb_obj.dir/my_stmt_codec.c.o
> > CMakeFiles/mariadb_obj.dir/client_plugin.c.o
> > CMakeFiles/mariadb_obj.dir/my_auth.c.o
> > CMakeFiles/mariadb_obj.dir/ma_secure.c.o
> > -L/home/john/workdir/packaging/android/mythinstall64/libs/arm64-v8a -lz
> > /home/john/workdir/packaging/android/mythinstall64/lib/libiconv.a -ldl
> > -lm "/home/john/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/libsupc++.a"
> > /home/john/workdir/packaging/android/mythinstall64/lib/libiconv.a(localcharset.o):
> > In function `locale_charset':
> > localcharset.c:(.text+0x3e0): undefined reference to `nl_langinfo'
> > collect2: error: ld returned 1 exit status
> > make[2]: *** [libmariadb/CMakeFiles/libmariadb.dir/build.make:235:
> > libmariadb/libmariadb.so] Error 1
> > make[2]: Leaving directory '/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/build'
> > make[1]: *** [CMakeFiles/Makefile2:243:
> > libmariadb/CMakeFiles/libmariadb.dir/all] Error 2
> > make[1]: Leaving directory '/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/build'
> >
> >
> > am I missing a step?
> >
> >
> 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.

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
On Fri, Aug 03, 2018 at 09:44:41AM -0500, David Engel wrote:
> On Fri, Aug 03, 2018 at 12:21:01PM +1000, Mark Spieth wrote:
> >
> > On 03/08/18 10:43, John P Poet wrote:
> > > Following:
> > >
> > > *https://github.com/MythTV/packaging/tree/master/android*
> > >
> > > It says:
> > >
> > > The script downloads source to build, but fails on mariadb. To avoid
> > > this problem create directory workdir/packaging/android/tarballs and
> > > dowload mariadb-connector-c-2.1.0-src.tar.gz from
> > > https://downloads.mariadb.org/connector-c/2.1.0/ into that directory.
> > >
> > > I have done that, but mariadb still fails to build for me:
> > >
> > > /home/john/android/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc
> > > -fPIC -fexceptions -Wno-psabi
> > > --sysroot=/home/john/android/android-ndk/platforms/android-21/arch-arm64
> > > -funwind-tables -fsigned-char -no-canonical-prefixes -fdata-sections
> > > -ffunction-sections -Wa,--noexecstack -Dushort=uint16_t -Wunused
> > > -Wno-uninitialized -fomit-frame-pointer -fstrict-aliasing
> > > -funswitch-loops -finline-limit=300 -O3 -DNDEBUG -DDBUG_OFF?
> > > -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections
> > > -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now? -shared
> > > -Wl,-soname,libmariadb.so -o libmariadb.so
> > > CMakeFiles/mariadb_obj.dir/array.c.o
> > > CMakeFiles/mariadb_obj.dir/ma_dyncol.c.o
> > > CMakeFiles/mariadb_obj.dir/bchange.c.o
> > > CMakeFiles/mariadb_obj.dir/bmove.c.o
> > > CMakeFiles/mariadb_obj.dir/bmove_upp.c.o
> > > CMakeFiles/mariadb_obj.dir/my_charset.c.o
> > > CMakeFiles/mariadb_obj.dir/hash.c.o
> > > CMakeFiles/mariadb_obj.dir/violite.c.o
> > > CMakeFiles/mariadb_obj.dir/net.c.o
> > > CMakeFiles/mariadb_obj.dir/charset.c.o
> > > CMakeFiles/mariadb_obj.dir/ma_time.c.o
> > > CMakeFiles/mariadb_obj.dir/dbug.c.o
> > > CMakeFiles/mariadb_obj.dir/default.c.o
> > > CMakeFiles/mariadb_obj.dir/errmsg.c.o
> > > CMakeFiles/mariadb_obj.dir/my_vsnprintf.c.o
> > > CMakeFiles/mariadb_obj.dir/errors.c.o
> > > CMakeFiles/mariadb_obj.dir/getopt1.c.o
> > > CMakeFiles/mariadb_obj.dir/getopt.c.o
> > > CMakeFiles/mariadb_obj.dir/int2str.c.o
> > > CMakeFiles/mariadb_obj.dir/is_prefix.c.o
> > > CMakeFiles/mariadb_obj.dir/libmariadb.c.o
> > > CMakeFiles/mariadb_obj.dir/list.c.o CMakeFiles/mariadb_obj.dir/llstr.c.o
> > > CMakeFiles/mariadb_obj.dir/longlong2str.c.o
> > > CMakeFiles/mariadb_obj.dir/mf_dirname.c.o
> > > CMakeFiles/mariadb_obj.dir/mf_fn_ext.c.o
> > > CMakeFiles/mariadb_obj.dir/mf_format.c.o
> > > CMakeFiles/mariadb_obj.dir/mf_loadpath.c.o
> > > CMakeFiles/mariadb_obj.dir/mf_pack.c.o
> > > CMakeFiles/mariadb_obj.dir/mf_path.c.o
> > > CMakeFiles/mariadb_obj.dir/mf_unixpath.c.o
> > > CMakeFiles/mariadb_obj.dir/mf_wcomp.c.o
> > > CMakeFiles/mariadb_obj.dir/mulalloc.c.o
> > > CMakeFiles/mariadb_obj.dir/my_alloc.c.o
> > > CMakeFiles/mariadb_obj.dir/my_compress.c.o
> > > CMakeFiles/mariadb_obj.dir/my_context.c.o
> > > CMakeFiles/mariadb_obj.dir/my_div.c.o
> > > CMakeFiles/mariadb_obj.dir/my_error.c.o
> > > CMakeFiles/mariadb_obj.dir/my_fopen.c.o
> > > CMakeFiles/mariadb_obj.dir/my_fstream.c.o
> > > CMakeFiles/mariadb_obj.dir/my_getwd.c.o
> > > CMakeFiles/mariadb_obj.dir/my_init.c.o
> > > CMakeFiles/mariadb_obj.dir/my_lib.c.o
> > > CMakeFiles/mariadb_obj.dir/my_malloc.c.o
> > > CMakeFiles/mariadb_obj.dir/my_messnc.c.o
> > > CMakeFiles/mariadb_obj.dir/my_net.c.o
> > > CMakeFiles/mariadb_obj.dir/my_once.c.o
> > > CMakeFiles/mariadb_obj.dir/my_open.c.o
> > > CMakeFiles/mariadb_obj.dir/my_port.c.o
> > > CMakeFiles/mariadb_obj.dir/my_pthread.c.o
> > > CMakeFiles/mariadb_obj.dir/my_read.c.o
> > > CMakeFiles/mariadb_obj.dir/my_realloc.c.o
> > > CMakeFiles/mariadb_obj.dir/my_seek.c.o
> > > CMakeFiles/mariadb_obj.dir/my_static.c.o
> > > CMakeFiles/mariadb_obj.dir/my_symlink.c.o
> > > CMakeFiles/mariadb_obj.dir/my_thr_init.c.o
> > > CMakeFiles/mariadb_obj.dir/my_write.c.o
> > > CMakeFiles/mariadb_obj.dir/mysql_async.c.o
> > > CMakeFiles/mariadb_obj.dir/password.c.o
> > > CMakeFiles/mariadb_obj.dir/str2int.c.o
> > > CMakeFiles/mariadb_obj.dir/strcend.c.o
> > > CMakeFiles/mariadb_obj.dir/strcont.c.o
> > > CMakeFiles/mariadb_obj.dir/strend.c.o
> > > CMakeFiles/mariadb_obj.dir/strfill.c.o
> > > CMakeFiles/mariadb_obj.dir/string.c.o
> > > CMakeFiles/mariadb_obj.dir/strinstr.c.o
> > > CMakeFiles/mariadb_obj.dir/strmake.c.o
> > > CMakeFiles/mariadb_obj.dir/strmov.c.o
> > > CMakeFiles/mariadb_obj.dir/strnmov.c.o
> > > CMakeFiles/mariadb_obj.dir/strtoll.c.o
> > > CMakeFiles/mariadb_obj.dir/strtoull.c.o
> > > CMakeFiles/mariadb_obj.dir/strxmov.c.o
> > > CMakeFiles/mariadb_obj.dir/strxnmov.c.o
> > > CMakeFiles/mariadb_obj.dir/thr_mutex.c.o
> > > CMakeFiles/mariadb_obj.dir/typelib.c.o
> > > CMakeFiles/mariadb_obj.dir/sha1.c.o
> > > CMakeFiles/mariadb_obj.dir/my_stmt.c.o
> > > CMakeFiles/mariadb_obj.dir/my_loaddata.c.o
> > > CMakeFiles/mariadb_obj.dir/my_stmt_codec.c.o
> > > CMakeFiles/mariadb_obj.dir/client_plugin.c.o
> > > CMakeFiles/mariadb_obj.dir/my_auth.c.o
> > > CMakeFiles/mariadb_obj.dir/ma_secure.c.o
> > > -L/home/john/workdir/packaging/android/mythinstall64/libs/arm64-v8a -lz
> > > /home/john/workdir/packaging/android/mythinstall64/lib/libiconv.a -ldl
> > > -lm "/home/john/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/libsupc++.a"
> > > /home/john/workdir/packaging/android/mythinstall64/lib/libiconv.a(localcharset.o):
> > > In function `locale_charset':
> > > localcharset.c:(.text+0x3e0): undefined reference to `nl_langinfo'
> > > collect2: error: ld returned 1 exit status
> > > make[2]: *** [libmariadb/CMakeFiles/libmariadb.dir/build.make:235:
> > > libmariadb/libmariadb.so] Error 1
> > > make[2]: Leaving directory '/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/build'
> > > make[1]: *** [CMakeFiles/Makefile2:243:
> > > libmariadb/CMakeFiles/libmariadb.dir/all] Error 2
> > > make[1]: Leaving directory '/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/build'
> > >
> > >
> > > am I missing a step?
> > >
> > >
> > 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.

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
> > > 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*

So, I deceded to start from with a brand new VM. Since the instructions
say to use r15c, I took one more stab at it, this time replacing the ndk
that android-studio downloads. android-studio installs ndk 17.1.482850 in
~/Android/Sdk/ndk-bundle. I moved that aside. and put android-ndk-r15c in
its place:

*$ ls -al ~/Android/Sdk*
















*total 60drwxrwxr-x. 14 john john 4096 Aug 3 20:41 .drwxrwxr-x. 3 john
john 4096 Aug 3 20:29 ..drwxr-xr-x. 15 john john 4096 Aug 3 20:44
android-ndk-r15cdrwxrwxr-x. 3 john john 4096 Aug 3 20:33
build-toolsdrwxrwxr-x. 3 john john 4096 Aug 3 20:35 cmakedrwxrwxr-x. 7
john john 4096 Aug 3 20:32 emulatordrwxrwxr-x. 4 john john 4096 Aug 3
20:32 extras-rw-rw-r--. 1 john john 16 Aug 3 20:43
.knownPackagesdrwxrwxr-x. 2 john john 4096 Aug 3 20:35
licenseslrwxrwxrwx. 1 john john 16 Aug 3 20:41 ndk-bundle ->
android-ndk-r15cdrwxrwxr-x. 13 john john 4096 Aug 3 20:38
ndk-bundle-bakdrwxrwxr-x. 3 john john 4096 Aug 3 20:31
patcherdrwxrwxr-x. 5 john john 4096 Aug 3 20:35 platformsdrwxrwxr-x. 5
john john 4096 Aug 3 20:29 platform-toolsdrwxrwxr-x. 4 john john 4096
Aug 3 20:35 sourcesdrwxrwxr-x. 6 john john 4096 Aug 3 20:31 tools*

The instructions also expect the android-sdk to be in ~/android, so I setup
a soft link from the default location of ~/Android/Sdk to
~/android/android-sdk-linux. I end up with:

*$ ls -al ~/android*




*android-ndk -> android-sdk-linux/ndk-bundleandroid-sdk-linux ->
../Android/Sdkandroid-studiomaketoolchain.shsetenv.sh*

When I go to build, I get lots of warnings:
*BFD: libncurses.so.5: cannot open shared object file: No such file or
directory*
but that does not seem to affect the build.

It still fails on mariadb, but this time the error is different:
/home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/libmariadb/my_charset.c:55:19:
fatal error: iconv.h: No such file or directory

So, I finally relented and replaced r15c with r13b. Like with r15c, I
installed into ~/Android/Sdk and adjusted the softlinks. After running
maketoolchain.sh I tried to build the libs, and once again got:
*/home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc:
Command not found*

So, from scratch again...

This time, I moved ~/Android/Sdk/ndk-bundle out of the way, and replaced it
with android-ndk-r13b. Then I soft linked that to ~/android/android-ndk .
Once again, I have ~/Android/Sdk soft linked to
~/android/android-sdk-linux. And... it still fails to build:




*make[1]: Entering directory
'/home/john/workdir/packaging/android/libs64/openssl-1.0.2l/crypto'/usr/bin/perl
../util/mkbuildinf.pl <http://mkbuildinf.pl>
"/home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc
-I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -D__ANDROID_API__=21 -mandroid -I/include -B/lib -O3
-fomit-frame-pointer -Wall" "android"
>buildinf.h/home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc
-I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -D__ANDROID_API__=21 -mandroid -I/include -B/lib -O3
-fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.cmake[1]:
/home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc:
Command not found*

With r13b, I seem to always end up with a path issue. It will build some
of the libs, but eventually fails because it cannot
findaarch64-linux-android-gcc. Honestly, it makes it further with r15c.

I am obviously making bad guesses on what to do regarding difference with
the latest package of android-studio, compared to what the instructions
expect. After hacking on this for over four hours, I am fried.

John
Re: Building for Android, mariadb issue [ In reply to ]
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.

> So, I deceded to start from with a brand new VM. Since the instructions
> say to use r15c, I took one more stab at it, this time replacing the ndk
> that android-studio downloads. android-studio installs ndk 17.1.482850 in
> ~/Android/Sdk/ndk-bundle. I moved that aside. and put android-ndk-r15c in
> its place:

The NDKs that we have been using are definitely the ones from zip
files that we downloaded and install manually. Specifically the
following.

771bb5121a78122620723af92fbfbb18 android-ndk-r13b-linux-x86_64.zip
9a52de7648f86468ea3ca0f6f08e6c57 android-ndk-r15c-linux-x86_64.zip

It is the SDK that is installed by Android Studio.

> *$ ls -al ~/Android/Sdk*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *total 60drwxrwxr-x. 14 john john 4096 Aug 3 20:41 .drwxrwxr-x. 3 john
> john 4096 Aug 3 20:29 ..drwxr-xr-x. 15 john john 4096 Aug 3 20:44
> android-ndk-r15cdrwxrwxr-x. 3 john john 4096 Aug 3 20:33
> build-toolsdrwxrwxr-x. 3 john john 4096 Aug 3 20:35 cmakedrwxrwxr-x. 7
> john john 4096 Aug 3 20:32 emulatordrwxrwxr-x. 4 john john 4096 Aug 3
> 20:32 extras-rw-rw-r--. 1 john john 16 Aug 3 20:43
> .knownPackagesdrwxrwxr-x. 2 john john 4096 Aug 3 20:35
> licenseslrwxrwxrwx. 1 john john 16 Aug 3 20:41 ndk-bundle ->
> android-ndk-r15cdrwxrwxr-x. 13 john john 4096 Aug 3 20:38
> ndk-bundle-bakdrwxrwxr-x. 3 john john 4096 Aug 3 20:31
> patcherdrwxrwxr-x. 5 john john 4096 Aug 3 20:35 platformsdrwxrwxr-x. 5
> john john 4096 Aug 3 20:29 platform-toolsdrwxrwxr-x. 4 john john 4096
> Aug 3 20:35 sourcesdrwxrwxr-x. 6 john john 4096 Aug 3 20:31 tools*
>
> The instructions also expect the android-sdk to be in ~/android, so I setup
> a soft link from the default location of ~/Android/Sdk to
> ~/android/android-sdk-linux. I end up with:

I don't remember how my SDK got to ~/android/android-sdk-linux. I
think it might have been an option when it was first installed by
Android Studio. However it got there, we are not directly referencing
any ndk-bundle within it. As noted above, we are using the separately
downloaded and installed NDKs.

> *$ ls -al ~/android*
>
>
>
>
> *android-ndk -> android-sdk-linux/ndk-bundleandroid-sdk-linux ->
> ../Android/Sdkandroid-studiomaketoolchain.shsetenv.sh*
>
> When I go to build, I get lots of warnings:
> *BFD: libncurses.so.5: cannot open shared object file: No such file or
> directory*
> but that does not seem to affect the build.

I ran into this after apt decided I no longer needed the old, ncurses
libraries. Reinstalling the old libraries solved that for me.

David

> It still fails on mariadb, but this time the error is different:
> /home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/libmariadb/my_charset.c:55:19:
> fatal error: iconv.h: No such file or directory
>
> So, I finally relented and replaced r15c with r13b. Like with r15c, I
> installed into ~/Android/Sdk and adjusted the softlinks. After running
> maketoolchain.sh I tried to build the libs, and once again got:
> */home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc:
> Command not found*
>
> So, from scratch again...
>
> This time, I moved ~/Android/Sdk/ndk-bundle out of the way, and replaced it
> with android-ndk-r13b. Then I soft linked that to ~/android/android-ndk .
> Once again, I have ~/Android/Sdk soft linked to
> ~/android/android-sdk-linux. And... it still fails to build:
>
>
>
>
> *make[1]: Entering directory
> '/home/john/workdir/packaging/android/libs64/openssl-1.0.2l/crypto'/usr/bin/perl
> ../util/mkbuildinf.pl <http://mkbuildinf.pl>
> "/home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc
> -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
> -DHAVE_DLFCN_H -D__ANDROID_API__=21 -mandroid -I/include -B/lib -O3
> -fomit-frame-pointer -Wall" "android"
> >buildinf.h/home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc
> -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
> -DHAVE_DLFCN_H -D__ANDROID_API__=21 -mandroid -I/include -B/lib -O3
> -fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.cmake[1]:
> /home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc:
> Command not found*
>
> With r13b, I seem to always end up with a path issue. It will build some
> of the libs, but eventually fails because it cannot
> findaarch64-linux-android-gcc. Honestly, it makes it further with r15c.
>
> I am obviously making bad guesses on what to do regarding difference with
> the latest package of android-studio, compared to what the instructions
> expect. After hacking on this for over four hours, I am fried.
>
> John

> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-dev
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org


--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
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

> > So, I deceded to start from with a brand new VM. Since the instructions
> > say to use r15c, I took one more stab at it, this time replacing the ndk
> > that android-studio downloads. android-studio installs ndk 17.1.482850 in
> > ~/Android/Sdk/ndk-bundle. I moved that aside. and put android-ndk-r15c in
> > its place:
>
> The NDKs that we have been using are definitely the ones from zip
> files that we downloaded and install manually. Specifically the
> following.
>
> 771bb5121a78122620723af92fbfbb18 android-ndk-r13b-linux-x86_64.zip
> 9a52de7648f86468ea3ca0f6f08e6c57 android-ndk-r15c-linux-x86_64.zip
>
> It is the SDK that is installed by Android Studio.
>
> > *$ ls -al ~/Android/Sdk*
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > *total 60drwxrwxr-x. 14 john john 4096 Aug 3 20:41 .drwxrwxr-x. 3 john
> > john 4096 Aug 3 20:29 ..drwxr-xr-x. 15 john john 4096 Aug 3 20:44
> > android-ndk-r15cdrwxrwxr-x. 3 john john 4096 Aug 3 20:33
> > build-toolsdrwxrwxr-x. 3 john john 4096 Aug 3 20:35 cmakedrwxrwxr-x. 7
> > john john 4096 Aug 3 20:32 emulatordrwxrwxr-x. 4 john john 4096 Aug 3
> > 20:32 extras-rw-rw-r--. 1 john john 16 Aug 3 20:43
> > .knownPackagesdrwxrwxr-x. 2 john john 4096 Aug 3 20:35
> > licenseslrwxrwxrwx. 1 john john 16 Aug 3 20:41 ndk-bundle ->
> > android-ndk-r15cdrwxrwxr-x. 13 john john 4096 Aug 3 20:38
> > ndk-bundle-bakdrwxrwxr-x. 3 john john 4096 Aug 3 20:31
> > patcherdrwxrwxr-x. 5 john john 4096 Aug 3 20:35 platformsdrwxrwxr-x. 5
> > john john 4096 Aug 3 20:29 platform-toolsdrwxrwxr-x. 4 john john 4096
> > Aug 3 20:35 sourcesdrwxrwxr-x. 6 john john 4096 Aug 3 20:31 tools*
> >
> > The instructions also expect the android-sdk to be in ~/android, so I setup
> > a soft link from the default location of ~/Android/Sdk to
> > ~/android/android-sdk-linux. I end up with:
>
> I don't remember how my SDK got to ~/android/android-sdk-linux. I
> think it might have been an option when it was first installed by
> Android Studio. However it got there, we are not directly referencing
> any ndk-bundle within it. As noted above, we are using the separately
> downloaded and installed NDKs.
>
> > *$ ls -al ~/android*
> >
> >
> >
> >
> > *android-ndk -> android-sdk-linux/ndk-bundleandroid-sdk-linux ->
> > ../Android/Sdkandroid-studiomaketoolchain.shsetenv.sh*
> >
> > When I go to build, I get lots of warnings:
> > *BFD: libncurses.so.5: cannot open shared object file: No such file or
> > directory*
> > but that does not seem to affect the build.
>
> I ran into this after apt decided I no longer needed the old, ncurses
> libraries. Reinstalling the old libraries solved that for me.
>
> David
>
> > It still fails on mariadb, but this time the error is different:
> > /home/john/workdir/packaging/android/libs64/mariadb-connector-c-2.1.0-src/libmariadb/my_charset.c:55:19:
> > fatal error: iconv.h: No such file or directory
> >
> > So, I finally relented and replaced r15c with r13b. Like with r15c, I
> > installed into ~/Android/Sdk and adjusted the softlinks. After running
> > maketoolchain.sh I tried to build the libs, and once again got:
> > */home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc:
> > Command not found*
> >
> > So, from scratch again...
> >
> > This time, I moved ~/Android/Sdk/ndk-bundle out of the way, and replaced it
> > with android-ndk-r13b. Then I soft linked that to ~/android/android-ndk .
> > Once again, I have ~/Android/Sdk soft linked to
> > ~/android/android-sdk-linux. And... it still fails to build:
> >
> >
> >
> >
> > *make[1]: Entering directory
> > '/home/john/workdir/packaging/android/libs64/openssl-1.0.2l/crypto'/usr/bin/perl
> > ../util/mkbuildinf.pl <http://mkbuildinf.pl>
> > "/home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc
> > -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
> > -DHAVE_DLFCN_H -D__ANDROID_API__=21 -mandroid -I/include -B/lib -O3
> > -fomit-frame-pointer -Wall" "android"
> > >buildinf.h/home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc
> > -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
> > -DHAVE_DLFCN_H -D__ANDROID_API__=21 -mandroid -I/include -B/lib -O3
> > -fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.cmake[1]:
> > /home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc:
> > Command not found*
> >
> > With r13b, I seem to always end up with a path issue. It will build some
> > of the libs, but eventually fails because it cannot
> > findaarch64-linux-android-gcc. Honestly, it makes it further with r15c.
> >
> > I am obviously making bad guesses on what to do regarding difference with
> > the latest package of android-studio, compared to what the instructions
> > expect. After hacking on this for over four hours, I am fried.
> >
> > John
>
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev@mythtv.org
> > http://lists.mythtv.org/mailman/listinfo/mythtv-dev
> > http://wiki.mythtv.org/Mailing_List_etiquette
> > MythTV Forums: https://forum.mythtv.org
>
>
> --
> David Engel
> david@istwok.net

--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
On Mon, Aug 6, 2018 at 7:19 PM David Engel <david@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.

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?

You are building it for Android version 26 (Oreo), right?

Thank you for your help with this!

John
Re: Building for Android, mariadb issue [ In reply to ]
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@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.

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
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@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

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
On 08/06/2018 06:47 PM, John P Poet wrote:

> 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.
>
> 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?
>
> You are building it for Android version 26 (Oreo), right?
>
> Thank you for your help with this!
>
> John
>

FWIW, the documentation worked for me. The difference I see is if
you're trying to build for Oreo using an SDK that pre-dates Oreo.

I used Android Studio to install the r15c SDK. I'm building for version
22 (Lollipop) versus the documentation recommending the default 21 (also
Lollipop). I also have r13b installed, but my ~/android/android-ndk
symlink is to r15c.

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
Thank you, everyone. I tried it again, and made it a lot further, with the
new knowledge.

Unfortunately, it didn't finish:

configure: error: BD-J requires ANT, but ant was not found. Please install
it.

Is this part of the clean up that David Hampton is working on?

Thanks,

John
Re: Building for Android, mariadb issue [ In reply to ]
On August 7, 2018 7:35:49 PM EDT, John P Poet <jppoet@gmail.com> wrote:
>Thank you, everyone. I tried it again, and made it a lot further, with
>the
>new knowledge.
>
>Unfortunately, it didn't finish:
>
>configure: error: BD-J requires ANT, but ant was not found. Please
>install
>it.
>
>Is this part of the clean up that David Hampton is working on?

No, that's not me. I thought bdjava was disabled by default and you had to explicitly add --enable-bdjava to configure to enable it. You should be able to disable it with the --disable-bdjava argument. Or you can install ant/apache-ant and compile in bdjava support.

David


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
On 08/07/2018 08:22 PM, David Hampton wrote:
> On August 7, 2018 7:35:49 PM EDT, John P Poet <jppoet@gmail.com> wrote:
>> Thank you, everyone. I tried it again, and made it a lot further, with
>> the
>> new knowledge.
>>
>> Unfortunately, it didn't finish:
>>
>> configure: error: BD-J requires ANT, but ant was not found. Please
>> install
>> it.
>>
>> Is this part of the clean up that David Hampton is working on?
> No, that's not me. I thought bdjava was disabled by default and you had to explicitly add --enable-bdjava to configure to enable it. You should be able to disable it with the --disable-bdjava argument. Or you can install ant/apache-ant and compile in bdjava support.
>
> David
>
>
>
After the recent changes by David Hampton I had to install ant in order
to build. I have a mental note to add that to the instructions.

Peter
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
On Tue, Aug 07, 2018 at 08:22:34PM -0400, David Hampton wrote:
> On August 7, 2018 7:35:49 PM EDT, John P Poet <jppoet@gmail.com> wrote:
> >Thank you, everyone. I tried it again, and made it a lot further, with
> >the
> >new knowledge.
> >
> >Unfortunately, it didn't finish:
> >
> >configure: error: BD-J requires ANT, but ant was not found. Please
> >install
> >it.
> >
> >Is this part of the clean up that David Hampton is working on?
>
> No, that's not me. I thought bdjava was disabled by default and you had to explicitly add --enable-bdjava to configure to enable it. You should be able to disable it with the --disable-bdjava argument. Or you can install ant/apache-ant and compile in bdjava support.

Stuart A. added ant to the dependency list in the Readme.md file
today. I assume after he ran into the same problem.

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Building for Android, mariadb issue [ In reply to ]
On Tue, Aug 7, 2018 at 6:23 PM David Hampton <mythtv@love2code.net> wrote:

> On August 7, 2018 7:35:49 PM EDT, John P Poet <jppoet@gmail.com> wrote:
> >Thank you, everyone. I tried it again, and made it a lot further, with
> >the
> >new knowledge.
> >
> >Unfortunately, it didn't finish:
> >
> >configure: error: BD-J requires ANT, but ant was not found. Please
> >install
> >it.
> >
> >Is this part of the clean up that David Hampton is working on?
>
> No, that's not me. I thought bdjava was disabled by default and you had
> to explicitly add --enable-bdjava to configure to enable it. You should be
> able to disable it with the --disable-bdjava argument. Or you can install
> ant/apache-ant and compile in bdjava support.
>

Thanks David. To be clear, this is from running makelibs, which is trying
to build libbluray. I modified it to not build that lib. It is now past
that and building Qt.

John
Re: Building for Android, mariadb issue [ In reply to ]
On 08/08/18 12:01, John P Poet wrote:
> On Tue, Aug 7, 2018 at 6:23 PM David Hampton <mythtv@love2code.net
> <mailto:mythtv@love2code.net>> wrote:
>
> On August 7, 2018 7:35:49 PM EDT, John P Poet <jppoet@gmail.com
> <mailto:jppoet@gmail.com>> wrote:
> >Thank you, everyone.  I tried it again, and made it a lot
> further, with
> >the
> >new knowledge.
> >
> >Unfortunately, it didn't finish:
> >
> >configure: error: BD-J requires ANT, but ant was not found. Please
> >install
> >it.
> >
> >Is this part of the clean up that David Hampton is working on?
>
> No,  that's not me.  I thought bdjava was disabled by default and
> you had to explicitly add --enable-bdjava to configure to enable
> it.  You should be able to disable it with the --disable-bdjava
> argument. Or you can install ant/apache-ant and compile in bdjava
> support.
>
>
> Thanks David.  To be clear, this is from running makelibs, which is
> trying to build libbluray.  I modified it to not build that lib.  It
> is now past that and building Qt.
>
>
ANT was deprecated in favour of gradle for the android build bits.
I didn't notice since I have ant installed on my build host. just an
apt-get away.

not sure why libblueray builds differently now, unless there was some
massaging of the makefile to work correctly within the mythtv make
environment. or its a later version that fundamentally changed its build
system.

I was thinking of using conan or hunter maybe to manage the packages so
we dont have to. Just found out about them recently.

Mark