Android and LTIB build error in ubuntu 12.04 x86_64

Showing results for 
Search instead for 
Did you mean: 

Android and LTIB build error in ubuntu 12.04 x86_64

NXP Employee
NXP Employee

Build ICS

If your PC memory is only 1GB, you may meet out of memory error, such as

target Generated: smali <= external/smali/smali/src/main/antlr3/org/jf/smali/smaliLexer.g

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

The workaround is change the of that module, add -Xmx512m to java command

In external/smali/smali/

$(GEN): PRIVATE_CUSTOM_TOOL = java -Xmx512m -jar $(ANTLR_JAR) -fo $(dir $@) $<

Build JB-4.2.2

My java version is 1.6.0_06, "sudo apt-get install sun-java6-jdk" show it's the newest version, but I still meet this error:

frameworks/base/core/java/com/android/internal/widget/ error 114: @deprecated tag with no explanatory comment

The workaround is edit frameworks/base/core/java/com/android/internal/widget/, remove line 1280 * @deprecated.

Build LTIB

When build alsa-utils from ltib, in ubuntu 12.04 x86_64, you may meet this error:

checking for new_panel in -lpanel... no

configure: error: panel library not found

error: Bad exit status from ….

The workaround is

1. Make sure if exist in ltib/rootfs/usr/lib/, if not, build it with command “$ ./ltib -p ncurse”.

2. Create soft link to

     $ cd rootfs/usr/lib

     $ sudo ln -s

Then you can build alsa-utils by “$ ./ltib -p alsa-utils”

Build L3.0.35_4.0.0

When build L3.0.35_4.0.0_130424_source in 64bits ubuntu, you may meet “make[2]: *** [flex.pdf] Error 1” error.

The full error log can be found in host_config.log, it’s

You don't have a working TeX binary (tex) installed anywhere in

your PATH, and texi2dvi cannot proceed without one.  If you want to use

this script, you'll need to install TeX (if you don't have it) or change

your PATH or TEX environment variable (if you do).  See the --help

output for more details.

For information about obtaining TeX, please see  If

you happen to be using Debian, you can get it with this command:

  apt-get install tetex-bin

make[2]: *** [flex.pdf] Error 1

make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37/doc'

make[1]: *** [install-recursive] Error 1

make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37'

make: *** [install] Error 2

error: Bad exit status from /work/sata3/wsj/4.0.0/L3.0.35_4.0.0_130424_source/ltib/tmp/rpm-tmp.94464 (%install)

Install below package can fix the error

sudo apt-get install texinfo

sudo apt-get install texlive

Build 4.1.0 gst-plugins-good

In ltib/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec, comment cairo

#export CAIRO_CFLAGS="-I${DEV_IMAGE}/usr/include/cairo"

#export CAIRO_LIBS="-L${DEV_IMAGE}/usr/lib/cairo"

#export LIBS="-lcairo"

Labels (2)
3 Replies

NXP Employee
NXP Employee

Hello, Shaojun,

Thanks for the insight to fix the alsa-utils build issue in Ubuntu 12.04 64bit OS; which is to create soft link to in the rootfs.

Alternative, it could add --with-termlib option to the ltib/dist/lfs-5.1/ncurses/ncurses.spec; which are:



%define optflags $CFLAGS

if [ "$GNUTARCH" != m68knommu ]


./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \

    --with-install-prefix=$RPM_BUILD_ROOT --mandir=%{_mandir} \

    --with-shared  --without-debug --without-cxx-binding --with-termlib


./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \

    --with-install-prefix=$RPM_BUILD_ROOT --mandir=%{_mandir} \

    --without-shared  --without-debug --without-cxx-binding


make -j1 HOSTCC="$BUILDCC"

Then, it will generate the following files which is needed by alsa-utils


Contributor II


it helps me a lot.

0 Kudos

Contributor II

my virtual is ubuntu 12.04 x86_64 two,but when I build the android 4.2.2 for sabresd_6dq I meet the error:

make: *** No rule to make target `out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libubi_intermediates/export_includes', needed by `out/target/product/sabresd_6dq/obj/EXECUTABLES/recovery_intermediates/import_includes'.  Stop.

please help me!


0 Kudos