Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old July 22nd, 2011, 03:30 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Pb link library abstract interface

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:
ANDROID_SRC := /mnt/gingerbread

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE     := audiotest
LOCAL_SRC_FILES  := audioTest.cpp test.cpp
LOCAL_C_INCLUDES := $(ANDROID_SRC)/frameworks/base/include \
                    $(ANDROID_SRC)/system/core/include \
                    $(ANDROID_SRC)/hardware/libhardware_legacy/include \
                    $(ANDROID_SRC)/hardware
LOCAL_LDLIBS     := -L$(LOCAL_PATH)/../system_libs -lutils -lcutils -laudio
LOCAL_CXXFLAGS   := -Wall -D__STDC_LIMIT_MACROS
include $(BUILD_EXECUTABLE)

ragoon is offline  
Reply With Quote
sponsored links
Reply
Tags
abstract, interface, libaudio, ndk


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.