当前位置:网站首页>Win10 搭建MSYS2环境
Win10 搭建MSYS2环境
2022-07-29 05:18:00 【cloud_yq】
msys是Windows下模拟linux运行的最新系统, 可以通过类似于linux bash的命令行窗口进行代码编译。
1、安装包地址
前往官网下载MSYS2安装包 MSYS2 (假设安装至 D:\msys64)

安装完成后,在 D:\msys64目录下会创建类似linux下的目录结构(类似挂载)
2、基本使用
1)修改msys2_shell.cmd文件 (为了使用visual studio的c编译器)
将 rem set MSYS2_PATH_TYPE=inherit
改成 set MSYS2_PATH_TYPE=inherit
2) 启动mingw64指令
打开x64 Native Tools Command Prompt for VS 2019
输入 msys2_shell.cmd -mingw64

此时,执行指令可能会报错(msys2_shell.cmd 不是内部、外部指令),由于 D:\msys64(每个人不同) 没有加入到环境变量。
添加环境变量方法: 我的电脑 右键-》属性-》高级系统设置-》环境变量-》系统变量-》path添加想加的路径。
3、使用msys2的报错记录
1)、直接打开mingw64 执行./configure 会报错:
configure: error: no acceptable C compiler found in $PATH
找不到c编译器,在本文中设置的继承visual studio的编译器,所以采用2-2)中步骤可解决这个问题。
2)、在使用2-2)步骤执行./configure指令报错:
configure: error: no acceptable ld found in $PATH
使用 pacman -S mingw-w64-x86_64-toolchain 指令添加相应编译工具。
4、参考
FFmpeg:编译(Windows)_满嘴跑火车的小土匪的博客-CSDN博客_ffmpeg windows编译
WINDOWS编译FFMPEG4.3 搭建VS2019开发环境 - 前端 - 工具 (liboliu.com)
windows10编译ffmpeg带ffplay_ScottAci的博客-CSDN博客_ffplay windows 编译
边栏推荐
- 365 day challenge leetcode1000 question - day 036 binary tree pruning + subarray and sorted interval sum + delete the shortest subarray to order the remaining arrays
- With cloud simulation platform, Shichuang technology supports the upgrading of "China smart manufacturing"
- Day 5
- Relationship between redrawing and reflow
- 移动端-flex项目属性
- 使用微信小程序扫码登录系统PC端web的功能
- 微信小程序-组件传参,状态管理
- Detailed explanation of typical application code of C language array - master enters by mistake (step-by-step code explanation)
- Detailed explanation of GPIO input and output
- Day 3
猜你喜欢

公众号不支持markdown格式文件编写怎么办?
![[C language series] - three methods to simulate the implementation of strlen library functions](/img/b2/00cd2b79adc23813088656ec3bc17e.png)
[C language series] - three methods to simulate the implementation of strlen library functions
![[C language series] - realize the exchange of two numbers without creating the third variable](/img/7c/468000bcbf740c9dd3535f2734728a.png)
[C language series] - realize the exchange of two numbers without creating the third variable

VIM editor use

Clickhouse learning (XI) clickhouseapi operation

【JS题解】牛客网JS篇1-10题

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

无重复字符的最长字串

PyQt5:第一章第1节:使用Qt组件创建一个用户界面-介绍

365 day challenge leetcode1000 question - day 036 binary tree pruning + subarray and sorted interval sum + delete the shortest subarray to order the remaining arrays
随机推荐
弹性盒子flex
[C language series] - detailed explanation of file operation (Part 1)
One dimensional array exercise
Alibaba cloud and Dingjie software released the cloud digital factory solution to realize the localized deployment of cloud MES system
移动端-flex项目属性
[typescript] learn typescript object types in depth
解决表单校验提示信息不消失问题以及赋值不生效问题
ClickHouse学习(二)ClickHouse单机安装
ClickHouse学习(八)物化视图
Flask 报错 RuntimeError: The session is unavailable because no secret key was set.
TXT 纯文本操作
组件传参与生命周期
End of document
常见特征工程操作
Merge the same items in the same column in table
uniapp组件之选择选项(如套餐选择)
Preemptive appointment | Alibaba cloud shadowless cloud application online conference appointment opens
[C language series] - three methods to simulate the implementation of strlen library functions
paddle. Fluid constant calculation error 'nonetype' object has no attribute 'get_ fetch_ list‘
About local variables