Shaojun Wang

Android and LTIB build error in ubuntu 12.04 x86_64

Discussion created by Shaojun Wang Employee on Feb 6, 2013
Latest reply on Nov 5, 2013 by Isaac Ng

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"