Android and LTIB build error in ubuntu 12.04 x86_64

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

Android and LTIB build error in ubuntu 12.04 x86_64

9,063 Views
shaojun_wang
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 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"

Labels (2)
3 Replies

1,821 Views
isaac_ng
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 libtinfo.so to libncurse.so in the rootfs.

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

%Build

CFLAGS="%{optflags} -DPURE_TERMINFO -DSVR4_CURSES"

%define optflags $CFLAGS

if [ "$GNUTARCH" != m68knommu ]

then

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

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

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

else

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

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

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

fi

make -j1 HOSTCC="$BUILDCC"

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

Clipboard01.jpg

1,821 Views
Dennis_Han
Contributor II

Thanks.

it helps me a lot.

0 Kudos
Reply

1,821 Views
jian
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!

     Thanks!

0 Kudos
Reply