[FFmpeg-cvslog] docs: Explain how to regenerate import libraries with MSVC tools

Martin Storsjö git at videolan.org
Sat Jul 9 02:09:50 CEST 2011


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Jul  8 11:16:32 2011 +0300| [37e6e6d3130ad0f93d3f5d040e41998d56bbf012] | committer: Martin Storsjö

docs: Explain how to regenerate import libraries with MSVC tools

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=37e6e6d3130ad0f93d3f5d040e41998d56bbf012
---

 doc/general.texi |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/doc/general.texi b/doc/general.texi
index c950fcb..814dc5f 100644
--- a/doc/general.texi
+++ b/doc/general.texi
@@ -970,6 +970,34 @@ required when using import libraries generated by lib.exe.
 This issue is reported upstream at
 @url{http://sourceware.org/bugzilla/show_bug.cgi?id=12633}.
 
+To create import libraries that work with the @code{/OPT:REF} option
+(which is enabled by default in Release mode), follow these steps:
+
+ at enumerate
+
+ at item Open @file{Visual Studio 2005 Command Prompt}.
+
+Alternatively, in a normal command line prompt, call @file{vcvars32.bat}
+which sets up the environment variables for the Visual C++ tools
+(the standard location for this file is
+ at file{C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat}).
+
+ at item Enter the @file{bin} directory where the created LIB and DLL files
+are stored.
+
+ at item Generate new import libraries with @file{lib.exe}:
+
+ at example
+lib /machine:i386 /def:..\lib\avcodec-53.def  /out:avcodec.lib
+lib /machine:i386 /def:..\lib\avdevice-53.def /out:avdevice.lib
+lib /machine:i386 /def:..\lib\avfilter-2.def  /out:avfilter.lib
+lib /machine:i386 /def:..\lib\avformat-53.def /out:avformat.lib
+lib /machine:i386 /def:..\lib\avutil-51.def   /out:avutil.lib
+lib /machine:i386 /def:..\lib\swscale-2.def   /out:swscale.lib
+ at end example
+
+ at end enumerate
+
 @anchor{Cross compilation for Windows with Linux}
 @subsection Cross compilation for Windows with Linux
 



More information about the ffmpeg-cvslog mailing list