当前位置:网站首页>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
边栏推荐
- js简单代码判断打开页面的设备是电脑PC端或手机H5端或微信端
- [C language series] - print prime numbers between 100 and 200
- ClickHouse学习(十)监控运行指标
- 【JS题解】牛客网JS篇1-10题
- Set the background color of a cell in the table
- MySQL解压版windows安装
- [typescript] learn typescript object types in depth
- [C language series] - string + partial escape character explanation + annotation tips
- Basic concepts of MySQL + database system structure + extended application + basic command learning
- 组件传参与生命周期
猜你喜欢
Clickhouse learning (XI) clickhouseapi operation
HCIA-R&S自用笔记(26)PPP
ClickHouse学习(九)clickhouse整合mysql
365 day challenge leetcode 1000 questions - day 035 one question per day + two point search 13
eggjs 创建应用知识点
uniapp组件之tab选项卡滑动切换
[typescript] learn typescript object types in depth
Niuke network programming problem - [wy22 Fibonacci series] and [replace spaces] detailed explanation
Clickhouse learning (VIII) materialized view
Introduction to C language array to proficiency (array elaboration)
随机推荐
href与src的区别
ClickHouse学习(三)表引擎
Playwright实战案例之爬取js加密数据
用threejs 技术做游戏跑酷
Global components component registration
Li Kou 994: rotten orange (BFS)
Niuke network programming problem - [wy22 Fibonacci series] and [replace spaces] detailed explanation
Relative positioning and absolute positioning
Similarities and differences between REM and PX and EM
Detailed installation and use tutorial of MySQL (nanny installation with pictures and texts)
弹性盒子相关知识
Detailed explanation of typical application code of C language array - master enters by mistake (step-by-step code explanation)
nmap是什么以及使用教程
Dynamic sorting of DOM object element blocks in applets
Installation steps and environment configuration of vs Code
Sqlmap是什么以及使用方法
Fvuln-自动化web漏洞检测工具
Clickhouse learning (V) cluster operation
H5语义化标签
解决表单校验提示信息不消失问题以及赋值不生效问题