Import an ISS Eclipse Project into Eclipse for C/C++ Developers
NOTE:This import into Eclipse is only supported on Linux development systems. The oneAPI Eclipse plugins are only supported on Linux.
Readying your makefile project for Eclipse CDT
IMPORTANT:Perform the project cleaning steps below before importing your ISS project into your copy of the Eclipse IDE for C/C++ Developers (aka Eclipse CDT).
- Copy your exported ISS project into your Eclipse CDT workspace folder.
- Remove the.settingsfolder from within your copied ISS export project.
- Remove the.projectand.cprojectfolders from your copied ISS export project.
- Import your clean copy of the ISS export project into your Eclipse CDT.
$ cd path/to/exported-iss-project-folder $ cp -a ../exported-iss-project-folder path/to/eclipse-cdt/workspace/ $ cd path/to/eclipse-cdt/workspace $ rm -rf .cproject .project .settings/
Importing your makefile project into Eclipse CDT
- UseFile > Import…to start importing the exported ISS project.
- SelectExisting Code as Makefile Projectin the C/C++ section of the Import dialog.
- Browsefor the location of your clean exported ISS project folder.
- Select the appropriateToolchain for Indexer Settingsoption.
- InProject > Propertiesdefine your build configurations (Debug, Release, etc.).
NOTE:Before you import your makefile project into your copy of Eclipse CDT you may want to install the Intel oneAPI Eclipse plugins. If you are not sure if that has already been done, there is no harm in doing it again.Use theinstall-eclipse-plugins.shscript located in thedev-utilitiescomponent folder to install the Intel oneAPI Eclipse plugins into the Eclipse CDT where you will be importing your makefile project. That script can be found in this folder:<oneapi-install-dir>/dev-utilities/latest/bin.
To confirm that you have a copy of theEclipse IDE for C/C++ Developers, followHelp > About Eclipse IDEin the Eclipse menu and check the content of the “help about” dialog box. It will clearly say “Eclipse IDE for C/C++ Developers” at the top of the dialog. The Intel System Studio copy of Eclipse will clearly say “Intel® System Studio YYYY Update #” (where YYYY and # indicate the specific ISS release and update).
NOTE:Yourmakefiledetermines the compiler and compiler options that will be used to build your application. The toolchain selection is used by the Eclipse indexer (aka IntelliSense) feature. If you are not sure which toolchain to select, use theLinux GCCtoolchain. You can always change it later in the project C/C++ properties dialog.
Configuring your imported Eclipse CDT makefile project
NOTE:Do not delete the currently active configuration, it will cause Eclipse to crash and your project configuration work will not be saved.
- Double-click the top-level makefile in a build configuration folder (Project Explorer).
- Right-click the name of a make target from theOutlineview that appears on the right.
- ChooseAdd Build Targetfrom the make target’s right-click menu.
- Click theOKbutton in theCreate Build Targetdialog (accept the defaults).
- Look for a newBuild Targetsvirtual folder in theProject Explorer.
- Double-click a target in theBuild Targetsto direct Eclipse to run themaketarget.
- Watch theCDT Build Consolefor themake <target>command and results.
Deploying and debugging on a remote Linux machine in Eclipse CDT
- TheConnectionsview in Eclipse may be located in the bottom console view area of Eclipse.
- If you cannot locate the EclipseConnectionsview use theWindow > Show View > Other…menu and find theConnectionsview inside theConnectionssection of theShow Viewdialog that appears.
NOTE:If your connection icon shows a small red “x”, after you have created theConnectionper the article above, try right-clicking the connection icon and choosingOpen Command Shellto force a connection to the remote system. You should be prompted with an “authentication” question. Answer “yes” to accept the authentication and you should then be presented with a command prompt on the remote system.
- If you cannot find theRun Configurationdialog, use theRun > Run Configurationsmenu.
- If you see a message at the bottom of theRun Configurationsdialog indicating you have multiple launchers, follow the link and choose theLegacy Remote Create Process Launcheroption.