[android-porting] Re: ALSA build error

2009-03-11 Thread Androidphan

I now did a complete new directory repo sync with my
local_manifest.xml.
Again it shows the following error message:

target thumb C++: mediaserver = frameworks/base/media/mediaserver/
main_mediaserver.cpp
target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioMixer.cpp
frameworks/base/libs/audioflinger/AudioMixer.cpp: In static member
function 'static void
android::AudioMixer::process__TwoTracks16BitsStereoNoResampling
(android::AudioMixer::state_t*, void*)':
frameworks/base/libs/audioflinger/AudioMixer.cpp:836: warning: 'in1'
may be used uninitialized in this function
frameworks/base/libs/audioflinger/AudioMixer.cpp:831: warning: 'in0'
may be used uninitialized in this function
target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioResampler.cpp
target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioResamplerSinc.cpp
target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioResamplerCubic.cpp
frameworks/base/libs/audioflinger/AudioResamplerCubic.cpp:25:1:
warning: LOG_TAG redefined
In file included from frameworks/base/libs/audioflinger/
AudioResamplerCubic.cpp:20:
system/core/include/cutils/log.h:68:1: warning: this is the location
of the previous definition
target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioFlinger.cpp
target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
A2dpAudioInterface.cpp
target arm C++: libaudio = hardware/alsa_sound/AudioHardwareALSA.cpp
target thumb C++: libaudiointerface = frameworks/base/libs/
audioflinger/AudioHardwareGeneric.cpp
frameworks/base/libs/audioflinger/AudioHardwareGeneric.cpp: In member
function 'virtual ssize_t android::AudioStreamInGeneric::read(void*,
ssize_t)':
frameworks/base/libs/audioflinger/AudioHardwareGeneric.cpp:277:
warning: format '%d' expects type 'int', but argument 5 has type
'ssize_t'
target thumb C++: libaudiointerface = frameworks/base/libs/
audioflinger/AudioHardwareStub.cpp
target thumb C++: libaudiointerface = frameworks/base/libs/
audioflinger/AudioDumpInterface.cpp
target thumb C++: libaudiointerface = frameworks/base/libs/
audioflinger/AudioHardwareInterface.cpp
target StaticLib: libaudiointerface (out/target/product/eee_701/obj/
STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a)
make: *** No rule to make target `out/target/product/eee_701/obj/
STATIC_LIBRARIES/libasound_intermediates/libasound.a', needed by `out/
target/product/eee_701/obj/SHARED_LIBRARIES/libaudio_intermediates/
LINKED/libaudio.so'.  Stop.

On 10 mrt, 16:44, Sean McNeil seanmcne...@gmail.com wrote:
 Well then you must have something mis-configured somewhere. libasound.a
 should be built and placed into the
 out/target/product/eee_701/obj/STATIC_LIBRARIES/libasound_intermediates
 directory. Your manifest looks OK and you did the right thing in your
 BoardConfig. I'd say maybe your build/core directory is messed up somehow.

 On Tue, Mar 10, 2009 at 9:11 PM, Androidphan niels.kee...@tass.nl wrote:

  It looks I got more stuff not building. I recently added
  BOARD_HAVE_BLUETOOTH, but it didn't build hcitool hciconfig sdptool.
  It only had hciattach and hcid?

  I notice the libasound in the Android.mk, but it doesn't seem to
  actually build it.

  On Mar 10, 3:00 pm, Androidphan niels.kee...@tass.nl wrote:
   I got both alsa-lib as alsa_sound.

   On Mar 10, 2:14 pm, Sean McNeil seanmcne...@gmail.com wrote:

You need both platform/hardware/alsa_audio and
  platform/external/alsa-lib

Androidphan wrote:
 That worked, but now I'm getting the following error:

 target thumb C++: libaudioflinger =
  frameworks/base/libs/audioflinger/
 A2dpAudioInterface.cpp
 make: *** No rule to make target `out/target/product/eee_701/obj/
 STATIC_LIBRARIES/libasound_intermediates/libasound.a', needed by
  `out/
 target/product/eee_701/obj/SHARED_LIBRARIES/libaudio_intermediates/
 LINKED/libaudio.so'.  Stop.

 Any clue?

 On Mar 9, 2:03 am, Sean McNeil seanmcne...@gmail.com wrote:

 We have updated the repository now. Just perform a repo sync and you
 should be fine.

 Jack stone wrote:

 you should search in this group. There is a patch :

 http://groups.google.com/group/android-porting/browse_thread/thread/b...

 On Mar 6, 8:34 pm,Androidphanniels.kee...@tass.nl wrote:

 My local_manifest.xml:

 ?xml version=1.0 encoding=UTF-8?
 manifest
 project name=platform/vendor/asus/eee_701 path=vendor/asus/
 eee_701/
 project name=platform/external/alsa-lib
  path=external/alsa-lib/
 project name=platform/hardware/alsa_sound path=hardware/
 alsa_sound/
 /manifest

 I changed BoardConfig with BOARD_USES_ALSA_AUDIO := true

 I'm getting the following error:
 In file included from
  hardware/alsa_sound/AudioHardwareInterface.cpp:
 27:
 hardware/alsa_sound/AudioHardwareStub.h:24:45: error: hardware/
 AudioHardwareInterface.h: No such file or 

[android-porting] Re: ALSA build error

2009-03-11 Thread Harishkumar V
Hi,

In

