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 \
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
/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
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