Hello, When I try to build the ALSA libraries with Android 1.5, I get the following 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:66: error: cannot allocate an object of abstract type 'android::AudioHardwareALSA' hardware/alsa_sound/AudioHardwareALSA.h:246: 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) hardware/alsa_sound/AudioHardwareALSA.cpp: In member function 'virtual android::AudioStreamIn* android::AudioHardwareALSA::openInputStream (int, int, int, uint32_t, android::status_t*, android::AudioSystem::audio_in_acoustics)': hardware/alsa_sound/AudioHardwareALSA.cpp:275: error: 'NUM_INPUT_SOURCES' is not a member of 'android::AudioRecord' make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/ libaudio_intermediates/AudioHardwareALSA.o] Error 1 The solution to this was to move to the Main branch of the android build. I have used the command repo init -u git://android.git.kernel.org/platform/manifest.git -b android-1.5r3 repo sync which means I am in the main branch. Can any one tell me what could be the issue here? Thanks. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
