[BRLTTY] Building for android

Dave Mielke Dave at mielke.cc
Tue May 10 10:25:57 EDT 2022


[quoted lines by payman shaykhmehdi on 2022/05/10 at 15:08 +0430]

>running `cfg-android` gives the following errors :
>
>/mk4build: 104: ./mk4build: let: not found

The let command is in bash but not in the POSIX shell. If a system has /bin/sh symlinked to /bin/bash (like mine does) then this problem does't occur, but when it's symlinked to /bin/dash then it does. The proper solution isn't to change the symlink, but, rather, to fix the first line in the script to specify #!/bin/bash rather than #!/bin/sh. I've been fixing those slowly.

The mk4build script was fixed between 6.4 and now. You should probably be building from master anyway. In fact, I'd appreciate it if you'd give that a try in case you encounter more problems. If you do, it'd be nice to address them before 6.5 is released.

>Now I've several apks in  "Android/Gradle/app/build/outputs/apk/debug/",
>which one should I install? Is that *app-universal-debug.apk ?*

Either the universal one or the one that's specifically for your architecture. The universal one can be used for any architecture because it contains all of the architecture-specific ones - which makes it much larger. I think, therefore, that you should be using the architecture-specific one.

-- 
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke            | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave at Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada  K2A 1H7   |


More information about the BRLTTY mailing list