当前位置:网站首页>Build msys2 environment with win10
Build msys2 environment with win10
2022-07-29 05:41:00 【cloud_ yq】
msys yes Windows Lower simulation linux The latest system running , It can be achieved by linux bash Command line window for code compilation .
1、 Installation package address
Go to the official website to download MSYS2 Installation package MSYS2 ( Assumed installed to D:\msys64)

After installation , stay D:\msys64 A directory similar to linux The directory structure under ( Similar mount )
2、 Basic use
1) modify msys2_shell.cmd file ( In order to use visual studio Of c compiler )
take rem set MSYS2_PATH_TYPE=inherit
Change to set MSYS2_PATH_TYPE=inherit
2) start-up mingw64 Instructions
open x64 Native Tools Command Prompt for VS 2019
Input msys2_shell.cmd -mingw64

here , An error may be reported when executing an instruction (msys2_shell.cmd Not inside 、 External instructions ), because D:\msys64( Everyone is different ) Not added to the environment variable .
Add environment variable method : My computer Right click -》 attribute -》 Advanced system setup -》 environment variable -》 System variables -》path Add the path you want to add .
3、 Use msys2 Error reporting record of
1)、 Open it directly mingw64 perform ./configure Will report a mistake :
configure: error: no acceptable C compiler found in $PATH
Can't find c compiler , Inheritance set in this article visual studio The compiler , So using 2-2) The middle step can solve this problem .
2)、 In the use of 2-2) Step execution ./configure Command error :
configure: error: no acceptable ld found in $PATH
Use pacman -S mingw-w64-x86_64-toolchain Add the corresponding compilation tool .
4、 Reference resources
WINDOWS compile FFMPEG4.3 build VS2019 development environment - front end - Tools (liboliu.com)
windows10 compile ffmpeg belt ffplay_ScottAci The blog of -CSDN Blog _ffplay windows compile
边栏推荐
- [C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
- Integer overflow and printing
- Solve the problem that the prompt information of form verification does not disappear and the assignment does not take effect
- 【TypeScript】深入学习TypeScript函数
- shell基本操作(上)
- uniapp组件之选择选项(如套餐选择)
- Dynamic sorting of DOM object element blocks in applets
- OpenAtom OpenHarmony分论坛圆满举办,生态与产业发展迈向新征程
- Selenium实战案例之爬取js加密数据
- Summary of knowledge points related to forms and forms
猜你喜欢
![[C language series] - print prime numbers between 100 and 200](/img/61/5b9dea72e7a3fd450a87fe35fb94eb.png)
[C language series] - print prime numbers between 100 and 200

shell基本操作(上)

Clickhouse learning (IX) Clickhouse integrating MySQL

表格与表单相关知识点总结

Summary of knowledge points related to forms and forms

MySQL解压版windows安装

Hcia-r & s self use notes (24) ACL
![[typescript] type reduction (including type protection) and type predicate in typescript](/img/74/52fe769ed3850e01d97cb9fefb7373.png)
[typescript] type reduction (including type protection) and type predicate in typescript

B - identify floating point constant problems

虚拟增强与现实第二篇 (我是一只火鸟)
随机推荐
微信小程序更改属性值-setData-双向绑定-model
相对定位和绝对定位
Redirection and files
Clickhouse learning (VII) table query optimization
Do students in the science class really understand the future career planning?
Common shortcut keys for Ad
[C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
On Paradigm
用sql-client.sh生成的job在cancle过后 如何实现断点续传?
Cmu15-213 shell lab experiment record
[JS question solution] questions 1-10 in JS of niuke.com
[C language series] - print prime numbers between 100 and 200
组件传参与生命周期
Using POI TL to insert multiple pictures and the same data of multiple rows of cells into the table cells of word template at one time, it is a functional component for automatic merging
WIN10 编译ffmpeg(包含ffplay)
Detailed explanation of GPIO input and output
href与src的区别
Dynamic sorting of DOM object element blocks in applets
弹性盒子flex
JS simple code determines whether the device that opens the page is the PC end of the computer, the H5 end of the mobile phone, or the wechat end