Peter Lee(lspbeyond@sohu.com)
1
、下载
x264
x264
的主页:
http://videolan.org/
x264
是用版权控制工具
CVS
进行更新的,其主页上不提供源码压缩包,所以我们要用专用的工具下载。
工具名:
TortoiseSVN
使用方法:如图
1
所示。其中下载地址为:
svn://svn.videolan.org/x264/trunk/
图
1
2
、准备编译环境所需文件
note:2
和
3
部分参考了《
How to Compile XviD with Microsoft Visual C++ 6.0
》一文的内容
1) Service Pack 5 for Visual Studio 6 -
http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/default.asp
The service pack contains all the latest bug fixes for Visual C++ 6.0 as well as updates to essential libraries. You can
download the service pack or order it on CD from the Microsoft Developers Network (MSDN) by clicking the link
above.
vc6
补丁,所选的语言和VC的语言一致就可以了
2) Visual C++ 6.0 Processor Pack -
http://msdn.microsoft.com/vstudio/downloads/tools/ppack/default.aspx
The processors pack adds support for Intel's SSE, SEE2 and AMD's 3DNow! instructions.
支持处理器多媒体汇编指令的补丁
3) NASM - the famous Netwide Assembler -
http://sourceforge.net/projects/nasm/
Xvid uses NASM to "compile" the code written in assembly language (the *.asm files). Download the Win32 binary.
x264
同样会用到这个编译器
4) DirectX 9.0 SDK -
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp
To build the DirectShow filter, you need the DirectX SDK (Software Development Kit). Unfortunately for dial-up
users, the ~200MB DirectX SDK is no longer available on CD.
编译x264中的vfw工程时要用到
3
、设置编译环境
1) Installing Service Pack 5