diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-11-29 15:33:52 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-11-29 15:33:52 +0100 |
commit | 7c4d405d404cceba1e071200bd732709b917ea4f (patch) | |
tree | 67e2cef08d95de74c04c8dab5cb23e35f1430c29 | |
parent | bf67ae3cfa28ea3c126a6d23f44d9fbb5222b54b (diff) | |
parent | 6b7df14251c49331ae7efd4811ec21f4415ccdb5 (diff) | |
download | ffmpeg-7c4d405d404cceba1e071200bd732709b917ea4f.tar.gz |
Merge commit '6b7df14251c49331ae7efd4811ec21f4415ccdb5'
* commit '6b7df14251c49331ae7efd4811ec21f4415ccdb5':
doc: Document better how to use MSYS2
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
-rw-r--r-- | doc/platform.texi | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/doc/platform.texi b/doc/platform.texi index 54f7bb7595..a4dcff5684 100644 --- a/doc/platform.texi +++ b/doc/platform.texi @@ -107,8 +107,13 @@ Notes: @itemize -@item Building natively using MSYS2 can be sped up by disabling implicit rules -in the Makefile by calling @code{make -r} instead of plain @code{make}. This +@item Native MSYS building is discouraged, MSYS2 provides a full mingw-w64 +environment through @file{mingw64_shell.bat} or @file{mingw32_shell.bat} +that should be used instead of the environment provides by +@file{msys2_shell.bat}. + +@item Building using MSYS2 can be sped up by disabling implicit rules in the +Makefile by calling @code{make -r} instead of plain @code{make}. This speed up is close to non-existent for normal one-off builds and is only noticeable when running make for a second time (for example during @code{make install}). @@ -122,6 +127,24 @@ libavformat) as DLLs. @end itemize +@subsection Native Windows compilation using MSYS2 + +The MSYS2 MinGW-w64 environment provides ready to use toolchains and dependencies +through @command{pacman}. + +Make sure to use @file{mingw64_shell.bat} or @file{mingw32_shell.bat} to have +the correct MinGW-w64 environment. + +@example +# normal msys2 packages +pacman -S make pkgconf diffutils + +# mingw-w64 packages and toolchains +pacman -S mingw-w64-x86_64-yasm mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL +@end example + +To target 32bit replace the @code{x86_64} with @code{i686} in the command above. + @section Microsoft Visual C++ or Intel C++ Compiler for Windows FFmpeg can be built with MSVC 2012 or earlier using a C99-to-C89 conversion utility |