Hello there
I created new native functions that I can access from the MultiTargets.java, by declaring them as "private native void nameofthefunction()".
My problem is that I can't find some native functions from the MultiTargetsRenderer.java.
In MultiTargets.cpp :
JNIEXPORT jboolean JNICALL
Java_com_qualcomm_QCARSamples_MultiTargets_MultiTargets_myMethod(JNIEnv *,jobject){ ... }
In MultiTargetsRenderer.java :
public native void myMethod();
public void onDrawFrame(GL10 gl){
[INDENT]myMethod();
}[/INDENT]
Gives me at execution :
java.lang.UnsatisfiedLinkError : myMethod
I don't understand, because methods like renderFrame from MultiTargets.cpp are known by MultiTargetsRenderer.java..
Note : Project is compiled with ndk-build, I cleaned up the project, then re-compiled again...
Thanks,
Thanks a lot Kim, I did not take a look to the method signature..