Monday, March 30, 2009

build androind on Ubuntu intrepid (x86_64)

Android を Ubuntu Intrepid (x86_64) でbuildしようとしても,libz.soが見つからないと怒られる。
host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
collect2: ld はステータス 1 で終了しました
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] エラー 1
Issue 1005のthreadを読むと,getlibsというツールがあって,libz.soはどのパッケージをインストールすればいいのかがわかる。
sakura@/home/abekatsu/src/android% getlibs libz.so
libz.so: zlib1g-dev
The following i386 packages will be installed:
zlib1g-dev<
なので,zlib1g-devをいれてみると,buildが進んだ。

Sunday, March 01, 2009

Configure Static IP address on Ubuntu 8.10 using Network Manager

It's just my reminder. I did not re-test with the following procedure. So Please tell me if you cannot configure static IPv4 address via Network Manager.

Procedures:
  • Open Network Manager.

  • Delete DHCP configuration.
  • Add new connection for wired network configuration.

  • On editing dialog, Add IP address, netmask and gateway. (In most cases, you put the default gateway IP address). And put your resolver below.

  • Sorry, Japanese Characters are used in screen capture images.

    There was an error in this gadget