eclipseQT

Please download to get full document.

View again

of 13
13 views
PDF
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Document Description
Eclipse – C/C++ (CDT), Python (PyDev), and Qt (Qt4) Pl... http://greeennotebook.com/2010/09/eclipse-cc-cdt-pytho... Greeen Notes Computer and programming notes, plus some of my software Eclipse – C/C++ (CDT), Python (PyDev), and Qt (Qt4) Plugins Installation Tutorial for Ubuntu 10.04 Posted on September 28, 2010 by GreeenGuru This walk-through will take you from a fresh install of Eclipse to a fully-functional IDE ready for development of Java, Python, C/C++, and Qt GUI applications. Every s
Document Share
Documents Related
Document Tags
Document Transcript
  Eclipse – C/C++ (CDT), Python (PyDev), and Qt (Qt4) Plugins Installation Tutorial for Ubuntu10.04 Posted onSeptember 28, 2010byGreeenGuru This walk-through will take you from a fresh install of Eclipse to a fully-functional IDE ready for development of Java, Python, C/C++, and Qt GUI applications. Every step is tailored to Ubuntu but might possibly be useful toWindows/Mac users as well. Enjoy!Install JavaInstall EclipseInstall the C/C++ Development Toolkit (CDT) Eclipse PluginInstall the PyDev Eclipse Plugin for Python SupportInstall The Qt Eclipse Integration Plugin First step, I By default, Ubuntu comes with the OpenJDK Runtime Environment. Honestly, I haven’t had any problems runningJava applications with OpenJDK. However, I’ve read in a couple of places that Eclipse and/or some of its pluginscannot use OpenJDK. If you want to see what JRE version you have enabled, do this: ~$  java-version Getting Sun Java in Ubuntu is easy. Just do this to get everything you need (the JRE, browser plugin, developmentkit, and fonts): ~$  sudoapt-getinstallsun-java6-jresun-java6-pluginsun-java6-jdksun-java6-fonts Update 28AP will work. Frtab, and mak  Now, while we’re at it, let’s make sure your browser actually uses this new browser plugin for Java applets insteadof the default IcedTea plugin that’s based on OpenJDK. I have had many probleplugin. ~$  sudoapt-getrem oveicedtea6-plugin Greeen Notes Computer and programming notes, plus some of my software Eclipse – C/C++ (CDT), Python (PyDev), and Qt (Qt4) Pl...http://greeennotebook.com/2010/09/eclipse-cc-cdt-pytho...1 de 1322-02-2012 08:44  To ensure your browser is using the Sun Java plugin, you can look at Tools JavaTester.orgto get a display of the version and vender from the JRE your browser is using. Anyway, back to the task at hand. Just because we have Sun Java is installed doesn’t mean Ubuntu is going to useit. If you do  java -versio that’s not necessary. We can switch which version of Java runs by default. First, though, let’s see which version of Java we just installed: ~$  /usr/lib/jvm /java-6-sun/bin/java-version javaversion 1.6.0 _ 20 Java(TM)SERuntim eEnvironm ent(build1.6.0 _ 20-b02) JavaHotSpot(TM)ServerVM(build16.3-b01,m ixedm ode)  At the time of this writing, the most recent stable version of Java is Version 6 Update 21. According to my terminaloutput above, I just installed Version 6 Update 20. One update behind isn’t too bad, so I didn’t see any reason todownload Java directly from Sun.Ok, how do we switch which version of Java runs by default? Do this: ~$  sudoupdate-java-alternatives-l This should show you the available versions of Java. Now, to switch the default to Sun Java, do this: ~$  sudoupdate-java-alternatives-sjava-6-sun java-6-openjdk1061/usr/lib/jvm /java-6-openjdk java-6-sun63/usr/lib/jvm /java-6-sun Great! Now we have a recent version of Sun Java installed and ready to use. The next step is to get Eclipse. Install Eclip Don’t download eclipse from the Ubuntu repository. If you already have, uninstall it. Instead, get the mostup-to-date version of eclipse at theEclipse download page. I chose to download Eclipse Classic 3.6.1 as opposed tothe tailored versions. From my understanding, the only differences are which plugins come with the download.Here’s how to extract the download and create a startup script for it that’s inside the system path: $  cd/opt $  sudotarxzf/hom e/greeenguru/Do w nloads/eclipse-SDK-3.6.1-linux-gtk.tar.gz $  sudotouch/usr/bin/eclipse $  sudochm od+x/usr/bin/eclipse $  sudogedit/usr/bin/eclipse Now edit the executable file you just created to contain the following BASH startup script: Eclipse – C/C++ (CDT), Python (PyDev), and Qt (Qt4) Pl...http://greeennotebook.com/2010/09/eclipse-cc-cdt-pytho...2 de 1322-02-2012 08:44  #!/ bin/sh exportECLIPSE _ HOME= /opt/eclipse # N ow runecli psew iththeargu mentlist$* $ECLIPSE _ HOME/eclipse$* Create a GNOME menu item for Eclipse: Just use the GMenu, go to y have a defauor not. ~$  sudogedit/usr/share/applications/eclipse.desktop Here’s what to enter to create the menu item correctly: [DesktopEntry] Encoding=UTF-8 Nam e=Eclipse Com m ent=Program Som eStuff GenericNam e=InteractiveDevelopm entEnvironm ent Exec=eclipse Term inal=false Type=A pplication Icon=/opt/eclipse/icon.xpm  Categories=GNOME;A pplication;Developm ent; StartupNotify=true Now go to your Applications Menu, click on Eclipse, and make sure it works. Install the C Now that you have Eclipse up and running, let’s add C/C++ support via the CDT plugin. We can do this entirely from within Eclipse. Just go to Help → Inst Eclipse – C/C++ (CDT), Python (PyDev), and Qt (Qt4) Pl...http://greeennotebook.com/2010/09/eclipse-cc-cdt-pytho...3 de 1322-02-2012 08:44  Then click on the  Add to add a software site to install from:The CDT repository is located at http://do  At first, I tried to just install all the available CDT options:But after I received an error, I went back and deselected the Remote Launch package. I’m sure I don’t need all of these options, but I don’t know which ones I do need, so I just installed all of the rest as you can s After making your choices, click  Next . You will see an Ins selected to install (assuming you didn’t get an error). Just click  Next . Finally, yo window. Just agree to the license agreement and your installation will begin: Eclipse – C/C++ (CDT), Python (PyDev), and Qt (Qt4) Pl...http://greeennotebook.com/2010/09/eclipse-cc-cdt-pytho...4 de 1322-02-2012 08:44
Similar documents
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks