macOS trying to compile rust lib for android, using sqlite3, I defined the linker properly before intending to add the
sqlite3 dependencies, at it worked very well with me.
Once I added the rustqlite dependences, and wanted to compile, I got the below error, that is telling the linker is not finding the sqlite3 lib
cargo build --target x86_64-linux-android --release
= note: /Users/…/NDK/x86_64/bin/…/lib/gcc/x86_64-linux-android/4.9.x/…/…/…/…/x86_64-linux-android/bin/ld: error: cannot find -lsqlite3
clang70: error: linker command failed with exit code 1 (use -v to see invocation)
Knowing that my sqlite3 is avaiable at
/usr/bin/sqlite3 I added it to
source ~/.profile but the error still there!