Keil 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.

Last Reviewed: Friday, January 8, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  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.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.