You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/get-started-linux-cmake.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,10 @@ In this tutorial, you learn how to:
24
24
25
25
* Set up a Linux machine for Cross Platform C++ Development
26
26
* Visual Studio doesn't require any specific distribution of Linux. The OS can be running on a physical machine, in a VM, or in the cloud. You could also use the Windows Subsystem for Linux (WSL). However, for this tutorial a graphical environment is required. WSL isn't recommended here, because it's intended primarily for command-line operations.
27
-
* Visual Studio requires these tools on the Linux machine: C++ compilers, gdb, ssh, rsync, and zip. On Debian-based systems, you can use this command to install these dependencies:
27
+
* Visual Studio requires these tools on the Linux machine: C++ compilers, gdb, ssh, rsync, ninja, and zip. On Debian-based systems, you can use this command to install these dependencies:
28
28
29
29
```cmd
30
-
sudo apt install -y openssh-server build-essential gdb rsync zip
30
+
sudo apt install -y openssh-server build-essential gdb rsync ninja-build zip
31
31
```
32
32
33
33
* Visual Studio requires a recent version of CMake on the Linux machine that has server mode enabled (at least 3.8). Microsoft produces a universal build of CMake that you can install on any Linux distro. We recommend you use this build to ensure that you have the latest features. You can get the CMake binaries from [the Microsoft fork of the CMake repo](https://github.com/Microsoft/CMake/releases) on GitHub. Go to that page and download the version that matches the system architecture on your Linux machine, then mark it as an executable:
Copy file name to clipboardExpand all lines: docs/linux/connect-to-your-remote-linux-computer.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -144,10 +144,10 @@ In Visual Studio 2017, you use the same steps to connect to WSL as you use for a
144
144
145
145
Visual Studio 2019 version 16.1 added native support for using C++ with the [Windows Subsystem for Linux (WSL)](/windows/wsl/about). That means you can build and debug on your local WSL installation directly. You no longer need to add a remote connection or configure SSH. You can find details on [how to install WSL](/windows/wsl/install-win10) here.
146
146
147
-
To configure your WSL installation to work with Visual Studio, you need the following tools installed: gcc or clang, gdb, make, rsync, and zip. You can install them on distros that use apt by using this command, which also installs the g++ compiler:
147
+
To configure your WSL installation to work with Visual Studio, you need the following tools installed: gcc or clang, gdb, make, ninja-build (only required for CMake projects using Visual Studio 2019 version 16.6 or later), rsync, and zip. You can install them on distros that use apt by using this command, which also installs the g++ compiler:
148
148
149
149
```bash
150
-
sudo apt install g++ gdb make rsync zip
150
+
sudo apt install g++ gdb make ninja-build rsync zip
151
151
```
152
152
153
153
For more information, see [Download, install, and set up the Linux workload](download-install-and-setup-the-linux-development-workload.md).
Copy file name to clipboardExpand all lines: docs/linux/download-install-and-setup-the-linux-development-workload.md
+10-9
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ Linux projects in Visual Studio require the following dependencies to be install
57
57
-**make**
58
58
-**openssh-server** (remote Linux systems only) - Visual Studio connects to remote Linux systems over a secure SSH connection.
59
59
-**CMake** (CMake projects only) - You can install Microsoft's [statically linked CMake binaries for Linux](https://github.com/microsoft/CMake/releases).
60
+
-**ninja-build** (CMake projects only)- [Ninja](https://ninja-build.org/) is the default generator for Linux and WSL configurations in Visual Studio 2019 version 16.6 or later.
60
61
61
62
The following commands assume you are using g++ instead of clang.
62
63
@@ -79,10 +80,10 @@ Linux projects in Visual Studio require the following dependencies to be install
79
80
80
81
## Linux setup: Ubuntu on WSL
81
82
82
-
When you are targeting WSL, there is no need to add a remote connection or configure SSH in order to build and debug. **zip** and **rsync** are required for automatic syncing of Linux headers with Visual Studio for Intellisense support. If the required applications are not already present, you can install them as follows:
83
+
When you are targeting WSL, there is no need to add a remote connection or configure SSH in order to build and debug. **zip** and **rsync** are required for automatic syncing of Linux headers with Visual Studio for Intellisense support. If the required applications are not already present, you can install them as follows. **ninja-build** is only required for CMake projects.
83
84
84
85
```bash
85
-
sudo apt-get install g++ gdb make rsync zip
86
+
sudo apt-get install g++ gdb make ninja-build rsync zip
86
87
```
87
88
88
89
::: moniker-end
@@ -91,12 +92,12 @@ sudo apt-get install g++ gdb make rsync zip
91
92
92
93
## Ubuntu on remote Linux systems
93
94
94
-
The target Linux system must have **openssh-server**, **g++**, **gdb**, and **make** installed, and the ssh daemon must be running. **zip** and **rsync** are required for automatic syncing of remote headers with your local machine for Intellisense support. If these applications are not already present, you can install them as follows:
95
+
The target Linux system must have **openssh-server**, **g++**, **gdb**, **ninja-build** (CMake projects only), and **make** installed, and the ssh daemon must be running. **zip** and **rsync** are required for automatic syncing of remote headers with your local machine for Intellisense support. If these applications are not already present, you can install them as follows:
95
96
96
97
1. At a shell prompt on your Linux computer, run:
97
98
98
99
```bash
99
-
sudo apt-get install openssh-server g++ gdb make rsync zip
100
+
sudo apt-get install openssh-server g++ gdb make ninja-build rsync zip
100
101
```
101
102
102
103
You may be prompted for your root password due to the sudo command. If so, enter it and continue. Once complete, the required services and tools are installed.
@@ -115,26 +116,26 @@ The target Linux system must have **openssh-server**, **g++**, **gdb**, and **ma
115
116
116
117
## Fedora on WSL
117
118
118
-
Fedora uses the **dnf** package installer. To download **g++**, **gdb**, **make**, **rsync** and **zip**, run:
119
+
Fedora uses the **dnf** package installer. To download **g++**, **gdb**, **make**, **rsync**, **ninja-build**, and **zip**, run:
119
120
120
121
```bash
121
-
sudo dnf install gcc-g++ gdb rsync make zip
122
+
sudo dnf install gcc-g++ gdb rsync ninja-build make zip
122
123
```
123
124
124
-
**zip** and **rsync** are required for automatic syncing of Linux headers with Visual Studio for Intellisense support.
125
+
**zip** and **rsync** are required for automatic syncing of Linux headers with Visual Studio for Intellisense support.**ninja-build** is only required for CMake projects.
125
126
126
127
::: moniker-end
127
128
128
129
::: moniker range=">=vs-2017"
129
130
130
131
## Fedora on remote Linux systems
131
132
132
-
The target machine running Fedora uses the **dnf** package installer. To download **openssh-server**, **g++**, **gdb**, **make**, **rsync**, and **zip**, and restart the ssh daemon, follow these instructions:
133
+
The target machine running Fedora uses the **dnf** package installer. To download **openssh-server**, **g++**, **gdb**, **make**, **ninja-build**, **rsync**, and **zip**, and restart the ssh daemon, follow these instructions. **ninja-build** is only required for CMake projects.
133
134
134
135
1. At a shell prompt on your Linux computer, run:
135
136
136
137
```bash
137
-
sudo dnf install openssh-server gcc-g++ gdb make rsync zip
138
+
sudo dnf install openssh-server gcc-g++ gdb ninja-build make rsync zip
138
139
```
139
140
140
141
You may be prompted for your root password due to the sudo command. If so, enter it and continue. Once complete, the required services and tools are installed.
0 commit comments