build/target/board/generic/BoardConfig.mk,

comment out,
#BOARD_USES_GENERIC_AUDIO := true

and add new line like this,

BOARD_USES_ALSA_AUDIO := true

Thats all, alsa module will be compiled.

Regards,
HarishKumar.V


On Wed, Mar 11, 2009 at 5:14 PM, Androidphan niels.kee...@tass.nl wrote:


 When removing ifeq ($(BOARD_USES_ALSA_AUDIO),true) in external/alsa-
 lib/Android.mk it is building. So something is wrong in the build
 system?

 On Mar 11, 10:15 am, Androidphan niels.kee...@tass.nl wrote:
  I now did a complete new directory repo sync with my
  local_manifest.xml.
  Again it shows the following error message:
 
  target thumb C++: mediaserver = frameworks/base/media/mediaserver/
  main_mediaserver.cpp
  target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
  AudioMixer.cpp
  frameworks/base/libs/audioflinger/AudioMixer.cpp: In static member
  function 'static void
  android::AudioMixer::process__TwoTracks16BitsStereoNoResampling
  (android::AudioMixer::state_t*, void*)':
  frameworks/base/libs/audioflinger/AudioMixer.cpp:836: warning: 'in1'
  may be used uninitialized in this function
  frameworks/base/libs/audioflinger/AudioMixer.cpp:831: warning: 'in0'
  may be used uninitialized in this function
  target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
  AudioResampler.cpp
  target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
  AudioResamplerSinc.cpp
  target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
  AudioResamplerCubic.cpp
  frameworks/base/libs/audioflinger/AudioResamplerCubic.cpp:25:1:
  warning: LOG_TAG redefined
  In file included from frameworks/base/libs/audioflinger/
  AudioResamplerCubic.cpp:20:
  system/core/include/cutils/log.h:68:1: warning: this is the location
  of the previous definition
  target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
  AudioFlinger.cpp
  target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
  A2dpAudioInterface.cpp
  target arm C++: libaudio = hardware/alsa_sound/AudioHardwareALSA.cpp
  target thumb C++: libaudiointerface = frameworks/base/libs/
  audioflinger/AudioHardwareGeneric.cpp
  frameworks/base/libs/audioflinger/AudioHardwareGeneric.cpp: In member
  function 'virtual ssize_t android::AudioStreamInGeneric::read(void*,
  ssize_t)':
  frameworks/base/libs/audioflinger/AudioHardwareGeneric.cpp:277:
  warning: format '%d' expects type 'int', but argument 5 has type
  'ssize_t'
  target thumb C++: libaudiointerface = frameworks/base/libs/
  audioflinger/AudioHardwareStub.cpp
  target thumb C++: libaudiointerface = frameworks/base/libs/
  audioflinger/AudioDumpInterface.cpp
  target thumb C++: libaudiointerface = frameworks/base/libs/
  audioflinger/AudioHardwareInterface.cpp
  target StaticLib: libaudiointerface (out/target/product/eee_701/obj/
  STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a)
  make: *** No rule to make target `out/target/product/eee_701/obj/
  STATIC_LIBRARIES/libasound_intermediates/libasound.a', needed by `out/
  target/product/eee_701/obj/SHARED_LIBRARIES/libaudio_intermediates/
  LINKED/libaudio.so'.  Stop.
 
  On 10 mrt, 16:44, Sean McNeil seanmcne...@gmail.com wrote:
 
   Well then you must have something mis-configured somewhere. libasound.a
   should be built and placed into the
   out/target/product/eee_701/obj/STATIC_LIBRARIES/libasound_intermediates
   directory. Your manifest looks OK and you did the right thing in your
   BoardConfig. I'd say maybe your build/core directory is messed up
 somehow.
 
   On Tue, Mar 10, 2009 at 9:11 PM, Androidphan niels.kee...@tass.nl
 wrote:
 
It looks I got more stuff not building. I recently added
BOARD_HAVE_BLUETOOTH, but it didn't build hcitool hciconfig sdptool.
It only had hciattach and hcid?
 
I notice the libasound in the Android.mk, but it doesn't seem to
actually build it.
 
On Mar 10, 3:00 pm, Androidphan niels.kee...@tass.nl wrote:
 I got both alsa-lib as alsa_sound.
 
 On Mar 10, 2:14 pm, Sean McNeil seanmcne...@gmail.com wrote:
 
  You need both platform/hardware/alsa_audio and
platform/external/alsa-lib
 
  Androidphan wrote:
   That worked, but now I'm getting the following error:
 
   target thumb C++: libaudioflinger =
frameworks/base/libs/audioflinger/
   A2dpAudioInterface.cpp
   make: *** No rule to make target
 `out/target/product/eee_701/obj/
   STATIC_LIBRARIES/libasound_intermediates/libasound.a', needed
 by
`out/
  
 target/product/eee_701/obj/SHARED_LIBRARIES/libaudio_intermediates/
   LINKED/libaudio.so'.  Stop.
 
   Any clue?
 
   On Mar 9, 2:03 am, Sean McNeil seanmcne...@gmail.com wrote:
 
   We have updated the repository now. Just perform a repo sync
 and you
   should be fine.
 
   Jack stone wrote:
 
   you should search in this group. There is a patch :
 
   
 

[android-porting] Re: ALSA build error

2009-03-11 Thread Androidphan

To add ipc functions, the below link will maybe help:
https://review.source.android.com/Gerrit#change,6623

On 11 mrt, 13:15, Androidphan niels.kee...@tass.nl wrote:
 I did that, but it didn't work..

 It seems that ALSA can't be compiled for x86... There are no shared
 mem functions in x86 libc.
 I don't know where this is used for?

 Am I correct with this?

 I'm getting the following error right now:

 out/target/product/eee_701/obj/STATIC_LIBRARIES/
 libasound_intermediates/libasound.a(control_shm.o): In function
 `snd_ctl_shm_close':
 external/alsa-lib/src/control/control_shm.c:95: undefined reference to
 `shmdt'
 out/target/product/eee_701/obj/STATIC_LIBRARIES/
 libasound_intermediates/libasound.a(control_shm.o): In function
 `snd_ctl_shm_open':
 external/alsa-lib/src/control/control_shm.c:523: undefined reference
 to `shmat'
 external/alsa-lib/src/control/control_shm.c:557: undefined reference
 to `shmdt'
 out/target/product/eee_701/obj/STATIC_LIBRARIES/
 libasound_intermediates/libasound.a(pcm_mmap.o): In function
 `snd_pcm_mmap':
 external/alsa-lib/src/pcm/pcm_mmap.c:411: undefined reference to
 `shmat'
 external/alsa-lib/src/pcm/pcm_mmap.c:378: undefined reference to
 `shmget'
 external/alsa-lib/src/pcm/pcm_mmap.c:384: undefined reference to
 `shmat'
 external/alsa-lib/src/pcm/pcm_mmap.c:390: undefined reference to
 `shmctl'
 out/target/product/eee_701/obj/STATIC_LIBRARIES/
 libasound_intermediates/libasound.a(pcm_shm.o): In function
 `snd_pcm_shm_close':
 external/alsa-lib/src/pcm/pcm_shm.c:578: undefined reference to
 `shmdt'
 out/target/product/eee_701/obj/STATIC_LIBRARIES/
 libasound_intermediates/libasound.a(pcm_shm.o): In function
 `snd_pcm_shm_open':
 external/alsa-lib/src/pcm/pcm_shm.c:755: undefined reference to
 `shmat'
 external/alsa-lib/src/pcm/pcm_shm.c:795: undefined reference to
 `shmdt'
 out/target/product/eee_701/obj/STATIC_LIBRARIES/
 libasound_intermediates/libasound.a(shmarea.o): In function
 `snd_shm_area_destructor':
 external/alsa-lib/src/shmarea.c:106: undefined reference to `shmdt'
 out/target/product/eee_701/obj/STATIC_LIBRARIES/
 libasound_intermediates/libasound.a(shmarea.o): In function
 `snd_shm_area_destroy':
 external/alsa-lib/src/shmarea.c:92: undefined reference to `shmdt'
 collect2: ld returned 1 exit status
 make: *** [out/target/product/eee_701/obj/SHARED_LIBRARIES/
 libaudio_intermediates/LINKED/libaudio.so] Error 1

 On 11 mrt, 12:48, Harishkumar V harishpres...@gmail.com wrote:

  Hi,

  In

  build/target/board/generic/BoardConfig.mk,

  comment out,
  #BOARD_USES_GENERIC_AUDIO := true

  and add new line like this,

  BOARD_USES_ALSA_AUDIO := true

  Thats all, alsa module will be compiled.

  Regards,
  HarishKumar.V

  On Wed, Mar 11, 2009 at 5:14 PM, Androidphan niels.kee...@tass.nl wrote:

   When removing ifeq ($(BOARD_USES_ALSA_AUDIO),true) in external/alsa-
   lib/Android.mk it is building. So something is wrong in the build
   system?

   On Mar 11, 10:15 am, Androidphan niels.kee...@tass.nl wrote:
I now did a complete new directory repo sync with my
local_manifest.xml.
Again it shows the following error message:

target thumb C++: mediaserver = frameworks/base/media/mediaserver/
main_mediaserver.cpp
target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioMixer.cpp
frameworks/base/libs/audioflinger/AudioMixer.cpp: In static member
function 'static void
android::AudioMixer::process__TwoTracks16BitsStereoNoResampling
(android::AudioMixer::state_t*, void*)':
frameworks/base/libs/audioflinger/AudioMixer.cpp:836: warning: 'in1'
may be used uninitialized in this function
frameworks/base/libs/audioflinger/AudioMixer.cpp:831: warning: 'in0'
may be used uninitialized in this function
target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioResampler.cpp
target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioResamplerSinc.cpp
target arm C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioResamplerCubic.cpp
frameworks/base/libs/audioflinger/AudioResamplerCubic.cpp:25:1:
warning: LOG_TAG redefined
In file included from frameworks/base/libs/audioflinger/
AudioResamplerCubic.cpp:20:
system/core/include/cutils/log.h:68:1: warning: this is the location
of the previous definition
target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
AudioFlinger.cpp
target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
A2dpAudioInterface.cpp
target arm C++: libaudio = hardware/alsa_sound/AudioHardwareALSA.cpp
target thumb C++: libaudiointerface = frameworks/base/libs/
audioflinger/AudioHardwareGeneric.cpp
frameworks/base/libs/audioflinger/AudioHardwareGeneric.cpp: In member
function 'virtual ssize_t android::AudioStreamInGeneric::read(void*,
ssize_t)':
frameworks/base/libs/audioflinger/AudioHardwareGeneric.cpp:277:
warning: 

[android-porting] Re: ALSA build error

2009-03-10 Thread Androidphan

That worked, but now I'm getting the following error:

target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
A2dpAudioInterface.cpp
make: *** No rule to make target `out/target/product/eee_701/obj/
STATIC_LIBRARIES/libasound_intermediates/libasound.a', needed by `out/
target/product/eee_701/obj/SHARED_LIBRARIES/libaudio_intermediates/
LINKED/libaudio.so'.  Stop.

