Changes between Version 21 and Version 22 of Developer/Eclipse/Plugin
- Timestamp:
- 11/22/14 05:25:42 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developer/Eclipse/Plugin
v21 v22 7 7 = Introduction = 8 8 9 This page describes how to setup and use the RTEMS Eclipse Plug-in. This plug-in extends [http://www.eclipse.org/cdt CDT] and all features of a full-fledged Eclipse/CDT IDE with an ordinary GNU toolchain are available. The GDB based debug support works also. Supported platforms are: Cygwin, MinGW, MacOS X and UNIX. Every RTEMS target architecture and BSP that provides the standard Makefiles is supported. These are at least the ones managed by the RTEMS repository from OAR. 9 This page describes how to setup and use the RTEMS Eclipse Plug-in. This plug-in extends [http://www.eclipse.org/cdt CDT] and all features of a full-fledged !Eclipse/CDT IDE with an ordinary GNU toolchain are available. The GDB based debug support works also. Supported platforms are: Cygwin, MinGW, MacOS X and UNIX. Every RTEMS target architecture and BSP that provides the standard Makefiles is supported. These are at least the ones managed by the RTEMS repository from OAR. 10 10 11 = Starting Point = 11 12 12 13 You should be able to build a simple ''Hello, World!'' application for your BSP with the standard Makefiles. 14 13 15 = Eclipse Installation = 14 16 … … 16 18 17 19 If on Fedora, then you will want to load the eclipse-cdt RPM. 20 18 21 = Plug-In Installation = 19 22 20 23 You can install the plug-in via the standard Eclipse infrastucture. Simply add http://www.rtems.org/ftp/pub/rtems/eclipse/updates/ to the software update sites ('''Help > Install New Software...'''). 21 24 22 <center>[[Image(repi-install.jpg)]]</center> 25 [[Image(repi-install.jpg)]] 26 23 27 = Plug-In Setup = 24 28 25 29 After the plug-in installation you should setup the preferences ('''Window > Preferences'''). 26 30 27 <center>[[Image(repi-setup.jpg)]]</center> 31 [[Image(repi-setup.jpg)]] 28 32 29 33 Base path: is the path to the RTEMS installed toolchain 30 34 31 35 BSP path: is the path to the RTEMS installed BSP Makefile.inc 32 #Ensure that RTEMS was installed33 #Go to the PREFIX directory (the standard was /opt/rtems-4.11 new standard will be /home/user/development/rtems/4.11)36 1. Ensure that RTEMS was installed 37 1. Go to the PREFIX directory (the standard was /opt/rtems-4.11 new standard will be /home/user/development/rtems/4.11) 34 38 Find the Makefile.inc 35 39 '''/home/user/development/rtems/4.11$''' find -name Makefile.inc … … 39 43 40 44 Navigate to the '''/home/user/development/rtems/4.11/sparc-rtems4.11/sis''' when selecting a BSP path 45 41 46 = Project Creation = 42 47 43 48 Switch to the ''C/C++ Perpective'' ('''Window > Open Perspective > Other > C/C++ Perpective'''). You can now create a new ''C Project'' or ''C++ Project'' ('''File > New > C Project''' or '''File > New > C++ Project''') and follow the wizard. You can create projects for RTEMS executables and static libraries. A ''Hello, World!'' template is also available. 44 49 45 <center>[[Image(repi-project.jpg)]]</center> 50 [[Image(repi-project.jpg)]] 51 46 52 = Project Properties = 47 53 48 54 You can change the RTEMS specific project properties like RTEMS base installation path and board support package path via the standard properties dialog ('''Project > Properties''') and with the project wizard. 49 55 50 <center>[[Image(org-rtems-cdt-props.jpg)]]</center> 56 [[Image(org-rtems-cdt-props.jpg)]] 57 51 58 = Trouble Shooting = 52 59 … … 56 63 Consult the problems view ('''Window > Show View > Problems'''), if something works not like expected. Errors like below indicate that the paths in the RTEMS preferences and properties are not correct. 57 64 58 <center>[[Image(org-rtems-cdt-problem-0.jpg)]]</center> 59 <center>[[Image(org-rtems-cdt-problem-1.jpg)]]</center> 65 [[Image(org-rtems-cdt-problem-0.jpg)]] 66 [[Image(org-rtems-cdt-problem-1.jpg)]] 67 60 68 = Cross-references not Working = 61 69