How to support sqlite3

#1

hello,I want to operate sqlite db in cpp files, and I include <sqlite3.h> in my cpp code, and I’am using android-ndk-r15c, the ndk also includes the file sqlite3.h, and the ndk path
android-ndk-r15c\platforms\android-19\arch-arm\usr\lib with the file libsqlite3.so,
and now I’ve add “PLATFORM_LIBRARIES += sqlite3” in of_v0.10.1_android_release\libs\openFrameworksCompiled\project\android\config.android.default.mk,
but when I build the project in android studio, link fail:

linking libOFAndroidApp.so failed.
C:\Users\shi_s\Desktop\of_v0.10.1_android_release\examples\android\androidAssimpExample\src/MyThread.cpp:94: error: undefined reference to ‘sqlite3_open’
C:\Users\shi_s\Desktop\of_v0.10.1_android_release\examples\android\androidAssimpExample\src/MyThread.cpp:96: error: undefined reference to ‘sqlite3_errmsg’
C:\Users\shi_s\Desktop\of_v0.10.1_android_release\examples\android\androidAssimpExample\src/MyThread.cpp:112: error: undefined reference to ‘sqlite3_exec’
C:\Users\shi_s\Desktop\of_v0.10.1_android_release\examples\android\androidAssimpExample\src/MyThread.cpp:115: error: undefined reference to ‘sqlite3_free’
C:\Users\shi_s\Desktop\of_v0.10.1_android_release\examples\android\androidAssimpExample\src/MyThread.cpp:120: error: undefined reference to ‘sqlite3_close’
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)

Could anyone tell me how to fix it, thanks!!