当前位置:网站首页>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 编译
边栏推荐
- js简单代码判断打开页面的设备是电脑PC端或手机H5端或微信端
- Installation steps and environment configuration of vs Code
- 2022 mathematical modeling competition summer training lecture - optimization method: goal planning
- href与src的区别
- One dimensional array exercise
- 【TypeScript】TypeScript中类型缩小(含类型保护)与类型谓词
- [C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
- 用threejs 技术做游戏跑酷
- Hcia-r & s self use notes (27) comprehensive experiment
- ClickHouse学习(十)监控运行指标
猜你喜欢
Three handshakes and four waves for the interview summary
Redirection and files
[C language series] - a recursive topic
On Paradigm
【TypeScript】深入学习TypeScript函数
Solve the problem that the prompt information of form verification does not disappear and the assignment does not take effect
[C language series] - realize the exchange of two numbers without creating the third variable
AR虚拟增强与现实
HCIA-R&S自用笔记(25)NAT技术背景、NAT类型及配置
Clickhouse learning (V) cluster operation
随机推荐
uniapp组件之倒计时(如阅读协议倒计时、完成学习倒计时)
href与src的区别
Day 5
365 day challenge leetcode 1000 questions - day 035 one question per day + two point search 13
Clickhouse learning (IX) Clickhouse integrating MySQL
HCIA-R&S自用笔记(26)PPP
Question swiping Madness - leetcode's sword finger offer58 - ii Detailed explanation of left rotation string
Installation steps and environment configuration of vs Code
rem与px与em异同点
HCIA-R&S自用笔记(24)ACL
Longest string without duplicate characters
【TypeScript】深入学习TypeScript函数
解决表单校验提示信息不消失问题以及赋值不生效问题
小程序中的DOM对象元素块动态排序
Day 2
Do students in the science class really understand the future career planning?
ClickHouse学习(四)SQL操作
Clickhouse learning (x) monitoring operation indicators
利用Poi-tl在word模板表格单元格内一次插入多张图片和多行单元格相同数据自动合并的功能组件
Preemptive appointment | Alibaba cloud shadowless cloud application online conference appointment opens