User Tools

Site Tools

한국어

comfilepi:cplusplus:index

C/C++

C/C++ (Remote Compiling)

Microsoft added limited Linux support to Visual Studio 2015. Those features also available in Visual Studio 2017 and Visual Studio 2019.

The Visual Studio Linux Features do not inherently support cross-compiling on a Windows PC. Instead, Visual Studio will upload the the source files to the ComfilePi, and use the ComfilePi's toolchain to build the executable. The executable is then executed on the ComfilePi, and the Visual Studio Remote GDB Debugger attaches to it.

  1. Install Visual Studio Linux Features - How to install the Linux Development Features in Visual Studio 2015, 2017, 2019, and 2022.
  2. Create a Linux Project - How to create a new Visual Studio Project for Linux Development

For more information about using Visual Studio for Linux software development, see thisVisual C++ For Linux Development blog post, and the Visual C++ Linux Documentation.

C++ with Qt (Cross-Compiling)

The Qt Company has released a product called Qt Visual Studio Tools to enable Qt development and cross-compiling from a Windows PC to a Linux embedded system like the ComfilePi.

See the Build and debug Qt on Linux with Qt Visual Studio Tools blog post for details

To install the latest Qt release on the ComfilePi run the following commands in a terminal:

sudo apt-get update
sudo apt-get install qt5-default qtbase5-examples qt5-doc qt5-doc-html qtbase5-doc-html

Additional Qt libraries can be installed using libqt5* package names.

comfilepi/cplusplus/index.txt · Last modified: 2021/11/09 13:49 by COMFILE Technology