Log in or register to post comments

Compling problem when replace tea pot

May 28, 2012 - 4:19am #1

Hi,

I am new to QCAR and Android . I want to replace tea pot in "ImageTargets" example with some 3D rendering lib. For this I choose OSG (OpenSceneGraph). I build OSG for Android.
At resent we can build only static lib for OSG.

When I include OSG files I am getting errors as follows

jni/ImageTargets.cpp:23:18: error: osg/GL: No such file or directory
jni/ImageTargets.cpp:24:28: error: osg/GLExtensions: No such file or directory
jni/ImageTargets.cpp:25:21: error: osg/Depth: No such file or directory
jni/ImageTargets.cpp:26:23: error: osg/Program: No such file or directory
jni/ImageTargets.cpp:27:22: error: osg/Shader: No such file or directory
jni/ImageTargets.cpp:28:20: error: osg/Node: No such file or directory
jni/ImageTargets.cpp:29:22: error: osg/Notify: No such file or directory

For specifying path I used the flag as "LOCAL_C_INCLUDES:= $(OSG_ANDROID_DIR)/include" . But still I am getting errors.

If I specify the path as follows
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include \
$(OSG_ANDROID_DIR)/include

then I am getting soo many errors. The errors as follows

/root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets/include/osg/MixinVector:99: error: '_impl' was not declared in this scope
/root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets/include/osg/MixinVector: In member function 'int osg::MixinVector::end()':
/root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets/include/osg/MixinVector:100: error: '_impl' was not declared in this scope

...................................

/root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets/include/osg/BufferObject: At global scope:
/root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets/include/osg/BufferObject:352: error: ISO C++ forbids declaration of 'vector' with no type
/root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets/include/osg/BufferObject:352: error: typedef name may not be a nested-name-specifier
/root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets/include/osg/BufferObject:352: error: expected ';' before ' /root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets/include/osg/BufferObject:353: error: 'BufferEntries' does not name a type

and many

All errors are from OSG includes. I think QCAR is shared library. Is there any conflicts between QCAR shred lib and OSG static lib. If so how can solve this problem.

Thank in Anvance
anki

Compling problem when replace tea pot

July 6, 2012 - 12:03am #4

Hi! I hope someone help me. 

 

I did the instructions as what stated here. But unlike most of you, my result was not as expected.

 

My result was still a teapot  but with the texture of the banana. I don't know what went wrong. I hope someone help me.

 

Thank you.

Re: Compling problem when replace tea pot

June 10, 2012 - 7:39am #3

Hi,

Thanks for your previous help DavidBeard! I am slowly getting somewhere though now I have a similar problem to this. I am trying to replace the teapot also and I think I might have done so. Now I want to run my program and test it but when I come to run it, it gets stuck on launch. I think.

The problem seems to be the way now there is an error next to every; #include <GLES2/*.h> and #include <QCAR/*.h> saying "Unresolved inclusion". I think the program is now having trouble finding these folders. Do you know how I can resolve this issue or could you please point me in the direction of how to find out? (I've had a look through both of your past posts for a solution. Where abouts was it?)

Thanks again! :-)

Re: Compling problem when replace tea pot

June 5, 2012 - 3:22pm #2

Please seem my response to your other post on this issue. I think that you're going to need to define a module for this library in your make file.

Log in or register to post comments