当前位置:网站首页>[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 ;
边栏推荐
- session-cookie与token
- 从MediaRecord录像中读取H264参数
- 传输优化抽象
- 记录 AttributeError: ‘NoneType‘ object has no attribute ‘nextcall‘
- What is the significance of the college entrance examination
- Message mechanism -- getting to know messages and message queues for the first time
- Flink实时计算topN热榜
- [tutorial] how to make the Helpviewer help document of VisualStudio run independently
- js promise. all
- Test -- Summary of interview questions
猜你喜欢
随机推荐
拆解美图SaaS:开着飞机换引擎
Excuse me, is it cost-effective to insure love life patron saint 2.0 increased lifelong life insurance? What are the advantages of this product?
Windows环境MySQL8忘记密码文件解决方案
【Unity3D】无法正确获取RectTransform的属性值导致计算出错
Pytest-- test report allure configuration
flume 190 INSTALL
Flink实时计算topN热榜
Post disaster reconstruction -- Floyd thought
Understand the composition of building energy-saving system
Solution of mysql8 forgetting password file in Windows Environment
Aiphacode is not a substitute for programmers, but a tool for developers
Deep understanding of redis cache avalanche / cache breakdown / cache penetration
对话吴纲:我为什么笃信“大国品牌”的崛起?
12. Process synchronization and semaphore
《MySQL 8 DBA基础教程》简介
Kustomize使用手册
【Unity3D】嵌套使用Layout Group制作拥有动态子物体高度的Scroll View
AI技术产业热点分析
【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
LeetCode+ 76 - 80 暴搜专题









![[SUCTF2018]followme](/img/63/9104f9c8bd24937b0fc65053efec96.png)