当前位置:网站首页>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
边栏推荐
- Day 1
- Relationship between redrawing and reflow
- Seay源代码审计系统
- [C language series] - detailed explanation of file operation (Part 1)
- [C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
- 用threejs 技术做游戏跑酷
- Detailed explanation of typical application code of C language array - master enters by mistake (step-by-step code explanation)
- 虚拟增强与现实第二篇 (我是一只火鸟)
- Storage category
- Talking about Servlet
猜你喜欢
随机推荐
Character type conversion
Wechat applet - screen height
Relationship between redrawing and reflow
Related knowledge of elastic box
Clickhouse learning (IV) SQL operation
Relative positioning and absolute positioning
[C language series] - three methods to simulate the implementation of strlen library functions
Basic use of redis
个人学习笔记
uniapp组件之选择选项(如套餐选择)
[typescript] in depth study of typescript functions
Abstract classes and interfaces
Cmu15-213 shell lab experiment record
MySQL解压版windows安装
Pyqt5: Chapter 1, Section 1: creating a user interface using QT components - Introduction
【JS题解】牛客网JS篇1-10题
Integer overflow and printing
ClickHouse学习(七)表查询优化
HCIA-R&S自用笔记(27)综合实验
组件传参与生命周期





![[C language series] - detailed explanation of file operation (Part 1)](/img/12/2d47fde0385d3f1dcb31f5efa82f7b.png)


