Failed in Building Android images

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

Failed in Building Android images

Jump to solution
1,388 Views
Harris
Contributor III

The system is Ubuntu 10.04 64-bit, Android 4.4.2.

I have setup the enviroment and pathes are ready for building the images.

I type following commands according to theChapter 3.3 in Android_User's_Guide.pdf.

1. source build/envsetup.sh

2. lunch sabresd_6dq-user

3. make 2>&1 | tee build_sabresd_6dq_android.log

The system give me the error info as below:

bootable/recovery/minzip/DirUtil.h:27:29: fatal error: selinux/selinux.h: No such file or directory

compilation terminated.

make: *** [out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/librecovery_updater_tilapia_intermediates/recovery_updater.o] Error 1

How to resolve this problems.

Thanks

Labels (2)
Tags (3)
0 Kudos
1 Solution
905 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Harris,

Selinux. Is part of the kernel header Did you have kernel header under /usr/include ? If you dont have it, probably due to your OS version, you need to get kernel header source.

As this errors appears on compilation I strongly suggest to start the installation from scratch.

Hope this helps

View solution in original post

0 Kudos
3 Replies
906 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Harris,

Selinux. Is part of the kernel header Did you have kernel header under /usr/include ? If you dont have it, probably due to your OS version, you need to get kernel header source.

As this errors appears on compilation I strongly suggest to start the installation from scratch.

Hope this helps

0 Kudos
905 Views
Harris
Contributor III

Dear Bio,

I have fix this problem.

The reason is some packages is not installed.

Thanks.

0 Kudos
905 Views
Harris
Contributor III

Dear Bio,

Thanks for your reply.

I will try it.

0 Kudos