mkdir cupcake
cd cupcake
git clone git://android.git.kernel.org/platform/external/alsa-lib.git
git clone git://android.git.kernel.org/platform/hardware/alsa_sound.git
repo init -u git://android.git.kernel.org/platform/manifest.git -b
cupcake
repo sync
cp -a alsa-lib  external
cp -a alsa_sound hardware
vim ~/cupcake/build/target/board/generic/BoardConfig.mk
add BOARD_USES_ALSA_AUDIO := true
#BOARD_USES_GENERIC_AUDIO := true
cd ~/cupcake
make

error:

target arm C++: libaudio <= hardware/alsa_sound/AudioHardwareALSA.cpp
hardware/alsa_sound/AudioHardwareALSA.cpp: In function
'android::AudioHardwareInterface* createAudioHardware()':
hardware/alsa_sound/AudioHardwareALSA.cpp:65: error: cannot allocate
an object of abstract type 'android::AudioHardwareALSA'
hardware/alsa_sound/AudioHardwareALSA.h:208: note:   because the
following virtual functions are pure within
'android::AudioHardwareALSA':
hardware/libhardware_legacy/include/hardware_legacy/
AudioHardwareInterface.h:215: note:     virtual android::AudioStreamIn*
android::AudioHardwareInterface::openInputStream(int, int, uint32_t,
android::status_t*, android::AudioSystem::audio_in_acoustics)
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
libaudio_intermediates/AudioHardwareALSA.o] Ошибка 1

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

Reply via email to