Problem building Android for Beagle

All,

I have just tried building Android for the Beagle board following the
instructions here:

http://labs.embinux.org/index.php/Android_Porting_Guide_to_Beagle_Board

I have run into a couple of issues. Firstly the GL_WRAPPER patch does
not work. Looking at the patch & the android tree, the problem seems
to be that the gl_wrapper.cpp file that the patch should be modifying
is nolonger present in the src tree. I ignored this patch and carried
on..

The second issue is that building AudioHardwareALSA.cpp in hardware/
alsa_sound/AudioHardwareALSA.cpp results in the following error:

find: File system loop detected; â./external/alsa-lib/include/alsaâ is
part of the same file system loop as â./external/alsa-lib/includeâ.
build/core/copy_headers.mk:15: warning: overriding commands for target
`out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for
target `out/target/product/generic/obj/include/libpv/
getactualaacconfig.h'
make: execvp: /bin/bash: Argument list too long
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: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] Error 1

Any suggestions how to resolve this? I realise that Android is very
much a moving target at the moment so these kind of problems are
inevitable...

Jonathan

Hi Jonathan,

The Android master branch has changed over the past week. I haven't
tried to build it lately, but it wouldn't surprise me if some of the
original patches are not working. Hopefully, some of these changes
are no longer needed. ALSA audio hasn't work for sometime now, and
I'm not sure when it will be fixed. Maybe someone else on this thread
has more info regarding how to make audio work.

Cheers,
Jay

Hi,

The Android master branch has changed over the past week. I haven't
tried to build it lately, but it wouldn't surprise me if some of the
original patches are not working. Hopefully, some of these changes
are no longer needed. ALSA audio hasn't work for sometime now, and
I'm not sure when it will be fixed. Maybe someone else on this thread
has more info regarding how to make audio work.

Thanks for the reply :). I managed to figure most of this out by
digging through the various android mailing lists. I managed to get
the cupcake branch to build having abandoned the master branch, but
only without ALSA support. It will have to do for now, but it would be
very useful to get audio working at some point.

It does seem that the version control of the android tree is almost
non existant :(.

Jonathan