LinuxÏ°²×°ÅäÖÃAndroid¿ª·¢»·¾³
תÔØ android sdk 1.5 °²×°ÓëÅäÖÃ
²Î¿¼ ubuntu 8.10 °²×° Android
1.ÏÂÔØandroid sdk
ÏÂÔصØÖ·ÈçÏ£º
http://dl.google.com/android/android-sdk-windows-1.5_r2.zip
http://dl.google.com/android/android-sdk-linux_x86-1.5_r2.zip
2.
ÏÂÔØeclipse 3.4.2
°´¹Ù·½ÎĵµËµ£¬android sdk ¿ÉÒÔÔËÐÐÔÚeclipse
3.3ÒÔÉϵÄIDEÖУ¬ubuntuÔ´ÖеÄeclipse°æ±¾¹ýµÍ£¬½¨ÒéʹÓÃeclipse 3.4.2£¬ÆäÏÂÔصØַΪ:
http://download.actuatechina.com/eclipse/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-linux-gtk.tar.gz
3.
°²×°eclipse 3.4.2
ÏȽ«eclipse½âѹ:
$tar xzvf
eclipse-SDK-3.4.2-linux-gtk.tar.gz
½«½âѹ³öµÄeclipseÎļþ¼ÐÒƶ¯µ½Ä¿±êĿ¼ÖÐÈ¥£¬ÔÚ
ÕâÀïÎÒÉ趨µÄ°²×°Ä¿±êΪ£º/usr/localÏ¡£
$sudo mv eclipse
/usr/local/
(
Java libjvm.so and SELinux error:
/opt/jre1.6.0_03/bin/../lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied
½â¾ö·½·¨£ºchcon -t textrel_shlib_t /opt/jre1.6.0_03/lib/i386/client/libjvm.so
)
4.°²×°android sdk
½âѹandroid sdk°ü:
$unzip android-sdk-linux_x86-1.5_r2.zip
Òƶ¯µ½Ä¿±êÄ¿
¼£º£¼ÔÚÕâÀïÎÒ½«½âѹ³öµÄsdkÎļþ¼ÐĿ¼¸Ä³ÉÁËandroid-sdk£¾
$mv
android-sdk-linux_x86-1.5_r2 android-sdk
$sudo mv android-sdk
/usr/local/
5.ÅäÖû·¾³±äÁ¿£º
ÐÞ¸Ä~/.bashrcÎļþ£¬¼ÓÈëandroid
sdkÓëeclipseµÄ»·¾³±äÁ¿¡£
$vi ~/.bashrc
ÔÚÎļþµÄ×î
ºó¼ÓÈë
export
PATH=/usr/local/android-sdk/tools:/usr/local/eclipse:$PATH
±£´æ²¢
Í˳övi
ʹÅäÖÃÐÅÏ¢ÉúЧ
$source ~/.bashrc
6.android
avdÅäÖÃÐÅÏ¢µÄÉú³É
android avdµÄ´´½¨¸ñʽΪ:android create avd -n your-avd-name -t
your-targets
ÆäÖУº-nµÄ²ÎÊýΪÎÒÃÇÒª´´½¨µÄavdµÄÃû×Ö;-tµÄ²ÎÊýΪAvailable Android
targetsµÄid,ÎÒÃÇ¿ÉÒÔʹÓÃÃüÁandroid list²éÑ°Æä¾ßÌåÐÅÏ¢¡£
$android
list
Available Android targets:
id: 1
Name: Android 1.1
Type: Platform
API level: 2
Skins: HVGA-P, HVGA (default), QVGA-P, HVGA-L, QVGA-L
id: 2
Name: Android 1.5
&nb
Ïà¹ØÎĵµ£º
Linux·þÎñÆ÷ÔÚÆô¶¯Ê±ÐèÒªÆô¶¯ºÜ¶àϵͳ·þÎñ£¬ËüÃÇÏò±¾µØºÍÍøÂçÓû§ÌṩÁËLinuxµÄϵͳ¹¦Äܽӿڣ¬Ö±½ÓÃæÏòÓ¦ÓóÌÐòºÍÓû§¡£ÌṩÕâЩ·þÎñµÄ³ÌÐòÊÇÓÉÔËÐÐÔÚºǫ́µÄÊØ»¤½ø³Ì£¨daemons£©À´Ö´Ðеġ£ÊØ»¤½ø³ÌÊÇÉú´æÆÚ³¤µÄÒ»ÖÖ½ø³Ì¡£ËüÃǶÀÁ¢ÓÚ¿ØÖÆÖն˲¢ÇÒÖÜÆÚÐÔµÄÖ´ÐÐijÖÖÈÎÎñ»òµÈ´ý´¦ÀíijЩ·¢ÉúµÄʼþ¡£ËûÃdz£³£ÔÚϵͳÒýµ¼×°ÈëʱÆô¶ ......
ÔÚƽ³£µÄ×÷ÒµÖУ¬ÓÐʱºòÀÏʦÈÃ×Ô¼ºÊµÏÖÖîÈçcatµÈÀàµÄ³ÌÐò£¬ÓÐʱºò½ÐÓÃshellʵÏÖ£¬ÓÐʱºòÓÃcʵÏÖ£¬µ«ÊÇÎÒ¾³£Ò»µãÍ·Ð÷¶¼Ã»ÓУ¬²»¹ýÎÒÏëµ½linux¿ªÔ´µÄ£¬ÃüÁî´úÂë¿ÉÒÔÄÃÀ´²Î¿¼Ï°¢£¬ËùÒÔÎÒ¾ÍÏë¿´¿´linuxÃüÁîµÄÔ´´úÂ룬ÓÚÊǾͿªÊ¼Á˰ڶɹ·¹·µÄËÑË÷¹ý³Ì¡£´Ó½á¹ûÀ´¿´£¬ÓÐÁ½ÖÖÇé¿ö£¬Ò»ÖÖÊǸøÓèrpmµÄ°üµÄÐÎʽ£»ÁíÒ»ÖÖÊÇ»ùÓÚdeb°üµÄÐ ......
Á´½ÓÎļþÓеãÀàËÆÓÚWindows µÄËùν¿ì½Ý·½Ê½£¬µ«²¢²»ÍêÈ«Ò»Ñù¡£Á´½ÓÓÐÁ½ÖÖ·½Ê½£¬ÈíÁ´½ÓºÍÓ²Á´½Ó¡£
¡¡¡¡ÈíÁ´½ÓÎļþ
¡¡¡¡ÈíÁ´½ÓÓֽзûºÅÁ´½Ó£¬Õâ¸öÎļþ°üº¬ÁËÁíÒ»¸öÎļþµÄ·¾¶Ãû¡£¿ÉÒÔÊÇÈÎÒâÎļþ»òĿ¼£¬¿ÉÒÔÁ´½Ó²»Í¬ÎļþϵͳµÄÎļþ¡£Á´½ÓÎļþÉõÖÁ¿ÉÒÔÁ´½Ó²»´æÔÚµÄÎļþ£¬Õâ¾Í²úÉúÒ»°ã³Æ֮Ϊ"¶ÏÁ´"µÄÎÊÌâ(»òÔ»“ÏÖ ......
redhatϵÁÐ(rhel,centos,fc) yum install package-name
debianϵÁÐ(debian,ubuntu) apt-get install package-name
¶ÔÓÚ¿ª·¢°ü
redhat: yum install python-devel
debian: apt-get install python-dev
Ìí¼ÓÓû§
redhat: useradd user-name
debian: useradd -m user-name
debianϵÁÐÀï ......
ÈíʵʱºÍӲʵʱ£¬ÈíʵʱÊÇ˵Υ·´Á˳ÌÐòÖ´ÐеÄdeadlineÒ²²»»áÓÐÖÂÃüµÄ´íÎ󣬶øӲʵʱµÄdeadlineÊÇдËÀµÄ¡£
ºÜ¶àlinuxÓÐӲʵʱµÄ²¹¶¡£¬ÈçMontaVista¡£
ÓÐÔ´¾§ÕñºÍÎÞÔ´¾§Õñ£¬ÓÐÔ´µÄ½Ðosllicator£¬ÎÞÔ´µÄ½Ðcrystal¡£
uclinuxÊǾ²Ì¬±àÒëµÄ£¬Ã»ÓÐmmu»úÖÆ¡£
x86µÄҪѡxterm...
serveu¼ÙÉè·þÎñÆ÷ + linuxÓÃsftp£¨Í¨¹ýssh ......