MacOSXã«eclipseãå°å ¥ãã
2011/8/5 MacOSX 10.7 Lion ã«eclipse 3.7(Indigo)ãã¤ã³ã¹ãã¼ã«ããæé ã§ãã
åæã«ãã©ã°ã¤ã³ãããã¤ãå
¥ãã¦ã¿ã¾ããã®ã§ã¡ã¢ãã¦ããã¾ãããã¨ããã©ãã端æã£ã¦ãã¾ãã
eclipseã®ã¤ã³ã¹ãã¼ã«
å
¬å¼ãµã¤ãããJavaéçºç°å¢ããã¦ã³ãã¼ã â http://www.eclipse.org/downloads/
Eclipse IDE for Java Developers(Mac OS X 32bit)ãé¸æ(mirror selectionã§æ¥æ¬ã®ãµã¼ãã¼ãé¸æ)
ãã¦ã³ãã¼ããå®äºããããé©å½ãªãã£ã¬ã¯ããª
(ä¾ãã° /Applications/eclipseãæ¥æ¬èªè¡¨ç¤ºã§ã¢ããªã±ã¼ã·ã§ã³ãã©ã«ãç´ä¸ãªã©)
eclipseã®æ¥æ¬èªå
Pleiadesããã¦ã³ãã¼ãâ http://mergedoc.sourceforge.jp/
Pleiades æ¬ä½ãã¦ã³ãã¼ãå¾ã解åããã å·çæãã¼ã¸ã§ã³1.3.3 (pleiades_1.3.3.zip)
pleiades_1.3.3/pluginså
ã®å
¨ã¦ã®ãã¡ã¤ã«ã
ã¾ããpleiades_1.3.3/featureså
ã®å
¨ã¦ã®ãã¡ã¤ã«ã
â»ãã£ã¬ã¯ããªãã¨ã³ãã¼ããã¨å
ã®ãã¡ã¤ã«ãæ¶ãã¦ãã¾ãã®ã§æ³¨æã
ã¿ã¼ããã«&é©å½ãªã¨ãã£ã¿ã使ã£ã¦
ã®æå¾ã®è¡ã«ä»¥ä¸ã追è¨ãã
-javaagent:../../../plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
eclipse.iniãåºæºã«ããç¸å¯¾ãã¹ã絶対ãã¹ãæ¸ãã°ããã
以ä¸ã§å®äºãEclipse.appãèµ·åããã(詳ããã¯pleiades_1.3.3/readme_pleiades.txtãåç
§)
Javaããã¸ã§ã¯ããä½æãã
ãã¡ã¤ã«âæ°è¦âJavaããã¸ã§ã¯ãâããã¸ã§ã¯ãåãå
¥å "hello java"
ãã¡ã¤ã«âæ°è¦âã¯ã©ã¹ã§ã¯ã©ã¹åãå
¥å "Sample"
public class Sample { public static void main (String[] args) { System.out.println("Hello World!"); } }
C++éçºç°å¢
CDTã®ã¤ã³ã¹ãã¼ã«
ãã«ãâæ°è¦ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«âä½æ¥å¯¾è±¡ã«
Indigo - http://download.eclipse.org/releases/indigo ãè¨å®ããã
ããã°ã©ãã³ã°è¨èªâC++DevelopmentToolsãé¸æãã©ã¤ã»ã³ã¹ã«åæããå ´åã¯ã¤ã³ã¹ãã¼ã«ã
ã¤ã³ã¹ãã¼ã«ãå®äºå¾ãä¸æ¦eclipseãåèµ·åããã
C++ããã¸ã§ã¯ããä½æãã
ã¦ã¤ã³ãã¦âãã¼ã¹ãã¯ãã£ããéãâãã®ä»âC/C++
ãã¡ã¤ã«âæ°è¦âC++ããã¸ã§ã¯ãâããã¸ã§ã¯ãåãå
¥åãã "hello_cpp"
å®è¡å¯è½â空ã®ããã¸ã§ã¯ãâå®äº
ãã¡ã¤ã«âæ°è¦âã½ã¼ã¹ãã¡ã¤ã«âmain.cppãä½æ
#include <iostream> int main(){ std::cout << "hello" << std::endl; return 0; }
ããã¸ã§ã¯ãâããã¸ã§ã¯ãããã«ããå®è¡âå®è¡
ãã®ä»ã³ã³ãã¤ã©ããªã³ã«ã®è¨å®ã¯ãããã¸ã§ã¯ããé¸æâãã¡ã¤ã«âããããã£âC/C++ãã«ãâãã¼ã«ãã§ã¤ã³ã»è¨å®ã§è¨å®ããã
pythonéçºç°å¢
pydevãã¤ã³ã¹ãã¼ã«ãã
ãã«ãâæ°è¦ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«â追å ã§ä»¥ä¸ã®ãµã¤ããç»é²ãã
åå:"pydev" (é©å½ãªå称) ãã±ã¼ã·ã§ã³:http://pydev.org/updates
PyDevãé¸æâ"次ã¸"âã©ã¤ã»ã³ã¹æ¡é
ã«åæããå ´åã¯ã"å®äº"ãæ¼ãã
証ææ¸ãä¿¡é ¼ãã¾ããï¼ã¨èãããå ´åã¯å°ãä»ãã¦"OK"âã¤ã³ã¹ãã¼ã«å®äºå¾ãåèµ·åã
ã¤ã³ã¿ã¼ããªã¿ã¨ã©ã¤ãã©ãªã¸ã®ãã¹è¨å®
Eclipseâç°å¢è¨å®âpydevâã¤ã³ã¿ã¼ããªã¿pythonâAutoConfig
ã¤ã³ã¿ã¼ããªã¿ã®ãã¹ï¼â/usr/bin/pythonâãèªåçã«æ¤ç´¢ãããã
ã©ã¤ãã©ãªã®ãã¹ï¼ä¸è¦§ãã対象ã¨ãªããã£ã¬ã¯ããªãé¸æãã¦"OK"
èªåæ¤ç´¢ããããã¹ã®ä¸è¦§ã追å ãããã®ã§"OK"ãæ¼ãã¨èªåçã«ãã¹ãè¨å®ãã¦ãããã
ã©ã¤ãã©ãªã¸ã®ãã¹ã¯äºããã§ãã¯ããã¦ãããã¹ä¸è¦§ã«å ãã¦ãsite-packagesã追å ãã¦ããã°ååã ã¨æãã¾ãã
ãã¾ãè¨å®ã§ããªãã£ãå ´åã¯æåã§è¿½å ããã°ããã§ãããã
pydevããã¸ã§ã¯ããä½æãã
ãã¡ã¤ã«âæ°è¦âPyDevããã¸ã§ã¯ãâããã¸ã§ã¯ãåãå
¥åãã "hello_python"
"create 'src' folder and add it to the PYTHONPATH"ãé¸æâ"å®äº"
ãã¡ã¤ã«âæ°è¦âããã±ã¼ã¸âé©å½ãªååãä»ãã"root"
ãã¡ã¤ã«âæ°è¦âpythonã¢ã¸ã¥ã¼ã«âååâé©å½ãªååãä»ãã "main"
ãã³ãã¬ã¼ãâã¢ã¸ã¥ã¼ã«:ã¡ã¤ã³â"å®äº"
ã½ã¼ã¹ãã¡ã¤ã«ãçæãããã®ã§ã³ã¼ããè¨è¿°ããã
if __name__ == '__main__': print "hello"
å®è¡âå®è¡â2 pythonå®è¡