写真集

Camera:Panasonic LUMIX DMC-LX3
Vine Linux と Ubuntu の設定方法など

Android ビルド 不足ライブラリ

2011-01-15 21:06:42 | Android

Fedora14 x86_64 でビルドしたため x86 のライブラリをインストールしました。
クロスコンパイルですね。下記から検索します。
http://rpm.pbone.net/index.php3

  1. /usr/bin/ld: cannot find -lXi
    libXi
    ------------------------------------------------------
    $ make xconfig
    HOSTLD scripts/kconfig/qconf
    /usr/bin/ld: cannot find -lXi
    collect2: ld はステータス 1 で終了しました
    make[1]: *** [scripts/kconfig/qconf] エラー 1
    make: *** [xconfig] エラー 2
    -------------------------------------------------------
  2. /usr/bin/ld: cannot find -lz
    zlib-devel
  3. /usr/bin/ld: skipping incompatible /usr/lib64/libtinfo.so when searching for -ltinfo
    /usr/bin/ld: cannot find -ltinfo
    ncurses-devel
  4. libreadline.so
    readline-devel

Android ビルド終了

2011-01-15 14:14:17 | Android
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found.  Create? yes
Pass 4: Checking reference counts
Pass 5: Checking group summary information
system: ***** FILE SYSTEM WAS MODIFIED *****
system: 1096/1752 files (1.3% non-contiguous), 573769/592472 blocks
Install system fs image: out/target/product/eeepc/system.img
rm -rf out/target/product/eeepc/installer
out/host/linux-x86/bin/acp -pr bootable/newinstaller/initrd out/target/product/eeepc/installer
out/host/linux-x86/bin/acp -p device/asus/eeepc/eeepc_info out/target/product/eeepc/installer/scripts
ln -s /bin/ld-linux.so.2 out/target/product/eeepc/installer/lib
mkdir -p out/target/product/eeepc/installer/android out/target/product/eeepc/installer/mnt out/target/product/eeepc/installer/proc out/target/product/eeepc/installer/sys out/target/product/eeepc/installer/tmp out/target/product/eeepc/installer/sfs out/target/product/eeepc/installer/hd
echo "VER=2011-01-15" > out/target/product/eeepc/installer/scripts/00-ver
out/host/linux-x86/bin/mkbootfs out/target/product/eeepc/installer | gzip -9 > out/target/product/eeepc/initrd.img
out/host/linux-x86/bin/mkbootfs bootable/newinstaller/install/ | gzip -9 > out/target/product/eeepc/install.img
rm -rf out/target/product/eeepc/usb_boot
mkdir -p out/target/product/eeepc/usb_boot/android-system
touch out/target/product/eeepc/usb_boot/ramdisk
echo 1 > out/target/product/eeepc/usb_boot/cmdline
ln out/target/product/eeepc/ramdisk.img out/target/product/eeepc/initrd.img out/target/product/eeepc/install.img out/target/product/eeepc/system.img out/target/product/eeepc/kernel out/target/product/eeepc/usb_boot/android-system
out/host/linux-x86/bin/acp -fp bootable/newinstaller/usb/* bootable/newinstaller/usb/../install/grub/android-x86.xpm.gz out/target/product/eeepc/usb_boot
ln -s grub4dos out/target/product/eeepc/usb_boot/kernel
num_blocks=`du -sk out/target/product/eeepc/usb_boot | tail -n1 | awk '{print $1;}'`; \
num_inodes=`find out/target/product/eeepc/usb_boot | wc -l`; \
out/host/linux-x86/bin/genext2fs -d out/target/product/eeepc/usb_boot -b `expr $num_blocks + 20480` -N `expr $num_inodes + 15` -m 0 out/target/product/eeepc/usb_tmp.img
target Creating: out/target/product/eeepc/grub/grub_stage2
target Generating GRUB bin: out/target/product/eeepc/grub/grub.bin
----- Making usb image ------
I/diskconfig(10726): Requesting operation on a regular file, not block device.
I/config_mbr(10726): Configuring pentry. status=0x80 type=0x83 start_lba=2048 len_lba=1235920
I/config_mbr(10726): Configuring pentry. status=0x0 type=0x0 start_lba=0 len_lba=0
I/config_mbr(10726): Configuring pentry. status=0x0 type=0x0 start_lba=0 len_lba=0
I/config_mbr(10726): Configuring pentry. status=0x0 type=0x0 start_lba=0 len_lba=0
I/diskutils(10726): Writing RAW image 'out/target/product/eeepc/usb_tmp.img' to 'out/target/product/eeepc/eeepc_usb.img' (offset=1048576)
I/diskutils(10726): Wrote 632791040 bytes to out/target/product/eeepc/eeepc_usb.img @ 1048576
Updated usb_boot length to be 617960KB
Copying images to specified partition offsets
File edit complete. Wrote 1 images.

Android ビルド中にライブラリ不足の対応 メモ

2011-01-15 13:23:40 | Fedora 14

ビルド中に下記のようなエラーがでたら

Install: out/target/product/eeepc/system/xbin/timeinfo
host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)
/usr/bin/ld: skipping incompatible /usr/lib64/libtinfo.so when searching for -ltinfo
/usr/bin/ld: cannot find -ltinfo
collect2: ld はステータス 1 で終了しました
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] エラー 1

http://rpm.pbone.net/index.php3
にて
libtinfo.so を検索(Search)します。

PLD  ftp.pld-linux.org/dists/2.0/updates/i586/ncurses-devel-5.7-8.i586.rpm

などと表示されるのでリストを検索します。
$ yum list ncurses-devel
ncurses-devel-x.x-x.ixxx

開発ライブラリをインストールします。
$ sudo yum install ncurses-devel-x.x-x.ixxx