![]() If you're using the folder view instead of the targets view in Solution Explorer, right-click the CMakeLists.txt file and select Add Debug Configuration. remoteMachineName: set to the IP address of the remote ARM64 machine, or its machine name.įor more information about launch.vs.json settings, see launch.vs.json schema reference.projectTarget: this value is set for you if you added the debug configuration file from the Solution Explorer targets view per the instructions above.Open it and change the following entries to enable remote debugging: This command creates a launch.vs.json file in your project. Open the project folder (in this example, CMakeProject3 Project), and then right-click the executable and select Add Debug Configuration: Then, in the Solution Explorer, double-click CMake Targets View to see the project. Next, add configuration information that tells Visual Studio where to find your remote machine, along with other configuration details.Ĭhange the Solution Explorer view to targets view by selecting the Switch Views button: (It may take a moment after saving the CMakeSettings.json file for it to appear in the list): ![]() In the configuration dropdown, select arm64-debug. For more information about the available toolset environments, see Pre-defined environments. In the Toolset dropdown, msvc_arm64 selects 32-bit host tools to cross-compile to ARM64, whereas msvc_arm64 圆4 selects 64-bit host tools to cross-compile to ARM64, which is what you'll do in this tutorial. The Toolset dropdown is set to msvc_arm64_圆4. This configuration name is a unique, friendly name that makes it easier for you to identify these settings in the Configuration dropdown. ![]() This command adds a debug configuration named arm64-Debug to your CmakeSettings.json file. In the CMakeSettings dialog that appears, select arm64-debug, and then choose Select: Select the Visual Studio Configuration dropdown and select Manage Configurations.Īdd a new configuration by selecting Add a new configuration (the green + button). To target an ARM64 Windows machine, you need to build using ARM64 build tools. Give Visual Studio a few moments to create the project and populate the Solution Explorer. Give the project a name and choose a location.From the main menu, select File > New > Project.For this tutorial, do so by following the directions in set up the remote debugger on the remote Windows machine. Start and configure the remote debugger on the remote machine.For this tutorial, install the ARM64 tools by following the instructions in Download and Install the remote tools. Install the remote tools on the remote machine.MSVC v142 - VS 2019 C++ ARM64 build tools (Latest) It's important that you choose the ARM64 build tools and not the ARM build tools (look for the 64) and that you choose the version that goes with VS 2019.Ensure that the following are selected:.Scroll down to the Compilers, build tools, and runtimes section.From the choices at the top, choose Individual components.On the Visual Studio Installer home screen, choose Modify.If you haven't installed Visual Studio yet, see Install Visual Studio For this tutorial, install the ARM64 build tools by doing these steps: To set up Visual Studio for cross-platform C++ development, install the build tools for the target architecture. debug a CMake project running on a remote ARM64 Windows machine.configure a CMake project to run on a remote ARM64 Windows machine.configure a CMake project to build for ARM64.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |