Archived:Can't Build Tutorial Using Eclipse 2017 for NI Linux RT

Updated Jun 1, 2023

NI does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.

Reported In

Hardware

  • cRIO-9035
  • myRIO-1900
  • cRIO-9068

Operating System

  • LabVIEW Real-Time (NI Linux Real-Time)

Programming Language

  • C++
  • C

Other

Windows 7
Windows 10
C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition 2017

Issue Details

For New Projects, a Modernized Toolchain Is Advised Instead

This article explains how to use Eclipse C/C++ Development Tools for NI Linux Real-Time to achieve cross-compiling tasks. This toolset is not actively maintained anymore. It was last updated in 2018 and is currently not advised to be used for new projects.

Instead, NI created extensive documentation for a modernized toolchain, which is easier to learn and utilize. That documentation also provides information on typical steps, like building, deploying, and debugging a shared library. If you are planning to do C/C++ development and are searching for the right toolchain, then visit Getting Started with C/C++ Development for NI Linux Real-Time.
 

Overview of the Following Eclipse-Based Content

I'm trying to follow the instructions from the Getting Started with C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition  tutorial, but I get errors that prevent from successful build. I use steps with Intel x64-based targets and 2017 software stack notes.
Are there any additional includes need to be added?

Solution

In the Getting Started with C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition  tutorial, in step 10 for Intel x64-based targets, 2017 software stack you need to add the following includes to resolve the problem:​
  • C:\build\17.0\x64\sysroots\core2-64-nilrt-linux\usr\include\c++\4.9.2
  • C:\build\17.0\x64\sysroots\core2-64-nilrt-linux\usr\include\c++\4.9.2\x86_64-nilrt-linux
  • C:\build\17.0\x64\sysroots\core2-64-nilrt-linux\usr\include

Additional Information

If you need to build a project from the tutorial for ARM-based targets using Eclipse 2017 software stack, you should add the following includes to resolve the problem:​
  • C:\build\17.0\arm\sysroots\cortexa9-vfpv3-nilrt-linux-gnueabi\usr\include\c++\4.9.2\
  • C:\build\17.0\arm\sysroots\cortexa9-vfpv3-nilrt-linux-gnueabi\usr\include\c++\4.9.2\arm-nilrt-linux-gnueabi
  • C:\build\17.0\arm\sysroots\cortexa9-vfpv3-nilrt-linux-gnueabi\usr\include