Using a java method in Qt that returns double array

113 views Asked by At

I want to use java code inside my Qt Android app.

So, I use a QAndroidJniObject with the method callMethod, and it is supposed to return a jdoubleArray.It takes a const char argument.

QAndroidJniObject javaCode = QAndroidJniObject("/myJavaCode");
    jdoubleArray result = javaCode.callMethod<jdoubleArray>("detect", "([C)[D", buffer_java);

I don't know why but it doesn't compile, but I saw some examples with int that seemed to works fine.

error: undefined reference to '_jdoubleArray* QAndroidJniObject::callMethod<_jdoubleArray*>(char const*, char const*, ...) const'

Thanks for your answers

Pierre

0

There are 0 answers