| 1 | = IDE Installation and Configuration - Ubuntu = |
| 2 | |
| 3 | = __Eclipse__ = |
| 4 | The following installation instructions are for Eclipse CDT (C/C++ Development Tooling).[[BR]] |
| 5 | |
| 6 | Eclipse CDT allows for syntax highlighting, auto-completion, visual debugging, easy source navigation as well as other useful tools.[[BR]] |
| 7 | |
| 8 | Eclipse CDT can either be added to an existing Eclipse installation or installed from source. This tutorial will focus on the latter. |
| 9 | |
| 10 | '''__Download and Install Eclipse CDT Indigo for Developers:__'''[[BR]] |
| 11 | ''Be sure to choose the correct version (32 or 64 bit from the right menu)''[[BR]] |
| 12 | [http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr1][[BR]] |
| 13 | |
| 14 | Move the tarball to the installation directory of your choice for installation. |
| 15 | {{{ |
| 16 | tar -zxvf yourfile.tar.gz |
| 17 | rm -rf yourfile.tar.gz |
| 18 | }}} |
| 19 | You should now be able to run eclipse. |
| 20 | {{{ |
| 21 | cd eclipse |
| 22 | ./eclipse |
| 23 | }}} |
| 24 | In order to start eclipse from the command line, your directory of choice must be in the unix PATH environment variable. |
| 25 | {{{ |
| 26 | echo $PATH |
| 27 | #If the path is not present you can add it permanently with the following command. |
| 28 | echo 'export PATH="$PATH:/path_to/directory_of_choice/eclipse"' >> ~/.bashrc && . ~/.bashrc |
| 29 | #You should now be able to start eclipse from the command line |
| 30 | eclipse |
| 31 | }}} |
| 32 | |
| 33 | |
| 34 | '''__Creating Eclipse project files:__'''[[BR]] |
| 35 | In the directory of the project file that you would like to export simply: |
| 36 | {{{ |
| 37 | cmake . -G"Eclipse CDT4 - Unix Makefiles" |
| 38 | }}} |
| 39 | |
| 40 | '''__Importing generated Eclipse project files:__'''[[BR]] |
| 41 | In Eclipse: [[BR]] |
| 42 | ''File --> Import --> General --> Existing Projects into Workspace --> Next --> Browse''[[BR]] |
| 43 | Browse to your package's root directory and hit OK [[BR]] |
| 44 | Finish the import by selecting the finish button.[[BR]] |
| 45 | |
| 46 | Your project should now be imported into Eclipse and can be viewed in the Project Explorer on the left side of the IDE. |
| 47 | |
| 48 | '''__Other useful tools and plugins__'''[[BR]] |
| 49 | |
| 50 | ''' Barrett Technology Auto Formatting ''' [[BR]] |
| 51 | |
| 52 | Download the BTech Automatic Formatting Template |
| 53 | {{{ |
| 54 | #Navigate to a directory of choice |
| 55 | wget http://web.barrett.com/svn/libbarrett/trunk/BTech_Format.xml |
| 56 | }}} |
| 57 | In Eclipse:[[BR]] |
| 58 | ''Window-->Preferences-->C/C++-->Code Style-->Import'' |
| 59 | Browse to your BTech_Format.xml and hit OK [[BR]] |
| 60 | Hit apply and OK.[[BR]] |
| 61 | |
| 62 | Your Eclipse projects should now follow the Barrett Technology conventions. |
| 63 | |
| 64 | To apply the formatting to an existing file:[[BR]] |
| 65 | ''Open file --> Source --> Format'' |
| 66 | |
| 67 | '''Adding Python IDE for Eclipse - PyDev'''[[BR]] |
| 68 | |
| 69 | PyDev is a great IDE for Python development. |
| 70 | |
| 71 | PyDev also has much of the advantages of CDT; auto-completion, synatax highlighting, auto formatting, etc. |
| 72 | |
| 73 | ''Note: the following instructions are for Eclipse Indigo'' |
| 74 | ''Help --> Eclipse Marketplace''[[BR]] |
| 75 | Search for: PyDev or python. The first result will be PyDev.[[BR]] |
| 76 | Install PyDev. This may require restarting Eclipse. |
| 77 | |
| 78 | You should now have all of the aforementioned python tools. |
| 79 | |
| 80 | '''Installing Eclipse Color Themes'''[[BR]] |
| 81 | |
| 82 | Eclipse color theme plugin allows for automatic color formatting of the IDE. |
| 83 | |
| 84 | ''Note: the following instructions are for Eclipse Indigo'' |
| 85 | ''Help --> Eclipse Marketplace''[[BR]] |
| 86 | Search for: eclipse color theme. |
| 87 | Install Eclipse Color Theme by Felix Dahlke and Roger Dudler. |
| 88 | |
| 89 | After installation you can apply a color theme by: |
| 90 | ''Window-->Preferences-->General-->Appereance-->Color Theme'' - choose the theme of your choice and apply. |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |