Hi all,
I read lots of tutors about Urho3D compilation for android and there is was cmake flag -DANDROID_STL=c++_static
in some of them.
I want to understand what does the this flag and what it affects.
Because when I set up it my compilation fails with a lot of mistakes like:
../Urho3D/src2/Source/Urho3D/Physics/CollisionShape.cpp:1054: error: undefined reference to '__dynamic_cast'
../Urho3D/src2/Source/Urho3D/Physics/CollisionShape.cpp:1092: error: undefined reference to '__dynamic_cast'
../Urho3D/src2/Source/Urho3D/Scene/Scene.cpp:152: error: undefined reference to '__dynamic_cast'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/vector:751: error: undefined reference to '__cxa_call_unexpected'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/map:561: error: undefined reference to '__cxa_call_unexpected'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/map:561: error: undefined reference to '__cxa_call_unexpected'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/map:561: error: undefined reference to '__cxa_call_unexpected'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:488: error: undefined reference to '__cxa_end_catch'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:488: error: undefined reference to '__cxa_begin_catch'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:488: error: undefined reference to '__cxa_end_catch'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:458: error: undefined reference to '__cxa_begin_catch'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:755: error: undefined reference to '__cxa_begin_catch'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: error: undefined reference to '__cxa_allocate_exception'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: error: undefined reference to '__cxa_throw'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: error: undefined reference to '__cxa_free_exception'
../android-ndk-r12b/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: error: undefined reference to 'vtable for std::length_error'
../android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function (see go/missingkeymethod)
so I want to understand what it affects and what is wrong with it?
What is the difference from -DANDROID_STL=gnustl_static
and -DANDROID_STL=c++_shared
?
Thanks in advance.