I am trying to integrate alsactl into android,when I put this folder in 
external and compiled,it said lack libasound.so . I guess in the former 
platform I have used (linux,not android), this libasound is built into shared 
lib and alsactl calls for this shared lib.So I am not sure what I should do now 
to compile this alsactl. I used to use this alsactl to utilize the alsaconf 
file. 
 


在2009-03-23,"Sean McNeil" <[email protected]> 写道:
>
>There is no libasound.so. It is built as libasound.a and included whole 
>into libaudio.so.
>
>susanner wrote:
>> how can libasound be .so not .a? after make , I can't find libasound 
>> in system/lib
>>
>> 在2009-03-23,"Sean McNeil" <[email protected]> 写道:
>> >
>> >Currently you cannot rely on repo or git to build Android. Period.
>> >
>> >susanner wrote:
>> >> So, currently, I can not rely on repo or git to build alsa , right? if 
>> >> it's ok, would you please let me know ? Actually I am porting 
>> >> mediaplayer but there is no sound .
>> >>
>> >> 在2009-03-23,"Sean McNeil" <[email protected]> 写道:
>> >> >
>> >> >There is absolutely no point in using ALSA with the current repo. I have 
>> >> >the changes required, but it will break builds that actually work. If 
>> >> >you used my changes, then you'll just end up with openCORE issues after 
>> >> >that. So, I will submit them once the repo is again made whole.
>> >> >
>> >> >susanner wrote:
>> >> >> here is how I ported alsa and there is still mistakes
>> >> >> 1:git alsa_sound
>> >> >> $git clone 
>> >> >> git://android.git.kernel.org/platform/hardware/alsa_sound.git
>> >> >> 2:mv alsa_sound libaudio-alsa
>> >> >> 3: I copied the file AudioHardware* from 
>> >> >> framework/base/libs/audioflinger to hardware/libaudio-alsa
>> >> >> 4: revise Android.mk under folder libaudio-alsa
>> >> >> =============================
>> >> >> ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
>> >> >>
>> >> >> LOCAL_PATH := $(call my-dir)
>> >> >>
>> >> >> include $(CLEAR_VARS)
>> >> >>
>> >> >> LOCAL_ARM_MODE := arm
>> >> >> LOCAL_CFLAGS = -fno-short-enums
>> >> >> # LOCAL_WHOLE_STATIC_LIBRARIES := libasound
>> >> >> LOCAL_C_INCLUDES += external/alsa-lib/include
>> >> >> LOCAL_SRC_FILES := \
>> >> >> AudioHardwareInterface.cpp \
>> >> >> AudioHardwareStub.cpp \
>> >> >> AudioHardwareALSA.cpp
>> >> >>
>> >> >> LOCAL_MODULE := libaudio
>> >> >>
>> >> >> LOCAL_SHARED_LIBRARIES := \
>> >> >> libcutils \
>> >> >> libutils \
>> >> >> libmedia \
>> >> >> libhardware_legacy \
>> >> >> libdl \
>> >> >> libc \
>> >> >> libasound
>> >> >>
>> >> >> include $(BUILD_SHARED_LIBRARY)
>> >> >>
>> >> >> endif
>> >> >> =========================
>> >> >> 5.revise build/target/board/generic/BoardConfig.mk
>> >> >>
>> >> >> BOARD_USES_ALSA_AUDIO := true
>> >> >> #BOARD_USES_GENERIC_AUDIO := true
>> >> >> 6. cd /opt/mydroid/build/core
>> >> >> $ vim prelink-linux-arm.map
>> >> >> add libasound.so 0xA9200000
>> >> >>
>> >> >> and the make error:
>> >> >> target arm C++: libaudio <= 
>> >> >> hardware/libaudio-alsa/AudioHardwareALSA.cpp
>> >> >> target SharedLib: libaudio 
>> >> >> (out/target/product/generic/obj/SHARED_LIBRARIES/libaudio_intermediates/LINKED/libaudio.so)
>> >> >> out/target/product/generic/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardwareInterface.o:
>> >> >>  
>> >> >> 在函数‘android::AudioHardwareInterface::create()’中:
>> >> >> hardware/libaudio-alsa/AudioHardwareInterface.cpp:102:对‘android:: 
>> >> >> AudioHardwareGeneric::AudioHardwareGeneric()’未定义的引用
>> >> >> collect2: ld returned 1 exit status
>> >> >> make: *** 
>> >> >> [out/target/product/generic/obj/SHARED_LIBRARIES/libaudio_intermediates/LINKED/libaudio.so]
>> >> >>  
>> >> >> 错误 1
>> >> >>
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> 网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net>
>> >> >> >
>> >> >
>> >> >
>> >> >>
>> >>   
>> >>
>> >>
>> >> ------------------------------------------------------------------------
>> >> 网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net>
>> >> >
>> >
>> >
>> >>
>>   
>>
>>
>> ------------------------------------------------------------------------
>> 网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net>
>> >
>
>
>>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to