Android 8.0.0 Oreo Build Issue

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

Android 8.0.0 Oreo Build Issue

3,586 Views
harishkumarts
Contributor I

Hi Team,

I am trying to build the android 8.0.0 Oreo source code for "imx6 sololite evk" platform, But following error is getting.

Build Platform is selected for evk_6sl_user.

H110M-S2:~/Project/Android_8/android_build$ source build/envsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/fsl/imx6/vendorsetup.sh
including device/fsl/imx7/vendorsetup.sh
including device/fsl/imx8/vendorsetup.sh
including device/generic/car/car-arm64/vendorsetup.sh
including device/generic/car/car-armv7-a-neon/vendorsetup.sh
including device/generic/car/car-x86_64/vendorsetup.sh
including device/generic/car/car-x86/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/google/dragon/vendorsetup.sh
including device/google/marlin/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/linaro/hikey/vendorsetup.sh
including sdk/bash_completion/adb.bash
H110M-S2:~/Project/Android_8/android_build$ lunch 16

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=evk_6sl
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPD1
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-119-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=1.0.0-rfp-rc4
OUT_DIR=out
AUX_OS_VARIANT_LIST=
============================================
zumi@zumi-H110M-S2:~/Project/Android_8/android_build$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=evk_6sl
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-119-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=1.0.0-rfp-rc4
OUT_DIR=out
============================================
[38/38] bootstrap out/soong/.minibootstrap/build.ninja.in
[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/build.ninja.in
[4/4] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
[791/792] glob vendor/*/*/Android.bp
[47/47] 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_arm_armv7-a-neon_cortex-a9_shared_core": source path vendor/nxp/fsl-codec/ghdr/common does not exist
ninja: build stopped: subcommand failed.
19:17:24 soong failed with: exit status 1
make: *** [run_soong_ui] Error 1

Please support to resolve this issue.

Regards,

Harish.

0 Kudos
5 Replies

1,979 Views
pragikde
Contributor I

hi diego ,

sudo apt-get install git gnupg flex bison gperf build-essential zip curl zlib1g-dev /
libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev /
lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc

is it suitable for ubuntu 14.04

0 Kudos

1,979 Views
harishkumarts
Contributor I

Hello,

Yes This package will support for Ubuntu 14.04

0 Kudos

1,979 Views
harishkumarts
Contributor I

Hi Diego,

Sorry for the late reply, your Ans is right I resolved this issue already. Thanks.

Regards,

Harish.

0 Kudos

1,979 Views
tomoke
Contributor I

I found that the frameworks/av/media/libstagefright/Android.bp was doing include_dirs for both vendor/nxp/fsl-codec/ghdr/common and vendor/nxp-opensource/imx/include which are not in the vendor tree below android_build, but in a vendor hierarchy parallel to that.

With typical subtlty I copied the entire contents of the vendor/nxp folder to android_build/vendor/nxp and my build continues on. Totally a hack for want of finding out more of why the hierarchy is parallel, but seemingly a step forward.

0 Kudos

1,979 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Are you downloading all the package that Google provides to build the Android image? Those packages are the listed below:

sudo apt-get install git gnupg flex bison gperf build-essential zip curl zlib1g-dev /
libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev /
lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc

Hope this information can solve your problem.

Best Regards,

Diego.

0 Kudos