<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-m_4980026279823735726gmail-m_5223036079504532491gmail-HOEnZb"><div class="gmail-m_4980026279823735726gmail-m_5223036079504532491gmail-h5">
> > which ndk?<br>
> > I have validated 13b<br>
> > 14 onwards has missing headers.<br>
> > The other thing to check is your default environment. printenv.<br>
> > Not sure otherwise.<br>
> <br>
> I vaguely remember some nl_langinfo problem, but not the solution.<br>
> I'm searching my old emails.  I'll reply if find something.<br>
<br>
</div></div>My search didn't yield anything.  As Mark said, make sure you're using<br>
the currently, preferred NDK.  Also, make sure you run "./makelibs.sh<br>
all" instead of simply "./makelibs.sh".  I know that tripped me up at<br>
first.<br></blockquote><div><br></div>I downloaded and linked r13b.  That seems to mess up the toolchain.  Even after re-running maketoolchain.sh, I got:<div><b> /home/john/android/android-nd<wbr>k/my-android-toolchain64/bin/<wbr>aarch64-linux-android-gcc: Command not found</b><br></div><div><br></div><div>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:</div><div><b><br></b></div><div><b>$ ls -al ~/Android/Sdk</b></div><div><b>total 60<br>drwxrwxr-x. 14 john john 4096 Aug  3 20:41 .<br>drwxrwxr-x.  3 john john 4096 Aug  3 20:29 ..<br>drwxr-xr-x. 15 john john 4096 Aug  3 20:44 android-ndk-r15c<br>drwxrwxr-x.  3 john john 4096 Aug  3 20:33 build-tools<br>drwxrwxr-x.  3 john john 4096 Aug  3 20:35 cmake<br>drwxrwxr-x.  7 john john 4096 Aug  3 20:32 emulator<br>drwxrwxr-x.  4 john john 4096 Aug  3 20:32 extras<br>-rw-rw-r--.  1 john john   16 Aug  3 20:43 .knownPackages<br>drwxrwxr-x.  2 john john 4096 Aug  3 20:35 licenses<br>lrwxrwxrwx.  1 john john   16 Aug  3 20:41 ndk-bundle -> android-ndk-r15c<br>drwxrwxr-x. 13 john john 4096 Aug  3 20:38 ndk-bundle-bak<br>drwxrwxr-x.  3 john john 4096 Aug  3 20:31 patcher<br>drwxrwxr-x.  5 john john 4096 Aug  3 20:35 platforms<br>drwxrwxr-x.  5 john john 4096 Aug  3 20:29 platform-tools<br>drwxrwxr-x.  4 john john 4096 Aug  3 20:35 sources<br>drwxrwxr-x.  6 john john 4096 Aug  3 20:31 tools</b><br><br></div><div>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:</div><div><br></div><div><b>$ ls -al ~/android</b></div><div><b>android-ndk -> android-sdk-linux/ndk-bundle<br>android-sdk-linux -> ../Android/Sdk<br>android-studio<br>maketoolchain.sh<br>setenv.sh</b><br></div><div><br></div><div>When I go to build, I get lots of warnings:<br></div><div><b>BFD: libncurses.so.5: cannot open shared object file: No such file or directory</b><br></div><div>but that does not seem to affect the build.</div><div><br></div><div>It still fails on mariadb, but this time the error is different:</div><div>/home/john/workdir/packaging/<wbr>android/libs64/mariadb-<wbr>connector-c-2.1.0-src/<wbr>libmariadb/my_charset.c:55:19: fatal error: iconv.h: No such file or directory</div><div><br></div><div>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:</div><div><b>/home/john/android/android-<wbr>ndk/my-android-toolchain64/<wbr>bin/aarch64-linux-android-gcc: Command not found</b><br></div><div></div><div><br></div><div>So, from scratch again...</div><div></div><div><br></div><div>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:<br></div><div><br></div><div><b>make[1]: Entering directory '/home/john/workdir/packaging/android/libs64/openssl-1.0.2l/crypto'<br>/usr/bin/perl ../util/<a href="http://mkbuildinf.pl">mkbuildinf.pl</a> "/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<br>/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.c<br>make[1]: /home/john/android/android-ndk/my-android-toolchain64/bin/aarch64-linux-android-gcc: Command not found</b><br></div><div><br></div><div>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.<br></div><div><br></div><div>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.</div><div><br></div><div>John</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div>