Hi!
I'm trying to build small console app to be run on Android. Here is the code of regexp_test.nim
import re
const
str = "key = value"
pattern = r"\w+\s*=\s*\w+"
echo str=~re(pattern)
the configuration regexp_test.nim.cfg
arm.linux.gcc.path = "/home/user/workspace/android/android-ndk/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin"
arm.linux.gcc.exe = "arm-linux-androideabi-gcc"
arm.linux.gcc.linkerexe = "arm-linux-androideabi-gcc"
and the build script build.sh
#!/bin/sh
PATH="$HOME/bin:$PATH"
SYSROOT="$HOME/workspace/android/android-ndk/android-toolchain/sysroot"
nim c --cpu:arm --os:linux --parallelBuild:1 --passC:--sysroot="$SYSROOT" --passL:--sysroot="$SYSROOT" regexp_test.nim
The program is built sucessfully, but if I try to execute it on Android, then I get the error message:
could not load: libpcre.so(.3|.1|)
How can I build nim programs, which require some standard libraries (e.g. pcre, curl etc.) to be run on Android?
Thanks in advance! :-)