2011年3月24日 星期四

JDK for Win7 x64

安裝 Android_SDK(R10)時,一直說找不到 JDK 嗎??


Press back when you get the notification and then next. This time it will find the JDK.

(don't know why, but it works on Windows 7 64)

This is from the link below... Thanks~~
http://stackoverflow.com/questions/4382178/android-sdk-installation-doesnt-find-jdk

2011年3月21日 星期一

Java5 for 32 bit & Java6 for 64 bit Ubuntu

http://source.android.com/source/download.html

The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used.

Java 6: for Gingerbread and newer
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

Java 5: for Froyo and older
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
sudo apt-get update
sudo apt-get install sun-java5-jdk
sudo update-java-alternatives -s java-1.5.0-sun

To set up your development environment, install the following required packages:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev

You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.

2011年2月9日 星期三

Some 32bit library for 64bit Ubuntu

http://www.pyoix.com/a/143.html ==> Page Lost...

錯誤1:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

解決:
sudo apt-get install libc6-dev-i386

錯誤2:
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++

解決:
sudo apt-get install g++-multilib

錯誤3:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../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

解決:
sudo apt-get install lib32z1-dev

錯誤4:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libncurses.a when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses
/usr/bin/ld: cannot find -lncurses

解決:
sudo apt-get install lib32ncurses5-dev

錯誤5:
In file included from external/qemu/android/skin/window.c:19:
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55:22: error: X11/Xlib.h: 沒有那個文件或目錄
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:56:23: error: X11/Xatom.h: 沒有那個文件或目錄
解決:
sudo apt-get install libx11-dev

Set up sun-java6-jdk for Ubuntu 10.10 64bit for Android 2.3

http://www.cyberciti.biz/faq/howto-ubuntu-linux-install-configure-jdk-jre/

.....

I solved like this:
sudo gedit /etc/apt/sources.list
Delete the line that it is causing the mal formed line error.
Find the lines where canonical repositories are commented with #
Uncomment lines.
Save file
Execute again
sudo apt-get update

Try again installing with
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk