Call Android Java Codes From C++

Ibrahim_Tech

New member
Jan 13, 2017
1
0
0
Visit site
Hi; I'm using Qt Creator IDE. When I compiled my JNI code for Android ARMv7, I get this error: Cannot find -ljvm.

Whereas I included this parameters in the .pro file: https://paste.ubuntu.com/23787345/

Then I found other jni.h files. They are in that positions: https://paste.ubuntu.com/23787350/

Also I think I need libjvm.so file for JNI. libjvm.so file is in that position: https://paste.ubuntu.com/23787355/

I used this setting: https://paste.ubuntu.com/23786707/ I get this error: JNI_CreateJavaVM was not declared in this scope.

How can I use JNI for Android (call Java codes from C++)? And which should I use jni.h and libjvm.so files?

Thanks.
 

Forum statistics

Threads
943,806
Messages
6,920,150
Members
3,159,243
Latest member
autocascade