By UlanSdu
on Fri, 06/21/2013 - 09:20
I am following the tutorial of moving 3d model, but after ndk-build command it gives, such kind of error, "Compile++ arm : ImageTargets <= ImageTargets.cppjni/ImageTargets.cpp: In function 'void computeTargetTranslationFromScreenVector(float, float, QCAR::Matrix44F&, QCAR::Vec3F&)':jni/ImageTargets.cpp:452:20: error: 'SampleMath' has not been declaredjni/ImageTargets.cpp:456:43: error: 'SampleMath' has not been declaredjni/ImageTargets.cpp:460:65: error: 'fabs' was not declared in this scopemake: *** [obj/local/armeabi/objs/ImageTargets/ImageTargets.o] Error 1 i tryed to include SampleMath.h, but no results, and what is fabs?
How to fix such kind of error
Have you addes "SampleMath.cpp" to your Android.mk file and included "SampleMath.h" ?