Hmm. Even with the osgPresentation issue fixed, I'm unable to build the
libs....

I get hundreds of errors like:

/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi-v7a/objs-debug/osgDB/SharedStateManager.o: in function
construction vtable for
osg::NodeVisitor-in-osgDB::SharedStateManager:SharedStateManager.cpp(.
data.rel.ro+0x158): error: undefined reference to 'virtual thunk to
osg::NodeVisitor::~NodeVisitor()'
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi-v7a/objs-debug/osgDB/SharedStateManager.o: in function
construction vtable for
osg::NodeVisitor-in-osgDB::SharedStateManager:SharedStateManager.cpp(.
data.rel.ro+0x15c): error: undefined reference to 'virtual thunk to
osg::NodeVisitor::~NodeVisitor()'
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi-v7a/objs-debug/osgDB/Version.o: in function
osgDBGetVersion:/home/preet/Downloads/build/osg-3.2.0/src/osgDB/Version.cpp:20:
error: undefined reference to 'osgGetVersion'
collect2: ld returned 1 exit status
make[3]: *** [obj/local/armeabi-v7a/libosgDB.so] Error 1
make[2]: *** [Android-OpenSceneGraph] Error 2
make[1]: *** [CMakeFiles/ndk.dir/all] Error 2


I thought this might be related to:
http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2013-July/063911.html

But I'm having issues building the libs -- haven't gotten to the part where
I try out an example yet... in any case, I tried adding a

LOCAL_LDFLAGS :=
/home/preet/Dev/env/sys/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/libgnustl_static.a
(or shared ... I tried to build both but they both fail at the same point)

to the top level Android.mk file in the cmake build dir but that doesn't
help.

Any advice would be appreciated.


Preet
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to