Android-8.1.0_1.3.0 image build fail / nxp imx8-evk

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

Android-8.1.0_1.3.0 image build fail / nxp imx8-evk

4,803 Views
cesar_hernande1
Contributor II

Hi All,

I am trying to build android-8.1.0_1.3.0 for nxp i.mx8m based on the guide attached below.

this is the source code i use: https://www.nxp.com/webapp/Download?colCode=O8.1.0_1.3.0_ANDROID_TOOL_8MQ_GA&appType=license&Parent_... 

- I follow all steps on the guide all the way to the make command but always get the error below

- I'm wondering if anyone else got this error and if so has anyone been able to correct it?

I have tried re-running all steps multiple times with no success.

Any help is appreciated

Thank You

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=evk_8mq
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-32-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=1.3.0-rfp-rc3
OUT_DIR=out
============================================
ninja: no work to do.
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -b out/soong -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
error: frameworks/av/media/libstagefright/Android.bp:7:1: module "libstagefright" variant "android_arm64_armv8-a_cortex-a53_shared_core": source path vendor/nxp/fsl-codec/ghdr/common does not exist
ninja: build stopped: subcommand failed.
20:53:29 soong failed with: exit status 1

[0;31m#### failed to build some targets (20 seconds) #### [00m

0 Kudos
3 Replies

1,974 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Cesar,

You need to install all packages from Establishing a Build Environment  |  Android Open Source Project in case of file does not exist you need to download the android again.

regards

0 Kudos

1,974 Views
cesar_hernande1
Contributor II

Hi,

Thank you for your reply. I had already established the build environment with the same link with no success. I also tried to download source code again and this is the output i get:

_intermediates/jack-rsc.java-source-list )"
No Jack server running. Try 'jack-admin start-server'
[ 75% 68945/91427] //art/runtime:libart clang++ dex_instruction.cc [linux x86]
[ 75% 68946/91427] //art/runtime:libart clang++ cha.cc [linux x86]
[ 75% 68947/91427] //art/runtime:libart clang++ debugger.cc [linux x86]
[ 75% 68948/91427] //art/runtime:libart clang++ class_linker.cc [linux x86]
ninja: build stopped: subcommand failed.
19:34:52 ninja failed with: exit status 1

#### failed to build some targets (02:25:13 (hh:mm:ss)) ####

- It seems like everything is running correctly but it suddenly stops at different % of the build

0 Kudos

1,974 Views
marouene_boubakri
NXP Employee
NXP Employee

Dear Cesar,

A quick and dirty working solution:

 

$ cp -r vendor/nxp/* android_build/vendor/nxp

 

Then run make again

 

Regards

Maro