2012年3月19日 星期一

Android Install

Reference: http://code.google.com/p/androidbmi/wiki/InstallAndroid

1. Download Java SDK 6
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html

2. Download Eclipse
Eclipse IDE for Java EE Developers, 212 MB
Eclipse IDE for Java Developers, 128 MB

3. Install Android 開發工具 (ADT)。
in eclipse then choose install Available Software
Type -> http://dl-ssl.google.com/android/eclipse/site.xml
and it will fetching

Troble shoot {{{
To fix this problem, follow these instructions.
  1. In the Eclipse window, go to Help -> Install New Software
  2. Enter the URL https://dl-ssl.google.com/android/eclipse/ into the textbox.
  3. Click Add button.
  4. List of Developer Tools will be shown:- Android DDMS, Development Tools, Hierarchy Viewer and Traceview
  5. Uncheck “Contact all update sites during install to find required software” (this is causing the error message above).
  6. Click Next button.
  7. Click Finish button to start the installation process.

}}}


4.


OTHER PROBLEM
{{{
J2EE install have problem in repository


}}}

Reference{{{
http://www.cnblogs.com/qinpengming/archive/2011/10/19/2217948.html
}}}

2012年3月8日 星期四

IOCTL




This program opens a tty (serial port) and then calls ioctl with the fd of the serial port, the command TIOCMGET (listed as get the status of modem bits) and a pointer to an integer into which the result is returned.


Reference:



2012年3月5日 星期一

Make

article:

GNU make:



make 內建變數的涵義

$@ Target的檔名

$% 程式庫成員中的檔名元素

$< 第一個prequeite的檔名

$? Timestamp 在Target之後的Prequeite

$^ 所有的Prequeite的檔名 但不包含重複部分

$+ 所有的Prequeite的檔名


$(@D) $(

$(@F) $(



.PHONY in Makefile

Make 主要的工作目標都是針對檔案,所以萬一你定義的工作目標並不是檔案,或是正好與檔案重複的時候,其實是會讓人丈二金剛摸不著頭的。
所以,.PHONY 被用來定義假工作目標,這樣 Make 就知道這不是針對檔案。

Make 預設的假工作目標有:
  • all
  • install
  • clean
  • distclean
  • TAGS
  • info
  • check
Reference:

OBJ and ELF


Reference: