< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
Hi All,
I get linking errors while porting reSIProcate code to my android
build system.
Please let me know what I am missing. Below is my Android.mk and
linking errors (there are many errors. I just copied couple of them)..
> <<<<< my android.mk >>>>
>
> myResip := $(call my-dir)
> #include $(call all-subdir-makefiles)
> LOCAL_PATH := $(myResip)
> include $(CLEAR_VARS)
>
>
> LOCAL_MODULE := myResipLib
>
> LOCAL_C_INCLUDES = $(COMMON_C_INCLUDES)
> LOCAL_CFLAGS := $(COMMON_CFLAGS)
> LOCAL_CFLAGS += -Werror=implicit-function-declaration \
> -Werror=missing-field-initializers \
> -Werror=declaration-after-statement
>
> ENABLE_RESIP_PARSER := true
>
> STACK_DIR := resip/stack
> DUM_DIR := resip/dum
> RUTIL_DIR := rutil
>
> LOCAL_CPP_EXTENSION := .cxx
> LOCAL_CPPFLAGS := -Wno-sign-compare \
> -D__ANDROID__ \
> -Wno-missing-field-initializers \
> -Wno-non-virtual-dtor \
> -Wno-return-type \
> -frtti \
> -fexceptions
>
> LOCAL_NDK_STL_VARIANT := stlport_static
>
> LOCAL_SDK_VERSION := 18
>
> LOCAL_SRC_FILES += ## ADDED resiprocate source files
>
> LOCAL_LDLIBS += -Lprebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/libs/$(TARGET_CPU_ABI) -llibgnustl_static \
> -Lprebuilts/ndk/current/sources/cxx-
> stl/stlport/libs/$(TARGET_CPU_ABI) -llibstlport_static \
>
> LOCAL_C_INCLUDES += $(module_includes)
> LOCAL_C_INCLUDES += $(LOCAL_PATH)/SIPParser2 \
> system/core/include \
> bionic \
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include \
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/libs/$(TARGET_CPU_ABI)/include \
> prebuilts/ndk/current/sources/cxx-stl/stlport/using/
>
> LOCAL_SHARED_LIBRARIES += libcutils libstlport
>
> all_inclues := $(LOCAL_C_INCLUDES)
> include $(BUILD_STATIC_LIBRARY)
>
>
> <<<<<< compilation errors >>>>>>
>
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/bits/basic_string.h:246: error: undefined reference
> to 'std::string::_Rep::_M_destroy(std::allocator<char> const&)'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/bits/basic_string.h:246: error: undefined reference
> to 'vtable for std::basic_stringbuf<char, std::char_traits<char>,
> std::allocator<char> >'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/bits/basic_string.h:246: error: undefined reference
> to 'std::string::_Rep::_S_empty_rep_storage'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:519: error: undefined reference to
> 'std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:520: error: undefined reference to 'VTT for
> std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:520: error: undefined reference to 'vtable
> for std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:520: error: undefined reference to 'vtable
> for std::basic_stringbuf<char, std::char_traits<char>,
> std::allocator<char> >'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:520: error: undefined reference to
> 'std::string::_Rep::_S_empty_rep_storage'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:565: error: undefined reference to
> 'std::basic_stringbuf<char, std::char_traits<char>,
> std::allocator<char> >::str() const'
> myRESIP/resip_lib.cxx:117: error: undefined reference to
> 'std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >::~basic_stringstream()'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:565: error: undefined reference to
> 'std::basic_stringbuf<char, std::char_traits<char>,
> std::allocator<char> >::str() const'
> myRESIP/resip_lib.cxx:111: error: undefined reference to
> 'std::basic_string<char, std::char_traits<char>, std::allocator<char>
> >::~basic_string()'
> myRESIP/resip_lib.cxx:117: error: undefined reference to
> 'std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >::~basic_stringstream()'
> myRESIP/resip_lib.cxx:111: error: undefined reference to
> 'std::string::_Rep::_S_empty_rep_storage'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:565: error: undefined reference to
> 'std::basic_stringbuf<char, std::char_traits<char>,
> std::allocator<char> >::str() const'
> myRESIP/resip_lib.cxx:277: error: undefined reference to
> 'std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >::~basic_stringstream()'
> myRESIP/resip_lib.cxx:277: error: undefined reference to
> 'std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >::~basic_stringstream()'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:565: error: undefined reference to
> 'std::basic_stringbuf<char, std::char_traits<char>,
> std::allocator<char> >::str() const'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/ostream:194: error: undefined reference to
> 'std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:519: error: undefined reference to
> 'std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'
> prebuilts/ndk/current/sources/cxx-stl/gnu-
> libstdc++/include/sstream:520: error: undefined reference to 'VTT for
> std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >'
Regards,
- shekar