[FFmpeg-devel] [PATCH 2/2] doc/platform: Add info on shared builds with MSVC

Derek Buitenhuis derek.buitenhuis at gmail.com
Sat Oct 20 01:20:53 CEST 2012


Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 doc/platform.texi |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/doc/platform.texi b/doc/platform.texi
index 0fc9563..c6dfe34 100644
--- a/doc/platform.texi
+++ b/doc/platform.texi
@@ -110,7 +110,7 @@ libavformat) as DLLs.
 @section Microsoft Visual C++
 
 FFmpeg can be built with MSVC using a C99-to-C89 conversion utility and
-wrapper. At this time, only static builds are supported.
+wrapper.
 
 You will need the following prerequisites:
 
@@ -126,8 +126,8 @@ you want to run @uref{fate.html, FATE}.
 To set up a proper MSVC environment in MSYS, you simply need to run
 @code{msys.bat} from the Visual Studio command prompt.
 
-Place @code{c99wrap.exe}, @code{c99conv.exe}, and @code{yasm.exe} somewhere
-in your @code{PATH}.
+Place @code{makedef}, @code{c99wrap.exe}, @code{c99conv.exe}, and @code{yasm.exe}
+somewhere in your @code{PATH}.
 
 Next, make sure @code{inttypes.h} and any other headers and libs you want to use
 are located in a spot that MSVC can see. Do so by modifying the @code{LIB} and
@@ -143,6 +143,11 @@ make
 make install
 @end example
 
+If you wish to compile a shared build, add @code{--enable-shared}. Note that
+due to the way MSVC handles DLL imports and exports, you cannot compile a
+static and shared build at the same time, and enabling building as shared
+will automatically disable the static build.
+
 Notes:
 
 @itemize
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list