![]() On the Visual Studio main menu, choose File > Open > CMake. On Debian-based systems, you can use this command to install these dependencies: Visual Studio requires these tools on the Linux machine: C++ compilers, gdb, ssh, rsync, make, and zip. WSL isn't recommended here, because it's intended primarily for command-line operations. However, for this tutorial a graphical environment is required. You could also use the Windows Subsystem for Linux (WSL). The OS can be running on a physical machine, in a VM, or in the cloud. Visual Studio doesn't require any specific distribution of Linux. Set up a Linux machine for Cross Platform C++ Development Depending on your download speed, installation shouldn't take more than 10 minutes. First, install Visual Studio and choose the Desktop development with C++ and Linux development with C++ workloads.Set up Visual Studio for Cross Platform C++ Development ![]() build and debug the same target on Linux.build and debug an executable target on Windows.clone an open-source CMake project from GitHub.Then, switch your configuration to do the same on Linux, all from within Visual Studio. You can quickly start editing, building, and debugging your code locally on Windows. When you open a folder that contains a CMakeLists.txt file, Visual Studio configures the IntelliSense and build settings automatically. It's based on CMake, so you don't have to create or generate Visual Studio projects. This tutorial shows how to use Visual Studio for C++ cross platform development on Windows and Linux. Visual Studio C and C++ development isn't just for Windows anymore. Tutorial: Create C++ cross-platform projects in Visual Studio
0 Comments
Leave a Reply. |