Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

2.7.4. Import a Command-Line C/C++ Application

To import a command-line C/C++ application, perform the following steps:
  1. Start the Nios II SBT for Eclipse.
  2. On the File menu, click Import. The Import dialog box appears.
  3. Expand the Nios II Software Build Tools Project folder, and select Import Nios II Software Build Tools Project.
  4. Click Next. The File Import wizard appears.
  5. Click Browse and locate the directory containing the C/C++ application project to import.
  6. Click OK. The wizard fills in the project path.
  7. Specify the project name in the Project name box.
    Note: You might see a warning saying "There is already a .project file at: <path>". This warning indicates that the directory already contains an Eclipse project. Either it is an Eclipse project, or it is a command-line project that is already imported into Eclipse. If the project is already in your workspace, do not re-import it.
  8. Click Finish. The wizard imports the application project.

    After you complete these steps, the Nios II SBT for Eclipse can build, debug, and run the complete program, including the BSP and any libraries. The Nios II SBT for Eclipse builds the project using the SBT makefiles in your imported C/C++ application project. Eclipse displays and steps through application source code exactly as if the project were created in the Nios II SBT for Eclipse. However, Eclipse does not have direct information about where BSP or user library code resides. If you need to view, debug or step through BSP or user library source code, you need to import the BSP or user library.