当前位置:网站首页>[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)
[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)
2022-07-02 10:42:00 【Programmer community】
List of articles
- download
- install CMakeList Related components
- Login account
- Create a running project
- Error handling
download
Download process :
① Enter the official website of Microsoft :https://www.microsoft.com/zh-cn/
② choice Visual Studio Options : It's in the top right corner “ all Microsoft” In the drop-down menu of , choice “Visual Studio” ;
③ Select community version download : In the pop-up screen , choice “Visual Studio IDE” , And then I'm gonna go ahead and download “Community 2019” , This version is a free community version ;
④ After downloading, you can run it directly :
install CMakeList Related components
① The workload in choice “ Use C++ Of Linux Development ” , Check... On the right “ Apply to Linux Of C++ CMake Tools ” ;
② Install individual components : Windows 10 SDK ( 10.0.18362.0 ) , Install the latest Win10 SDK Components ;
③ Install individual components : be used for Windows Of C++ CMake Tools ;
④ Wait for the installation to complete Restart the computer You can use :
Login account
In the pop-up login interface , Click on Sign in Button ;
Click login options :
I'm going to use it directly here GitHub To login :
Enter verification code : The verification code will be sent to the mailbox ;
Create a running project
① Create project : open Visual Studio after , Click to create a new project ;
② Select the project you want to create : Here to create CMake project , stay Android Is the use of CMake To carry out C/C++ Code built ;
③ Enter the project name , And create projects :
④ Compile the project : If installed correctly The workload and Two single components , The project can be successfully compiled through and Executable ;
Error handling
No CMAKE_C_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
CMakeList project development environment Install the following :
- 1. The workload : Need to install 1 individual The workload , Use C++ Of Linux Development ;
- 2. Individual components : Need to install 2 individual Individual components , The above error will occur if the component is missing ;
- ① Windows 10 SDK ( 10.0.18362.0 ) , Install the latest Win10 SDK Components ;
- ② be used for Windows Of C++ CMake Tools ;
- ① Windows 10 SDK ( 10.0.18362.0 ) , Install the latest Win10 SDK Components ;
边栏推荐
猜你喜欢
Kustomize使用手册
对话吴纲:我为什么笃信“大国品牌”的崛起?
Sum the two numbers to find the target value
Application of rxjs operator withlatestfrom in Spartacus UI of SAP e-commerce cloud
Basic usage of mock server
2021-10-02
Flink submitter
Edge computing accelerates live video scenes: clearer, smoother, and more real-time
Determine whether there are duplicate elements in the array
Feature (5): how to organize information
随机推荐
Understand the composition of building energy-saving system
Flink submitter
LeetCode+ 76 - 80 暴搜专题
【TS】1368- 秒懂 TypeScript 泛型工具类型!
【Lua】常见知识点汇总(包含常见面试考点)
Blender camera surround motion, animation rendering, video synthesis
MPLS experiment
618再次霸榜的秘密何在?耐克最新财报给出答案
AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
Mongodb quickly get started with some simple operations of mongodb command line
02-taildir source
【虚幻4】UMG组件的简介与使用(更新中...)
Pytest-- test report allure configuration
使用Windbg静态分析dump文件(实战经验总结)
What is the significance of the college entrance examination
测试--面试题总结
2021-09-12
【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
SQOOP 1.4.6 INSTALL
[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces