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 : > > > > > > > http://groups.google.com/group/android-porting/browse_thread/thread/b... > > > > > > > > >>> 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' > > > > ... > > > > read more ยป > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---