Any clue?

On Mar 9, 2:03 am, Sean McNeil seanmcne...@gmail.com wrote:
 We have updated the repository now. Just perform a repo sync and you
 should be fine.

 Jack stone wrote:
  you should search in this group. There is a patch :
 http://groups.google.com/group/android-porting/browse_thread/thread/b...

  On Mar 6, 8:34 pm,Androidphanniels.kee...@tass.nl wrote:

  My local_manifest.xml:

  ?xml version=1.0 encoding=UTF-8?
  manifest
  project name=platform/vendor/asus/eee_701 path=vendor/asus/
  eee_701/
  project name=platform/external/alsa-lib path=external/alsa-lib/
  project name=platform/hardware/alsa_sound path=hardware/
  alsa_sound/
  /manifest

  I changed BoardConfig with BOARD_USES_ALSA_AUDIO := true

  I'm getting the following error:
  In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
  27:
  hardware/alsa_sound/AudioHardwareStub.h:24:45: error: hardware/
  AudioHardwareInterface.h: No such file or directory
  In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
  27:
  hardware/alsa_sound/AudioHardwareStub.h:30: error: expected class-name
  before '{' token
  hardware/alsa_sound/AudioHardwareStub.h:39: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareStub.h:39: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
  int android::AudioStreamOutStub::format() const':
  hardware/alsa_sound/AudioHardwareStub.h:36: error: 'AudioSystem' has
  not been declared
  hardware/alsa_sound/AudioHardwareStub.h: At global scope:
  hardware/alsa_sound/AudioHardwareStub.h:42: error: expected class-name
  before '{' token
  hardware/alsa_sound/AudioHardwareStub.h:51: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareStub.h:51: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
  int android::AudioStreamInStub::format() const':
  hardware/alsa_sound/AudioHardwareStub.h:48: error: 'AudioSystem' has
  not been declared
  hardware/alsa_sound/AudioHardwareStub.h: At global scope:
  hardware/alsa_sound/AudioHardwareStub.h:55: error: expected class-name
  before '{' token
  hardware/alsa_sound/AudioHardwareStub.h:72: error: ISO C++ forbids
  declaration of 'AudioStreamOut' with no type
  hardware/alsa_sound/AudioHardwareStub.h:72: error: 'AudioStreamOut'
  declared as a 'virtual' field
  hardware/alsa_sound/AudioHardwareStub.h:72: error: expected ';' before
  '*' token
  hardware/alsa_sound/AudioHardwareStub.h:77: error: ISO C++ forbids
  declaration of 'AudioStreamIn' with no type
  hardware/alsa_sound/AudioHardwareStub.h:77: error: 'AudioStreamIn'
  declared as a 'virtual' field
  hardware/alsa_sound/AudioHardwareStub.h:77: error: expected ';' before
  '*' token
  hardware/alsa_sound/AudioHardwareStub.h:84: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareStub.h:84: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareStub.h:88: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareStub.h:88: error: ISO C++ forbids
  declaration of 'Vector' with no type
  In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
  28:
  hardware/alsa_sound/AudioHardwareALSA.h:116: error: 'Mutex' does not
  name a type
  hardware/alsa_sound/AudioHardwareALSA.h:130: error: expected class-
  name before ',' token
  hardware/alsa_sound/AudioHardwareALSA.h:161: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareALSA.h:161: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareALSA.h:177: error: expected class-
  name before ',' token
  hardware/alsa_sound/AudioHardwareALSA.h:211: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareALSA.h:211: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareALSA.h:224: error: expected class-
  name before '{' token
  hardware/alsa_sound/AudioHardwareALSA.h:234: error: ISO C++ forbids
  declaration of 'AudioStreamOut' with no type
  hardware/alsa_sound/AudioHardwareALSA.h:234: error: 'AudioStreamOut'
  declared as a 'virtual' field
  hardware/alsa_sound/AudioHardwareALSA.h:234: error: expected ';'
  before '*' token
  hardware/alsa_sound/AudioHardwareALSA.h:238: error: ISO C++ forbids
  declaration of 'AudioStreamIn' with no type
  hardware/alsa_sound/AudioHardwareALSA.h:238: error: 'AudioStreamIn'
  

[android-porting] Re: ALSA build error

2009-03-10 Thread Sean McNeil

You need both platform/hardware/alsa_audio and platform/external/alsa-lib

Androidphan wrote:
 That worked, but now I'm getting the following error:

 target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
 A2dpAudioInterface.cpp
 make: *** No rule to make target `out/target/product/eee_701/obj/
 STATIC_LIBRARIES/libasound_intermediates/libasound.a', needed by `out/
 target/product/eee_701/obj/SHARED_LIBRARIES/libaudio_intermediates/
 LINKED/libaudio.so'.  Stop.

 Any clue?

 On Mar 9, 2:03 am, Sean McNeil seanmcne...@gmail.com wrote:
   
 We have updated the repository now. Just perform a repo sync and you
 should be fine.

 Jack stone wrote:
 
 you should search in this group. There is a patch :
 http://groups.google.com/group/android-porting/browse_thread/thread/b...
   
 On Mar 6, 8:34 pm,Androidphanniels.kee...@tass.nl wrote:
   
 My local_manifest.xml:
 
 ?xml version=1.0 encoding=UTF-8?
 manifest
 project name=platform/vendor/asus/eee_701 path=vendor/asus/
 eee_701/
 project name=platform/external/alsa-lib path=external/alsa-lib/
 project name=platform/hardware/alsa_sound path=hardware/
 alsa_sound/
 /manifest
 
 I changed BoardConfig with BOARD_USES_ALSA_AUDIO := true
 
 I'm getting the following error:
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 27:
 hardware/alsa_sound/AudioHardwareStub.h:24:45: error: hardware/
 AudioHardwareInterface.h: No such file or directory
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 27:
 hardware/alsa_sound/AudioHardwareStub.h:30: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:39: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:39: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
 int android::AudioStreamOutStub::format() const':
 hardware/alsa_sound/AudioHardwareStub.h:36: error: 'AudioSystem' has
 not been declared
 hardware/alsa_sound/AudioHardwareStub.h: At global scope:
 hardware/alsa_sound/AudioHardwareStub.h:42: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:51: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:51: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
 int android::AudioStreamInStub::format() const':
 hardware/alsa_sound/AudioHardwareStub.h:48: error: 'AudioSystem' has
 not been declared
 hardware/alsa_sound/AudioHardwareStub.h: At global scope:
 hardware/alsa_sound/AudioHardwareStub.h:55: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:72: error: ISO C++ forbids
 declaration of 'AudioStreamOut' with no type
 hardware/alsa_sound/AudioHardwareStub.h:72: error: 'AudioStreamOut'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareStub.h:72: error: expected ';' before
 '*' token
 hardware/alsa_sound/AudioHardwareStub.h:77: error: ISO C++ forbids
 declaration of 'AudioStreamIn' with no type
 hardware/alsa_sound/AudioHardwareStub.h:77: error: 'AudioStreamIn'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareStub.h:77: error: expected ';' before
 '*' token
 hardware/alsa_sound/AudioHardwareStub.h:84: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:84: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h:88: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:88: error: ISO C++ forbids
 declaration of 'Vector' with no type
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 28:
 hardware/alsa_sound/AudioHardwareALSA.h:116: error: 'Mutex' does not
 name a type
 hardware/alsa_sound/AudioHardwareALSA.h:130: error: expected class-
 name before ',' token
 hardware/alsa_sound/AudioHardwareALSA.h:161: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareALSA.h:161: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:177: error: expected class-
 name before ',' token
 hardware/alsa_sound/AudioHardwareALSA.h:211: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareALSA.h:211: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:224: error: expected class-
 name before '{' token
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: ISO C++ forbids
 declaration of 'AudioStreamOut' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: 'AudioStreamOut'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: expected ';'
 before '*' token
 hardware/alsa_sound/AudioHardwareALSA.h:238: error: ISO C++ forbids
 declaration of 'AudioStreamIn' with no type
 

[android-porting] Re: ALSA build error

2009-03-10 Thread Androidphan

I got both alsa-lib as alsa_sound.

