Call Android Java Codes From C++

Ibrahim_Tech

New member
Jan 13, 2017
1
0
0
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.
 

Trending Posts

Members online

Forum statistics

Threads
956,589
Messages
6,968,982
Members
3,163,580
Latest member
Adamsapple