Error building imx6 Android Rev. 13.4.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error building imx6 Android Rev. 13.4.1

1,361 Views
sriramchadalava
Contributor III

Dear community,

  I'm trying out the instructions in Adobe User Guide 13.4.1 but encountered this error.

ram@ram-Latitude-E6520:~/Prevas/Android_porting/Freescale/imx6/myandroid$ make

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.4

TARGET_PRODUCT=sabresd_6dq

TARGET_BUILD_VARIANT=user

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=UNKNOWN

BUILD_NUMBER=eng.ram.20130502.182613

============================================

build/core/base_rules.mk:166: *** hardware/alsa_sound: MODULE.TARGET.SHARED_LIBRARIES.libaudio already defined by external/alsa_sound.  Stop.


I was under the impression that 13.4.1 is a production release by Freescale. Is this is a known bug? It might be that I could hack a makefile to not build one of the alsa_sound directories. But is there a better solution? Thanks.



Labels (3)
0 Kudos
7 Replies

963 Views
YixingKong
Senior Contributor IV

Sriram, please click Correct Answer/Helpful Answer if your issue has disappreaed.

Thanks,

Yixing

0 Kudos

963 Views
sriramchadalava
Contributor III

Hi Yixing,

  Thanks for your reply. But I didn't receive ANY answers to my question.

- Sriram

0 Kudos

963 Views
YixingKong
Senior Contributor IV

Sriram, please respond to our engineer's question in 3 days, or we will close your question.

Thanks,

Yixing

0 Kudos

963 Views
JayTu
NXP Employee
NXP Employee

Hi Sriram,

Can you check if your default.xml has external/alsa_sound or not?

0 Kudos

963 Views
sriramchadalava
Contributor III

Hi Jay,

   Thanks for your follow up.

   No, default.xml does not have external/alsa_sound.

0 Kudos

963 Views
JayTu
NXP Employee
NXP Employee

If default.xml does not have it, your working tree shouldn't have it. That means repo sync didn't work properly. (or you haven't sync?)

0 Kudos

963 Views
JayTu
NXP Employee
NXP Employee

I just try clean build again and didn't see this problem.

From your error, the error means your tree will build libaudio twice.

I can only see hardware/alsa_sound/Android.mk has the definition.

  6 ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)

  ...

26

27   LOCAL_MODULE := libaudio

And I didn't have external/alsa_sound, we don't have it in our default.xml.

Do you sync your working tree correctly?


0 Kudos