NI Vision Eclipse Development Tools

Creating a C/C++ Project

  • 更新时间2023-02-21
  • 阅读时长2分钟
  1. Switch to the C/C++ perspective.
  2. Select File»New»Project to open the New Project Wizard.
  3. Expand the C/C++ folder and select C Project or C++ Project depending on the programming language you wish to use.
  4. Click Next to open the C Project page.
  5. Enter a project name in the Project name text box.
  6. Select a project type under the Executable folder in the Project type listbox.
  7. Select Cross GCC in the Toolchains listbox to enable cross-compilation, which configures the compiler to create executable code for embedded systems, such as an NI Linux Real-Time target.
  8. Click Next to open the Select Configurations page.
  9. Enable the Debug and Release checkboxes.
  10. Click Next to open the Cross GCC Command page.
  11. In the Cross compiler prefix text box, enter one of the values from the following list, including the hyphen (-) at the end, to specify the correct compiler for the NI Linux Real-Time target:
    • Linux ARM-based targets

      (2013 software stack) arm-none-linux-gnueabi-

      (2014 software stack) arm-nilrt-linux-gnueabi-

    • Linux x64-based targets

      (2014 software stack) x86_64-nilrt-linux-

  12. In the Cross compiler path text box, browse to the location of the correct compiler for your target as specified in the following list:
    Linux-Arm
    • Linux ARM-based targets

      (2013 software stack) <National Instruments>\Eclipse\toolchain\gcc-4.4-arm\i386\bin

      (2014 software stack) <National Instruments>\Eclipse\14.0\arm\sysroots\i686-nilrtsdk-mingw32\usr\bin\armv7a-vfp-neon-nilrt-linux-gnueabi

    • Linux x64-based targets

      (2014 software stack) <National Instruments>\Eclipse\14.0\x64\sysroots\i686-nilrtsdk-mingw32\usr\bin\x86_64-nilrt-linux

  13. Click Finish to create your project and return to the workbench view.

After creating a project, you can begin updating a C/C++ project build.