How do I use Qt in an Android NativeActivity project in Visual Studio 2015 or 2017.

I am having link issues.

I am trying code like below. But obviously, there must be a cleaner approach.

Any one has an example? and can describe steps for integrating Qt into android_main(struct android_app* state)

Please help show how to integrate Qt into
* This is the main entry point of a native application that is using
* android_native_app_glue. It runs in its own thread, with its own
* event loop for receiving input events and doing other things.

void android_main(struct android_app* state) {

int argc = 0;
char* argv[] = {};
QApplication a(argc, argv);