顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

2010年5月14日 星期五

Android source build problem on Virtual machine

You may install Ubuntu on Virtualbox, and use it to build Android source. When you build whole source code based on Android 1.6, you will not meet "too many open file" error when trying to build it. But when you run "repo sync" to update Android 1.6 to 2.1, you may meet this error.
This is caused by the small open file limitation on Ubuntu Linux system.
You can add following value into configuration file in /etc/security/limits.conf


jacky soft nofile 2048
jacky hard nofile 4096

This changing will let the user(jacky) can open files up to 4096.
Then the "too many open file" error will go out.

2010年1月10日 星期日

Howto: Build Android source on Ubuntu 9.10 need java 1.5

Now the java version on Ubuntu 9.10 is default as 1.6, but this version have problem to build Android.
The reason is mentioned in Android geting source page.
Following is a note from Internet to force install java 1.5.
My work Record: ubuntu 9.10 , build android , java 1.5

2010年1月4日 星期一

HowTo: Create a list of installed packages - Ubuntu Forums

HowTo: Create a list of installed packages - Ubuntu Forums
Recently, I have three Ubuntu host to develop something, but I always have to reinstall the necessary packages one by one when build system complain it needs some files.

Now I found a good solution to get the whole installed list and feed it to a fresh host, then I have some developing environment on three machine.

This is a great tip for me.

#dpkg --get-selections > installed-software (run on ready developing machine)

#dpkg --set-selections < installed-software (run on fresh machine, then followed by dselect)