Log in or register to post comments

'QCAR' has not been declared problem in generating the shared object in ImageTargets

June 13, 2011 - 5:19pm #1

Can anyone help me with my problem? My problem is that
whenever I execute the command "ndk-build" as instructed in the tutorial for the ImageTargets sample, it always resulted in an Error.

The error says that:
"ImageTargets.cpp:408: error: 'QCAR' has not been declared"

Any help would be appreciated! Thanks!

Re: 'QCAR' has not been declared problem in generating the share

June 20, 2011 - 7:46am #7

mm i download the last version who is the android-ndk-r5c but also i have some problems

Darkmax@Darkmax-PC /cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets
$ ndk-build
Gdbserver      : [arm-eabi-4.4.0] /cygdrive/c/Development/Android/qcar-sdk-1-0-0
/samples/ImageTargets/libs/armeabi/gdbserver
Gdbsetup       : /cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTar
gets/libs/armeabi/gdb.setup
Gdbsetup       : + source directory /cygdrive/c/Development/Android/qcar-sdk-1-0
-0/samples/ImageTargets/jni
Gdbserver      : [arm-eabi-4.4.0] /cygdrive/c/Development/Android/qcar-sdk-1-0-0
/samples/ImageTargets/libs/armeabi-v7a/gdbserver
Gdbsetup       : /cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTar
gets/libs/armeabi-v7a/gdb.setup
Gdbsetup       : + source directory /cygdrive/c/Development/Android/qcar-sdk-1-0
-0/samples/ImageTargets/jni
Compile++ arm  : ImageTargets <= /cygdrive/c/Development/Android/qcar-sdk-1-0-0/
samples/ImageTargets/jni/ImageTargets.cpp
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:29:23: error: QCAR/QCAR.h: No such file or directory
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:30:31: error: QCAR/CameraDevice.h: No such file or directory
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:31:27: error: QCAR/Renderer.h: No such file or directory
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:32:40: error: QCAR/VideoBackgroundConfig.h: No such file or directory
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:33:28: error: QCAR/Trackable.h: No such file or directory
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:34:23: error: QCAR/Tool.h: No such file or directory
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:35:26: error: QCAR/Tracker.h: No such file or directory
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:36:36: error: QCAR/CameraCalibration.h: No such file or directory
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:69: error: 'QCAR' has not been declared
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:69: error: expected constructor, destructor, or type conversion before
'projectionMatrix'
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp: In function 'void Java_com_qualcomm_QCARSamples_ImageTargets_ImageTarg
etsRenderer_renderFrame(JNIEnv*, _jobject*)':
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:112: error: 'QCAR' has not been declared
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:112: error: expected ';' before 'state'
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:129: error: 'state' was not declared in this scope
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:132: error: 'QCAR' has not been declared
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:132: error: expected initializer before '*' token
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:133: error: 'QCAR' has not been declared
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:133: error: expected ';' before 'modelViewMatrix'
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:137: error: 'trackable' was not declared in this scope
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:160: error: 'QCAR' has not been declared
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:160: error: expected ';' before 'modelViewProjection'
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:163: error: 'modelViewMatrix' was not declared in this scope
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:166: error: 'projectionMatrix' was not declared in this scope
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:168: error: 'modelViewProjection' was not declared in this scope
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:208: error: 'QCAR' has not been declared
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp: In function 'void configureVideoBackground()':
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets/jni/ImageTar
gets.cpp:217: error: 'QCAR' has not been declared
/cygdrive/c/Development/Android/qcar-sdk-1-0-0/samples/ImageTargets
.....
.....

Also i have some problems that before i didnt have, but i can compile the samples from ndk version 5c.

So i don't know why im getting this errors

EDIT: Never mind i forgot to change some variables from my environment, now works like a charm

Re: 'QCAR' has not been declared problem in generating the share

June 20, 2011 - 7:14am #6

QCAR requires android-ndk-r5 at a minimum, android-ndk-r5b is recommended.

- Kim

Re: 'QCAR' has not been declared problem in generating the share

June 20, 2011 - 7:10am #5

also i have the same problem and also i can build the samples on the ndk(ej. san-angeles), but i'm using android-ndk-r4-crystax, because in another projects im using this version. I hope this is not a problem

Re: 'QCAR' has not been declared problem in generating the share

June 14, 2011 - 6:01pm #4

Hello,

Please make sure the Image Targets sample is in the original install location. Moving it may break some dependencies. If that is not the issue, can you provide the full logs from running ndk-build ?

Thank you,

-Peter

Re: 'QCAR' has not been declared problem in generating the share

June 13, 2011 - 10:41pm #3
ppreuss wrote:

Hello,

Are you able to successfully compile any of the ndk-build sample applications? Try compiling the san-angeles sample app:

cd /cygdrive/c/Development/Android/android-ndk-r5b/samples/san-angeles
ndk-build

-Peter

Hi peter!

Yes, I was able to successfully compile(without errors) the san-angeles sample application from the android-ndk-r5b folder.

-JD

Re: 'QCAR' has not been declared problem in generating the share

June 13, 2011 - 6:14pm #2

Hello,

Are you able to successfully compile any of the ndk-build sample applications? Try compiling the san-angeles sample app:

cd /cygdrive/c/Development/Android/android-ndk-r5b/samples/san-angeles
ndk-build

-Peter

Log in or register to post comments