Build Error - Android Oreo 8.0,iMX6q,Ubuntu18.04,


Build Error - Android Oreo 8.0,iMX6q,Ubuntu18.04,

1,085 次查看
Contributor I

I am newbies to Android/Ubuntu platform. I have to build the Android Oreo 8.0 for i.MX6q in Ubuntu18.04.

Steps Followed :

All the necessary packages are installed for an Android build.
$ sudo apt-get install uuid uuid-dev
$ sudo apt-get install zlib1g-dev liblz-dev
$ sudo apt-get install liblzo2-2 liblzo2-dev
$ sudo apt-get install lzop
$ sudo apt-get install git-core curl
$ sudo apt-get install u-boot-tools
$ sudo apt-get install mtd-utils
$ sudo apt-get install android-tools-fsutils
$ sudo apt-get install openjdk-8-jdk
$ sudo apt-get install device-tree-compiler
$ sudo apt-get install gdisk
//Activity related to gitlab setting and repo sync all done then below action done

$ source build/
$ lunch ather450-userdebug
$ make  –j8

//In the First build, error below

"make: Entering directory '/home/dinesh/workspace/source/vendor/nxp-opensource/kernel_imx'
  HOSTCC  scripts/basic/fixdep
/bin/sh: 1: gcc: not found"

Resolved by the action sudo apt-get install gcc

In the subsequent(Second) Build, Error Log:

make[1]: Leaving directory '/home/dinesh/workspace/source/out/target/product/ather450/obj/KERNEL_OBJ'
make: Leaving directory '/home/dinesh/workspace/source/vendor/nxp-opensource/kernel_imx'
ninja: build stopped: subcommand failed.
01:25:27 ninja failed with: exit status 1
build/core/ recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

Kindly share the suggestion and help me.

0 项奖励
4 回复数

962 次查看
Contributor I

Hi Dinesha,

How did you fix the final error . I have a similar error now and it would be helpful if you could update me about the changes you made to solve the error .

Thank You .

Ketki K.

0 项奖励

1,051 次查看
NXP TechSupport
NXP TechSupport

If you are using NXP board, you can following our user guide.

0 项奖励

1,051 次查看
NXP TechSupport
NXP TechSupport

I see you are using the lunch ather450-userdebug, which board are you using?

0 项奖励

846 次查看
Contributor IV



I stay using imx7d-pico:
mkdir Android7
cd Android7
repo init -u -b tn-o8.0.0_1.0.0-ga
repo sync -j8
docker build -t build_droid8 .
source cookers/env.bash.imx7.pico.pi.lcd
cook -j8
0 项奖励