On Mar 10, 2:14 pm, Sean McNeil seanmcne...@gmail.com wrote:
 You need both platform/hardware/alsa_audio and platform/external/alsa-lib

 Androidphan wrote:
  That worked, but now I'm getting the following error:

  target thumb C++: libaudioflinger = frameworks/base/libs/audioflinger/
  A2dpAudioInterface.cpp
  make: *** No rule to make target `out/target/product/eee_701/obj/
  STATIC_LIBRARIES/libasound_intermediates/libasound.a', needed by `out/
  target/product/eee_701/obj/SHARED_LIBRARIES/libaudio_intermediates/
  LINKED/libaudio.so'.  Stop.

  Any clue?

  On Mar 9, 2:03 am, Sean McNeil seanmcne...@gmail.com wrote:

  We have updated the repository now. Just perform a repo sync and you
  should be fine.

  Jack stone wrote:

  you should search in this group. There is a patch :
 http://groups.google.com/group/android-porting/browse_thread/thread/b...

  On Mar 6, 8:34 pm,Androidphanniels.kee...@tass.nl wrote:

  My local_manifest.xml:

  ?xml version=1.0 encoding=UTF-8?
  manifest
  project name=platform/vendor/asus/eee_701 path=vendor/asus/
  eee_701/
  project name=platform/external/alsa-lib path=external/alsa-lib/
  project name=platform/hardware/alsa_sound path=hardware/
  alsa_sound/
  /manifest

  I changed BoardConfig with BOARD_USES_ALSA_AUDIO := true

  I'm getting the following error:
  In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
  27:
  hardware/alsa_sound/AudioHardwareStub.h:24:45: error: hardware/
  AudioHardwareInterface.h: No such file or directory
  In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
  27:
  hardware/alsa_sound/AudioHardwareStub.h:30: error: expected class-name
  before '{' token
  hardware/alsa_sound/AudioHardwareStub.h:39: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareStub.h:39: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
  int android::AudioStreamOutStub::format() const':
  hardware/alsa_sound/AudioHardwareStub.h:36: error: 'AudioSystem' has
  not been declared
  hardware/alsa_sound/AudioHardwareStub.h: At global scope:
  hardware/alsa_sound/AudioHardwareStub.h:42: error: expected class-name
  before '{' token
  hardware/alsa_sound/AudioHardwareStub.h:51: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareStub.h:51: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
  int android::AudioStreamInStub::format() const':
  hardware/alsa_sound/AudioHardwareStub.h:48: error: 'AudioSystem' has
  not been declared
  hardware/alsa_sound/AudioHardwareStub.h: At global scope:
  hardware/alsa_sound/AudioHardwareStub.h:55: error: expected class-name
  before '{' token
  hardware/alsa_sound/AudioHardwareStub.h:72: error: ISO C++ forbids
  declaration of 'AudioStreamOut' with no type
  hardware/alsa_sound/AudioHardwareStub.h:72: error: 'AudioStreamOut'
  declared as a 'virtual' field
  hardware/alsa_sound/AudioHardwareStub.h:72: error: expected ';' before
  '*' token
  hardware/alsa_sound/AudioHardwareStub.h:77: error: ISO C++ forbids
  declaration of 'AudioStreamIn' with no type
  hardware/alsa_sound/AudioHardwareStub.h:77: error: 'AudioStreamIn'
  declared as a 'virtual' field
  hardware/alsa_sound/AudioHardwareStub.h:77: error: expected ';' before
  '*' token
  hardware/alsa_sound/AudioHardwareStub.h:84: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareStub.h:84: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareStub.h:88: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareStub.h:88: error: ISO C++ forbids
  declaration of 'Vector' with no type
  In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
  28:
  hardware/alsa_sound/AudioHardwareALSA.h:116: error: 'Mutex' does not
  name a type
  hardware/alsa_sound/AudioHardwareALSA.h:130: error: expected class-
  name before ',' token
  hardware/alsa_sound/AudioHardwareALSA.h:161: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareALSA.h:161: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareALSA.h:177: error: expected class-
  name before ',' token
  hardware/alsa_sound/AudioHardwareALSA.h:211: error: expected ',' or
  '...' before '' token
  hardware/alsa_sound/AudioHardwareALSA.h:211: error: ISO C++ forbids
  declaration of 'Vector' with no type
  hardware/alsa_sound/AudioHardwareALSA.h:224: error: expected class-
  name before '{' token
  hardware/alsa_sound/AudioHardwareALSA.h:234: error: ISO C++ forbids
  declaration of 'AudioStreamOut' with no type
  hardware/alsa_sound/AudioHardwareALSA.h:234: error: 'AudioStreamOut'
  declared as a 'virtual' field
  hardware/alsa_sound/AudioHardwareALSA.h:234: error: 

[android-porting] Re: ALSA build error

2009-03-10 Thread Sean McNeil
Well then you must have something mis-configured somewhere. libasound.a
should be built and placed into the
out/target/product/eee_701/obj/STATIC_LIBRARIES/libasound_intermediates
directory. Your manifest looks OK and you did the right thing in your
BoardConfig. I'd say maybe your build/core directory is messed up somehow.

On Tue, Mar 10, 2009 at 9:11 PM, Androidphan niels.kee...@tass.nl wrote:


 It looks I got more stuff not building. I recently added
 BOARD_HAVE_BLUETOOTH, but it didn't build hcitool hciconfig sdptool.
 It only had hciattach and hcid?

 I notice the libasound in the Android.mk, but it doesn't seem to
 actually build it.

 On Mar 10, 3:00 pm, Androidphan niels.kee...@tass.nl wrote:
  I got both alsa-lib as alsa_sound.
 
  On Mar 10, 2:14 pm, Sean McNeil seanmcne...@gmail.com wrote:
 
   You need both platform/hardware/alsa_audio and
 platform/external/alsa-lib
 
   Androidphan wrote:
That worked, but now I'm getting the following error:
 
target thumb C++: libaudioflinger =
 frameworks/base/libs/audioflinger/
A2dpAudioInterface.cpp
make: *** No rule to make target `out/target/product/eee_701/obj/
STATIC_LIBRARIES/libasound_intermediates/libasound.a', needed by
 `out/
target/product/eee_701/obj/SHARED_LIBRARIES/libaudio_intermediates/
LINKED/libaudio.so'.  Stop.
 
Any clue?
 
On Mar 9, 2:03 am, Sean McNeil seanmcne...@gmail.com wrote:
 
We have updated the repository now. Just perform a repo sync and you
should be fine.
 
Jack stone wrote:
 
you should search in this group. There is a patch :
   
 http://groups.google.com/group/android-porting/browse_thread/thread/b...
 
On Mar 6, 8:34 pm,Androidphanniels.kee...@tass.nl wrote:
 
My local_manifest.xml:
 
?xml version=1.0 encoding=UTF-8?
manifest
project name=platform/vendor/asus/eee_701 path=vendor/asus/
eee_701/
project name=platform/external/alsa-lib
 path=external/alsa-lib/
project name=platform/hardware/alsa_sound path=hardware/
alsa_sound/
/manifest
 
I changed BoardConfig with BOARD_USES_ALSA_AUDIO := true
 
I'm getting the following error:
In file included from
 hardware/alsa_sound/AudioHardwareInterface.cpp:
27:
hardware/alsa_sound/AudioHardwareStub.h:24:45: error: hardware/
AudioHardwareInterface.h: No such file or directory
In file included from
 hardware/alsa_sound/AudioHardwareInterface.cpp:
27:
hardware/alsa_sound/AudioHardwareStub.h:30: error: expected
 class-name
before '{' token
hardware/alsa_sound/AudioHardwareStub.h:39: error: expected ',' or
'...' before '' token
hardware/alsa_sound/AudioHardwareStub.h:39: error: ISO C++ forbids
declaration of 'Vector' with no type
hardware/alsa_sound/AudioHardwareStub.h: In member function
 'virtual
int android::AudioStreamOutStub::format() const':
hardware/alsa_sound/AudioHardwareStub.h:36: error: 'AudioSystem'
 has
not been declared
hardware/alsa_sound/AudioHardwareStub.h: At global scope:
hardware/alsa_sound/AudioHardwareStub.h:42: error: expected
 class-name
before '{' token
hardware/alsa_sound/AudioHardwareStub.h:51: error: expected ',' or
'...' before '' token
hardware/alsa_sound/AudioHardwareStub.h:51: error: ISO C++ forbids
declaration of 'Vector' with no type
hardware/alsa_sound/AudioHardwareStub.h: In member function
 'virtual
int android::AudioStreamInStub::format() const':
hardware/alsa_sound/AudioHardwareStub.h:48: error: 'AudioSystem'
 has
not been declared
hardware/alsa_sound/AudioHardwareStub.h: At global scope:
hardware/alsa_sound/AudioHardwareStub.h:55: error: expected
 class-name
before '{' token
hardware/alsa_sound/AudioHardwareStub.h:72: error: ISO C++ forbids
declaration of 'AudioStreamOut' with no type
hardware/alsa_sound/AudioHardwareStub.h:72: error:
 'AudioStreamOut'
declared as a 'virtual' field
hardware/alsa_sound/AudioHardwareStub.h:72: error: expected ';'
 before
'*' token
hardware/alsa_sound/AudioHardwareStub.h:77: error: ISO C++ forbids
declaration of 'AudioStreamIn' with no type
hardware/alsa_sound/AudioHardwareStub.h:77: error: 'AudioStreamIn'
declared as a 'virtual' field
hardware/alsa_sound/AudioHardwareStub.h:77: error: expected ';'
 before
'*' token
hardware/alsa_sound/AudioHardwareStub.h:84: error: expected ',' or
'...' before '' token
hardware/alsa_sound/AudioHardwareStub.h:84: error: ISO C++ forbids
declaration of 'Vector' with no type
hardware/alsa_sound/AudioHardwareStub.h:88: error: expected ',' or
'...' before '' token
hardware/alsa_sound/AudioHardwareStub.h:88: error: ISO C++ forbids
declaration of 'Vector' with no type
In file included from
 hardware/alsa_sound/AudioHardwareInterface.cpp:
28:
hardware/alsa_sound/AudioHardwareALSA.h:116: error: 'Mutex' does
 not
name a type
hardware/alsa_sound/AudioHardwareALSA.h:130: error: 

[android-porting] Re: ALSA build error

2009-03-08 Thread Jack stone

you should search in this group. There is a patch :
http://groups.google.com/group/android-porting/browse_thread/thread/b66db688d1630382/80fdb626e3194c09?#80fdb626e3194c09

On Mar 6, 8:34 pm, Androidphan niels.kee...@tass.nl wrote:
 My local_manifest.xml:

 ?xml version=1.0 encoding=UTF-8?
 manifest
 project name=platform/vendor/asus/eee_701 path=vendor/asus/
 eee_701/
 project name=platform/external/alsa-lib path=external/alsa-lib/
 project name=platform/hardware/alsa_sound path=hardware/
 alsa_sound/
 /manifest

 I changed BoardConfig with BOARD_USES_ALSA_AUDIO := true

 I'm getting the following error:
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 27:
 hardware/alsa_sound/AudioHardwareStub.h:24:45: error: hardware/
 AudioHardwareInterface.h: No such file or directory
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 27:
 hardware/alsa_sound/AudioHardwareStub.h:30: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:39: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:39: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
 int android::AudioStreamOutStub::format() const':
 hardware/alsa_sound/AudioHardwareStub.h:36: error: 'AudioSystem' has
 not been declared
 hardware/alsa_sound/AudioHardwareStub.h: At global scope:
 hardware/alsa_sound/AudioHardwareStub.h:42: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:51: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:51: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
 int android::AudioStreamInStub::format() const':
 hardware/alsa_sound/AudioHardwareStub.h:48: error: 'AudioSystem' has
 not been declared
 hardware/alsa_sound/AudioHardwareStub.h: At global scope:
 hardware/alsa_sound/AudioHardwareStub.h:55: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:72: error: ISO C++ forbids
 declaration of 'AudioStreamOut' with no type
 hardware/alsa_sound/AudioHardwareStub.h:72: error: 'AudioStreamOut'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareStub.h:72: error: expected ';' before
 '*' token
 hardware/alsa_sound/AudioHardwareStub.h:77: error: ISO C++ forbids
 declaration of 'AudioStreamIn' with no type
 hardware/alsa_sound/AudioHardwareStub.h:77: error: 'AudioStreamIn'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareStub.h:77: error: expected ';' before
 '*' token
 hardware/alsa_sound/AudioHardwareStub.h:84: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:84: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h:88: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:88: error: ISO C++ forbids
 declaration of 'Vector' with no type
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 28:
 hardware/alsa_sound/AudioHardwareALSA.h:116: error: 'Mutex' does not
 name a type
 hardware/alsa_sound/AudioHardwareALSA.h:130: error: expected class-
 name before ',' token
 hardware/alsa_sound/AudioHardwareALSA.h:161: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareALSA.h:161: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:177: error: expected class-
 name before ',' token
 hardware/alsa_sound/AudioHardwareALSA.h:211: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareALSA.h:211: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:224: error: expected class-
 name before '{' token
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: ISO C++ forbids
 declaration of 'AudioStreamOut' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: 'AudioStreamOut'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: expected ';'
 before '*' token
 hardware/alsa_sound/AudioHardwareALSA.h:238: error: ISO C++ forbids
 declaration of 'AudioStreamIn' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:238: error: 'AudioStreamIn'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareALSA.h:238: error: expected ';'
 before '*' token
 hardware/alsa_sound/AudioHardwareALSA.h:249: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareALSA.h:249: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:259: error: 'Mutex' does not
 name a type
 hardware/alsa_sound/AudioHardwareInterface.cpp:87: error: expected
 constructor, destructor, or type conversion before '*' token
 hardware/alsa_sound/AudioHardwareInterface.cpp:230: error: expected
 `}' at end of 

[android-porting] Re: ALSA build error

2009-03-08 Thread Sean McNeil

We have updated the repository now. Just perform a repo sync and you 
should be fine.

Jack stone wrote:
 you should search in this group. There is a patch :
 http://groups.google.com/group/android-porting/browse_thread/thread/b66db688d1630382/80fdb626e3194c09?#80fdb626e3194c09

 On Mar 6, 8:34 pm, Androidphan niels.kee...@tass.nl wrote:
   
 My local_manifest.xml:

 ?xml version=1.0 encoding=UTF-8?
 manifest
 project name=platform/vendor/asus/eee_701 path=vendor/asus/
 eee_701/
 project name=platform/external/alsa-lib path=external/alsa-lib/
 project name=platform/hardware/alsa_sound path=hardware/
 alsa_sound/
 /manifest

 I changed BoardConfig with BOARD_USES_ALSA_AUDIO := true

 I'm getting the following error:
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 27:
 hardware/alsa_sound/AudioHardwareStub.h:24:45: error: hardware/
 AudioHardwareInterface.h: No such file or directory
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 27:
 hardware/alsa_sound/AudioHardwareStub.h:30: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:39: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:39: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
 int android::AudioStreamOutStub::format() const':
 hardware/alsa_sound/AudioHardwareStub.h:36: error: 'AudioSystem' has
 not been declared
 hardware/alsa_sound/AudioHardwareStub.h: At global scope:
 hardware/alsa_sound/AudioHardwareStub.h:42: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:51: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:51: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h: In member function 'virtual
 int android::AudioStreamInStub::format() const':
 hardware/alsa_sound/AudioHardwareStub.h:48: error: 'AudioSystem' has
 not been declared
 hardware/alsa_sound/AudioHardwareStub.h: At global scope:
 hardware/alsa_sound/AudioHardwareStub.h:55: error: expected class-name
 before '{' token
 hardware/alsa_sound/AudioHardwareStub.h:72: error: ISO C++ forbids
 declaration of 'AudioStreamOut' with no type
 hardware/alsa_sound/AudioHardwareStub.h:72: error: 'AudioStreamOut'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareStub.h:72: error: expected ';' before
 '*' token
 hardware/alsa_sound/AudioHardwareStub.h:77: error: ISO C++ forbids
 declaration of 'AudioStreamIn' with no type
 hardware/alsa_sound/AudioHardwareStub.h:77: error: 'AudioStreamIn'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareStub.h:77: error: expected ';' before
 '*' token
 hardware/alsa_sound/AudioHardwareStub.h:84: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:84: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareStub.h:88: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareStub.h:88: error: ISO C++ forbids
 declaration of 'Vector' with no type
 In file included from hardware/alsa_sound/AudioHardwareInterface.cpp:
 28:
 hardware/alsa_sound/AudioHardwareALSA.h:116: error: 'Mutex' does not
 name a type
 hardware/alsa_sound/AudioHardwareALSA.h:130: error: expected class-
 name before ',' token
 hardware/alsa_sound/AudioHardwareALSA.h:161: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareALSA.h:161: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:177: error: expected class-
 name before ',' token
 hardware/alsa_sound/AudioHardwareALSA.h:211: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareALSA.h:211: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:224: error: expected class-
 name before '{' token
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: ISO C++ forbids
 declaration of 'AudioStreamOut' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: 'AudioStreamOut'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareALSA.h:234: error: expected ';'
 before '*' token
 hardware/alsa_sound/AudioHardwareALSA.h:238: error: ISO C++ forbids
 declaration of 'AudioStreamIn' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:238: error: 'AudioStreamIn'
 declared as a 'virtual' field
 hardware/alsa_sound/AudioHardwareALSA.h:238: error: expected ';'
 before '*' token
 hardware/alsa_sound/AudioHardwareALSA.h:249: error: expected ',' or
 '...' before '' token
 hardware/alsa_sound/AudioHardwareALSA.h:249: error: ISO C++ forbids
 declaration of 'Vector' with no type
 hardware/alsa_sound/AudioHardwareALSA.h:259: error: 'Mutex' does not
 name a type
 hardware/alsa_sound/AudioHardwareInterface.cpp:87: error: expected
 constructor, destructor, or type