FFmpeg與VS2010

編譯FFmpeg是一件痛苦的事情,一般都直接使用Zeranoe FFmpeg Builds

如果使用這個版本,需要注意ffmpeg的幫助裏的一段話:

To create import libraries that work with the /OPT:REF option (which is enabled by default in Release mode), follow these steps:

Open the Visual Studio Command Prompt.
Alternatively, in a normal command line prompt, call ‘vcvars32.bat’ which sets up the environment variables for the Visual C++ tools (the standard location for this file is something like ‘C:\Program Files (x86_\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat’).

Enter the ‘bin’ directory where the created LIB and DLL files are stored.
Generate new import libraries with lib.exe:
 	
lib /machine:i386 /def:..\lib\foo-version.def  /out:foo.lib
Replace foo-version and foo with the respective library names.

即根據dll重新生成lib文件。

否則Relesae下就會出問題。


這是VS2010的一個bug,據說VS2012後已經修復。

發佈了175 篇原創文章 · 獲贊 19 · 訪問量 61萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章