Hi, I've create an android makefile for building the ustl-1.2 library from http://sourceforge.net/project/showfiles.php?group_id=76798&package_id=77595&release_id=577376
I am able to build a static library file. But when I try to build a shared library, I get the following errors. [el...@zeus android]$ make build/core/product_config.mk:261: WARNING: adding test OTA key ============================================ TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID= ============================================ build/core/dynamic_binary.mk:129: warning: overriding commands for target `.so' build/core/dynamic_binary.mk:96: warning: ignoring old commands for target `.so' build/core/shared_library.mk:32: warning: overriding commands for target `.so' build/core/dynamic_binary.mk:129: warning: ignoring old commands for target `.so' target SharedLib: libustl (out/target/product/generic/obj/ SHARED_LIBRARIES/libustl_intermediates/LINKED/libustl) /tool/android/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/ gcc/arm-eabi/4.2.1/../../../../arm-eabi/bin/ld: BFD 2.17 assertion fail ../../../toolchain/android-toolchain/binutils-2.17/bfd/elf32- arm.c:2428 /tool/android/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/ gcc/arm-eabi/4.2.1/../../../../arm-eabi/bin/ld: BFD 2.17 assertion fail ../../../toolchain/android-toolchain/binutils-2.17/bfd/elf32- arm.c:2428 /tool/android/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/ gcc/arm-eabi/4.2.1/../../../../arm-eabi/bin/ld: BFD 2.17 assertion fail ../../../toolchain/android-toolchain/binutils-2.17/bfd/elf32- arm.c:2428 make: Circular .so <- .so dependency dropped. make: Circular out/target/product/generic/symbols/system/lib/libustl <- .so dependency dropped. target Prelink: libustl (out/target/product/generic/symbols/system/lib/ libustl) build/tools/apriori/prelinkmap.c(137): library 'libustl' not in prelink map make: *** [out/target/product/generic/symbols/system/lib/libustl] Error 1 What should I do? I am attaching the makefile here. If you replace the last entry with BUILD_STATIC_LIBRARY, it works fine. # --------------------------------------- # Build ustl-1.2 library # # Output: libustl.so # --------------------------------------- #ifneq ($(TARGET_ARCH),arm) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) common_SRC_FILES := \ bktrace.cc \ cmemlink.cc \ fstream.cc \ memblock.cc \ memlink.cc \ mistream.cc \ ofstream.cc \ sistream.cc \ sostream.cc \ ualgobase.cc \ ubitset.cc \ uexception.cc \ unew.cc \ ustdxept.cc \ ustring.cc ifeq ($(TARGET_ARCH),arm) LOCAL_CFLAGS += -fstrict-aliasing -fomit-frame-pointer endif common_CFLAGS := -W -g -DPLATFORM_ANDROID common_C_INCLUDES +=\ $(LOCAL_PATH) \ $(LOCAL_PATH)/include LOCAL_SRC_FILES := $(common_SRC_FILES) LOCAL_CFLAGS += $(common_CFLAGS) LOCAL_C_INCLUDES += $(common_C_INCLUDES) LOCAL_SHARED_LIBRARIES := LOCAL_MODULE := libustl LOCAL_COPY_HEADERS_TO := libustl LOCAL_COPY_HEADERS := \ bktrace.h \ cmemlink.h \ fstream.h \ memblock.h \ memlink.h \ metamac.h \ mistream.h \ mostream.h \ ofstream.h \ simd.h \ sistream.h \ sostream.h \ strmsize.h \ traits.h \ typelist.h \ typet.h \ ualgobase.h \ ualgo.h \ ubitset.h \ uctralgo.h \ uctrstrm.h \ uexception.h \ ufunction.h \ uheap.h \ uiosfunc.h \ uios.h \ uiterator.h \ ulaalgo.h \ ulimits.h \ ulist.h \ umap.h \ umatrix.h \ umemory.h \ umultimap.h \ umultiset.h \ unew.h \ unumeric.h \ upair.h \ upredalgo.h \ uqueue.h \ uset.h \ uspecial.h \ ustack.h \ ustdxept.h \ ustl.h \ ustring.h \ utf8.h \ utuple.h \ utypes.h \ uutility.h \ uvector.h include $(BUILD_SHARED_LIBRARY) #endif Best regards, Elvis --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---