Specifications
Your command-line C/C++ application, and its associated BSP, is created on the command line. Any
Nios II SBT command-line project is ready to import into the Nios II SBT for Eclipse. No additional
preparation is necessary.
Nios II Command-Line Projects
The Nios II SBT for Eclipse imports the following kinds of Nios II command-line projects:
• Command-line C/C++ application project
• Command-line BSP project
• Command-line user library project
You can edit, build, debug, and manage the settings of an imported project exactly the same way you edit,
build, debug, and manage the settings of a project created in Nios II SBT for Eclipse.
Importing through the Import Wizard
The Nios II SBT for Eclipse imports each type of project through the Import wizard. The Import wizard
determines the kind of project you are importing, and configures it appropriately.
You can continue to develop project code in your SBT project after importing the project into Eclipse.
You can edit source files and rebuild the project, using the SBT either in Eclipse or on the command line.
Related Information
Getting Started from the Command Line on page 3-1
For more information about creating projects with the command line.
Road Map
Importing and debugging a project typically involves several of the following tasks. You do not need to
perform these tasks in this order, and you can repeat or omit some tasks, depending on your needs.
• Import a command-line C/C++ application
• Import a supporting project
• Debug a command-line C/C++ application
• Edit command-line C/C++ application code
When importing a project, the SBT for Eclipse might make some minor changes to your makefile. If the
makefile refers to a source file located outside the project directory tree, the SBT for Eclipse treats that file
as a linked resource. However, it does not add or remove any source files to or from your makefile.
When you import an application or user library project, the Nios II SBT for Eclipse allows you to choose
Eclipse source management or user source management. Unless your project has an unusual directory
structure, choose Eclipse source management, to allow the SBT for Eclipse to automatically maintain your
list of source files.
You debug and edit an imported project exactly the same way you debug and edit a project created in
Eclipse.
Import a Command-Line C/C++ Application
To import a command-line C/C++ application, perform the following steps:
NII5V2
2015.05.14
Nios II Command-Line Projects
2-23
Getting Started with the Graphical User Interface
Altera Corporation
Send Feedback