Pb link library abstract interface


  1. ragoon

    ragoon New Member

    Hello,

    I have a problem with the NDK to link with libaudio.
    I use adb pull to get libraries I'm using from the mobile.
    But during the link, ld requires all the libraries the libaudio reference to.
    The problem is that I want this program to be generic and not linking with specific libraries. Moreover, the libaudio interface is abstract and should not required additionnal dependencies.

    May be there is a missing CXX flag can anybody help?

    Here the makefile (test contain the main and audioTest the class using libaudio):
    Code (Text):
    1.  
    2. ANDROID_SRC := /mnt/gingerbread
    3.  
    4. LOCAL_PATH := $(call my-dir)
    5.  
    6. include $(CLEAR_VARS)
    7.  
    8. LOCAL_MODULE     := audiotest
    9. LOCAL_SRC_FILES  := audioTest.cpp test.cpp
    10. LOCAL_C_INCLUDES := $(ANDROID_SRC)/frameworks/base/include \
    11.                     $(ANDROID_SRC)/system/core/include \
    12.                     $(ANDROID_SRC)/hardware/libhardware_legacy/include \
    13.                     $(ANDROID_SRC)/hardware
    14. LOCAL_LDLIBS     := -L$(LOCAL_PATH)/../system_libs -lutils -lcutils -laudio
    15. LOCAL_CXXFLAGS   := -Wall -D__STDC_LIMIT_MACROS
    16. include $(BUILD_EXECUTABLE)
    17.  

    Advertisement
    :
Loading...

Share This Page