On Thu, 27 Sep 2012, Derek Buitenhuis wrote:
Signed-off-by: Derek Buitenhuis <[email protected]>
---
doc/platform.texi | 59 +++++++++++++++++------------------------------------
1 file changed, 19 insertions(+), 40 deletions(-)
diff --git a/doc/platform.texi b/doc/platform.texi
index 07a2bc3..1f23240 100644
--- a/doc/platform.texi
+++ b/doc/platform.texi
@@ -169,54 +169,33 @@ else is not officially supported.
@end itemize
-@subsection Using shared libraries built with MinGW in Visual Studio
+@subsection Linking to Libav with Microsoft Visual C++
-Currently, if you want to build shared libraries on Windows, you need to
-use MinGW.
-
-This is how to create DLL and LIB files that are compatible with MSVC++:
-
-Within the MSYS shell, build Libav with
-
-@example
-./configure --enable-shared
-make
-make install
-@end example
-
-Your install path (@file{/usr/local/} by default) should now have the
-necessary DLL and LIB files under the @file{bin} directory.
-
-Alternatively, build the libraries with a cross compiler, according to
-the instructions below in @ref{Cross compilation for Windows with Linux}.
-
-To use those files with MSVC++, do the same as you would do with
-the static libraries, as described above. But in Step 4,
-you should only need to add the directory where the LIB files are installed
-(i.e. @file{c:\msys\usr\local\bin}). This is not a typo, the LIB files are
-installed in the @file{bin} directory. And instead of adding the static
-libraries (@file{libxxx.a} files) you should add the MSVC import libraries
-(@file{avcodec.lib}, @file{avformat.lib}, and
-@file{avutil.lib}). Note that you should not use the GCC import
-libraries (@file{libxxx.dll.a} files), as these will give you undefined
-reference errors. There should be no need for @file{libmingwex.a},
-@file{libgcc.a}, and @file{wsock32.lib}, nor any other external library
-statically linked into the DLLs.
+If you plan to link with MSVC-built static libraries, you will need
Umm, what? Didn't you mean "If you plan to link with mingw-built
libraries" - and wasn't static supposed not to be supported at all?
+to make sure you have @code{Runtime Library} set to
+@code{Multi-threaded (/MT)} in your project's settings.
The rest of the patch looks fine.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel