I was facing a similar issue.
This problem arises because the library is not linked properly.
I tried many possibilities but couldnt fix it yet.

The below link might help your case atleast,
http://groups.google.co.in/group/android-platform/browse_thread/thread/bd739c001ed7df84/4d0d35b7e0c33c61?hl=en&lnk=gst&q=Include+prebuilt+lib+in+build#4d0d35b7e0c33c61



On Thu, Oct 21, 2010 at 4:48 AM, [email protected] <[email protected]> wrote:

> I pulled all the sources down as described in all the HOWTOs and I'm
> able to build generic. Armed that that power, I set up the vendor-
> specific files for the Captivate, pulled all the hardware-specific
> files down and whatnot, and everything is moving along, but towards
> the end the build dies on libaudiofinger.so. After doing a little
> reading I saw that I need to pull in the alsa stuff from git so I did
> that. According to the logs it would seem the alsa stuff built
> properly so I am good there. But right at the end I end up with this:
>
> target SharedLib: libaudioflinger (out/target/product/captivate/obj/
> SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/
> libaudioflinger.so)
> out/target/product/captivate/obj/SHARED_LIBRARIES/
> libaudioflinger_intermediates/AudioPolicyService.o: In function
> `android::AudioPolicyService::AudioPolicyService()':
> AudioPolicyService.cpp:(.text._ZN7android18AudioPolicyServiceC1Ev
> +0x130): undefined reference to
>
> `android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)'
> out/target/product/captivate/obj/SHARED_LIBRARIES/
> libaudioflinger_intermediates/AudioPolicyService.o: In function
> `android::AudioPolicyService::AudioPolicyService()':
> AudioPolicyService.cpp:(.text._ZN7android18AudioPolicyServiceC2Ev
> +0x124): undefined reference to
>
> `android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)'
> collect2: ld returned 1 exit status
> make: *** [out/target/product/captivate/obj/SHARED_LIBRARIES/
> libaudioflinger_intermediates/LINKED/libaudioflinger.so] Error 1
>
> I've searched the web high and low, seen a number of people posting
> about this error but no one seems to know the answer. This seems to be
> my only remaining hurdle so any help would be appreciated.
>
> --
> unsubscribe: 
> [email protected]<android-porting%[email protected]>
> website: http://groups.google.com/group/android-porting
>

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

Reply via email to