Log in or register to post comments

How to fix such kind of error

June 20, 2013 - 5:15am #3

I am following tutorial  

Open a Web Site and Display Toast on Target Detection

but while running ndk-build it show such kind of  error

 

"Compile++ arm  : ImageTargets <= ImageTargets.cpp
jni/ImageTargets.cpp: In function 'void Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame(JNIEnv*, jobject)':
jni/ImageTargets.cpp:588:29: error: 'lt' was not declared in this scope
jni/ImageTargets.cpp:588:39: error: 'class QCAR::State' has no member named 'getNumActiveTrackables'
jni/ImageTargets.cpp:588:63: error: expected ')' before ';' token
jni/ImageTargets.cpp:588:65: error: name lookup of 'tIdx' changed for ISO 'for' scoping [-fpermissive]
jni/ImageTargets.cpp:588:65: note: (if you use '-fpermissive' G++ will accept your code)
jni/ImageTargets.cpp:588:71: error: expected ';' before ')' token
jni/ImageTargets.cpp:960:1: error: expected '}' at end of input
jni/ImageTargets.cpp: At global scope:
jni/ImageTargets.cpp:960:1: error: expected '}' at end of input

make: *** [obj/local/armeabi/objs/ImageTargets/ImageTargets.o] Error 1

How to fix such kind of error

June 20, 2013 - 5:55am #2

Hi, yes, you need to replace the getNu;ActiveTrackables() with getNumTrackableResults(); however, the easiest is to follow this version of the tutorial, which contains up-to-date code:

https://developer.vuforia.com/forum/faq/android-how-can-i-update-my-ui-response-tracking-events

 

How to fix such kind of error

June 20, 2013 - 7:43am #1

Thank you for reply, best regards

Log in or register to post comments