Keil Logo Arm Logo

DS-5: CREATING NEW C/C++ ECLIPSE PROJECTS FOR ARM LINUX TARGETS


Information in this knowledgebase article applies to:

  • ARM Development Studio 5

QUESTION

How do I create a new C/C++ Eclipse project for ARM Linux targets?

ANSWER

Using DS-5 you can create C/C++ Eclipse projects for ARM Linux that can be built using the ARM Linux GCC toolchain included with DS-5.

To do this:

  1. Select File -> New -> Project... from the main menu.
  2. Expand the C/C++ group.
  3. Select either C Project or C++ Project.
  4. Click on Next.
  5. Enter a name for your project.
  6. Leave the Use default location option selected so that the project is created in the default folder shown. Alternatively, deselect this option and browse to your preferred project folder.
  7. Expand the Makefile project group.
  8. Select Empty project in the Project type panel.
  9. Click on Finish to create your new project.
  10. Before you can build the project, a Makefile, containing all the compilation tool settings, is required. The easiest way to create one is to copy the Makefile from the example project, hello and paste it into your new project.
  11. Edit the Makefile as follows:
    1. Locate the line that contains OBJS = hello.o.
    2. Replace the hello.o object file with the names of the object files corresponding to your source files.
    3. Save the file.
  12. You can now build the new project:
    1. In the Project Explorer view, select the project that you want to build.
    2. Select Project -> Build Project from the main menu.

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Saturday, June 26, 2010


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.