当前位置:网站首页>Configuration and compilation of mingw-w64, msys and ffmpeg

Configuration and compilation of mingw-w64, msys and ffmpeg

2022-06-23 07:03:00 Wool leek

mingw-w64、msys and ffmpeg Configuration and compilation of

download mingw-w64 Offline installer :[https://www.cr173.com/soft/132367.html]

Download and unzip , And then put mingw-w64\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64 Copy all files under the path to C Just a plate , Directory as follows :C:\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64;
Test the installation for success :
1、 open cmd, Get into mingw64\bin Catalog ,
2、 Type in the command gcc -v
3、 Will be displayed gcc Version, etc , If you see this message , Indicates successful installation .

download msys:[http://www.mingw.org/wiki/MSYS/]

Click Install directly , I install it in C disc , There will be some prompts during installation ,yes Just go ( Including the black window y)
And then to C:\msys\1.0\etc Catalog , Copy fstab.sample by fstab, Then modify as follows ( The contents above this text remain unchanged ):

#You can use a # as the first character on the line as a comment indicator.
#Blank lines are ignored.
#Win32_Path Mount_Point

C:/mingw-w64/x86_64-4.9.2-posix-seh-rt_v3-rev1/mingw64 /mingw
c:/ActiveState/perl /perl

Then edit C:\msys\1.0\msys.bat file , Add... At the beginning call “D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat” In this way, the environment variables are configured ( I still have some questions about the configuration here ).
Test for successful installation , start-up msys terminal , Input gcc -v

download ffmpeg:[https://github.com/ffmpeg/ffmpeg]

After downloading, copy all to C:\msys\1.0\home.
And then run msys,cd To C:\msys\1.0\home\ffmpeg Catalog , perform ./configure( At this time, there may be various command not found problem , This is because msys Under the bin Some files are missing , Most of these files can be found at the following links , Then add to bin It's OK , Refer to the following problem summary for details )
Execute after success :make ( The compilation time may be a little long , Please be patient )
then :make install
Only this and nothing more ,ffmpeg stay windows The compilation on has been completed , At this point we can try to use ffmpeg Command to verify the compilation results , perform ./ffmpeg.exe -h
Then you will see some information :
end
windows64 Next FFmpeg Compilation problem summary :
[https://blog.csdn.net/lz8362/article/details/79165334]
[http://gnuwin32.sourceforge.net/packages/coreutils.htm]


原网站

版权声明
本文为[Wool leek]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230531031908.html