I am one step closer, I created a new docker container - after pulling this 
image: docker pull bitriseio/android-ndk

Then I installed the following in that container:

apt-get update apt-get install clang apt-get install mingw-w64 apt-get install 
-y curl curl 
[https://nim-lang.org/choosenim/init.sh](https://nim-lang.org/choosenim/init.sh)
 -sSf | sh apt-get install gcc-arm-linux-gnueabihf export 
PATH=/root/.nimble/bin:$PATH

I then managed to compile my nim program successfully using this line

> nim c --cpu:arm --os:linux --parallelBuild:1 --passC:--sysroot="$SYSROOT" 
> \--passL:--sysroot="$SYSROOT" ./hello.nim

# here is the output

root@df06d6ea4b99:/src# nim c --cpu:arm --os:linux --parallelBuild:1 
--passC:--sysroot="$SYSROOT" \--passL:--sysroot="$SYSROOT" 
"NimProject/hello.nim" Hint: used config file 
'/root/.choosenim/toolchains/nim-1.0.6/config/nim.cfg' [Conf] Hint: used config 
file '/src/NimProject/nim.cfg' [Conf] Hint: system [Processing] Hint: widestrs 
[Processing] Hint: io [Processing] Hint: hello [Processing] Hint: 
arm-linux-gnueabihf-gcc -c -w --sysroot= 
-I/root/.choosenim/toolchains/nim-1.0.6/lib -I/src/NimProject -o 
/root/.cache/nim/hello_d/stdlib_io.nim.c.o 
/root/.cache/nim/hello_d/stdlib_io.nim.c [Exec] Hint: arm-linux-gnueabihf-gcc 
-c -w --sysroot= -I/root/.choosenim/toolchains/nim-1.0.6/lib -I/src/NimProject 
-o /root/.cache/nim/hello_d/stdlib_system.nim.c.o 
/root/.cache/nim/hello_d/stdlib_system.nim.c [Exec] Hint: 
arm-linux-gnueabihf-gcc -c -w --sysroot= 
-I/root/.choosenim/toolchains/nim-1.0.6/lib -I/src/NimProject -o 
/root/.cache/nim/hello_d/@mhello.nim.c.o /root/.cache/nim/hello_d/@mhello.nim.c 
[Exec] Hint: [Link] Hint: operation successful (14503 lines compiled; 1.093 sec 
total; 16MiB peakmem; Debug Build) [SuccessX]

but now what do i have to do to package this binary that was created to get an 
APK file that I can copy to my android device?

Reply via email to