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

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

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

1,417 Views
dinesha
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/envsetup.sh
$ 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/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

Kindly share the suggestion and help me.

0 Kudos
4 Replies

1,294 Views
Ketki
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 .

Regards,
Ketki K.

0 Kudos

1,383 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,383 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,178 Views
neuberfran
Contributor IV

@Rita_Wang

 

I stay using imx7d-pico:
 
 
steps:
 
mkdir Android7
cd Android7
repo init -u https://github.com/technexion-android/manifest -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
merge_restricted_extras
cook -j8
 
 
 
 
0 Kudos