Hi,
First Thank you very much for OSG Android.
I am new to Android-ndk. I have a library (QCAR ) for AR. I am trying to use
OSG as a render engine for QCAR. So I want to include OSG in QCAR program. I
include some of OSG includes in my C++ program. When I compile I am getting
error. My Android.mk file looks like this
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OSG_ANDROID_DIR :=
/root/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets
LIBDIR := $(OSG_ANDROID_DIR)/obj/local/armeabi
LOCAL_C_INCLUDES:= $(OSG_ANDROID_DIR)/include
LOCAL_CPPFLAGS := -DOSG_LIBRARY_STATIC
include $(CLEAR_VARS)
LOCAL_MODULE := QCAR-prebuilt
LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := ImageTargets
LOCAL_CFLAGS := -Wno-write-strings $(OPENGLES_DEF)
LOCAL_LDLIBS := \
-llog $(OPENGLES_LIB)
LOCAL_SHARED_LIBRARIES := QCAR-prebuilt
LOCAL_SRC_FILES := .....
include $(BUILD_SHARED_LIBRARY)
when I compile (ndk-build) I am getting the following error
jni/ImageTargets.cpp:17:31: error: osgDB/DatabasePager: No such file or
directory
jni/ImageTargets.cpp:18:26: error: osgDB/Registry: No such file or directory
jni/ImageTargets.cpp:19:26: error: osgDB/ReadFile: No such file or directory
jni/ImageTargets.cpp:20:27: error: osgDB/WriteFile: No such file or directory
make: *** [obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o] Error 1
All these errors with OSG lib. Can you please help me how to compile this?
...
Thank you!
Cheers,
Koduri
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48047#48047
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org