S.j. Wang

Android and LTIB build error in ubuntu 12.04 x86_64

Discussion created by S.j. 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 Android.mk of that module, add -Xmx512m to java command

 

In external/smali/smali/Android.mk:

 

$(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/LockPatternUtils.java:1280: error 114: @deprecated tag with no explanatory comment

 

The workaround is edit frameworks/base/core/java/com/android/internal/widget/LockPatternUtils.java, 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 libncurses.so exist in ltib/rootfs/usr/lib/, if not, build it with command “$ ./ltib -p ncurse”.

 

2. Create soft link libtinfo.so to libncurse.so

 

     $ cd rootfs/usr/lib

 

     $ sudo ln -s libncurses.so libtinfo.so

 

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 http://www.tug.org.  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"

 

Outcomes