Building Wind River* Linux* Applications from Workbench IDE
- Enabling ICC to build your application project.
- Modifying the ICC compiler and linker flags, if needed.
- Building with ICC.
Enabling Intel® C++ Compiler to Build Application Projects
- LaunchWind River* Workbench.
- SelectFile > New > Example > WR Linux Application Sample Project.TheNew Project Sampledialog opens.
- In theNew Project Sampledialog, underAvailable Examples, selectThe Hello World Demonstration Program, and clickFinishto close the dialog. A new application project is created.
- To set the ICC build specs, go toProject > Properties > Build Properties.TheBuild Propertiesdialog opens.
- SelectBuild Support and Specstab.
- Notice the list of build specs underAvailable and enabled build specs.Against theActive build specfield, select a build spec that has the-iccextension in its name. For example,intel-x86-64-glibc_std-x86-64-wrl6_x86_64_prj-icc, as shown in the screen shot below.ICC is now enabled to build your application project.
Modifying Build/Linker Flags
- SelectProject > Properties.TheProject Propertiesdialog opens.
- SelectBuild Properties > Tools tab.
- Against theBuild toolfield, selectC++ - Compilerfrom theBuild tooldrop-down menu. The build and linker flags are populated into theTool flagstext field.
- Check the flags and modify as needed.You have now modified the build and linker flags as required for building the application.
Building Sample Application Project Using ICC in Workbench
- Right-click theThe Hello World Demonstration Projectfolder in theProject Explorerand selectBuild Project.
- ClickContinueif asked if you want Workbench to generate include paths.