How to compile x264 in vc6

Source: Internet
Author: User
How to compile x264 in vc6

Peter Lee (lspbeyond@sohu.com)

 

========================================================== ======

Note: At present, I have provided the source code compiled successfully in x264 vc6 and vc7, which is updated once a week.

You can download and use it directly to save some trouble.

Http://lspbeyond.go1.icpcn.com/x264/index.htm

========================================================== ======

1DownloadX264

X264 home: http://videolan.org/

X264 is updated using the copyright control tool cvs. The source code package is not provided on its home page, so we need to download it with a dedicated tool.

Tool Name: tortoisesvn

Usage: 1. SVN: // svn.videolan.org/x#/trunk/


Figure 1

 

2Prepare the files required for compiling the environment

Note: Sections 2 and 3 refer to how to compile Xvid with Microsoft Visual C ++ 6.0.

1) Service Pack 5 for Visual Studio 6Http://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 fromMICROSOftDEvelopersNEtwork (msdn) by clicking the link abve.
Vc6 patch. The selected language is the same as the VC language.

2) Visual C ++ 6.0 Processor PackHttp://msdn.microsoft.com/vstudio/downloads/tools/ppack/default.aspx
The processors pack adds support for Intel's SSE, see2 and AMD's 3 dnow! Instructions.
Patch supporting processor multimedia assembly instructions

3) NASM-the famous netwide extends erHttp://sourceforge.net/projects/nasm/
Xvid uses NASM to "compile" the code written in assembly language (the *. ASM files). Download the Win32 binary.
X264 will also use this Compiler

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 (SOftwareDEvelopmentKIt). Unfortunately for dial-up users, ~ 200 MB DirectX SDK is no longer available on CD.
Used to compile the VFW project in x264

 

3, Set the compilation environment

1) installing Service Pack 5

The Service Pack is easy to install since it comes with an installer. The installer's filename is "setupsp5.exe". Just find the file and double-click it.
Run setupsp5.exe

2) Installing visual c ++ Processor Pack

Double-click "vcpp5.exe" to install.

3) Installing and processing ing NASM

Xvid expects the filename to be "nasm.exe" (probably because all other versions t the Win32 version has that name ). for some reason, the Win32 version NASM has a filename of "nasmw.exe. "I recommend making a copy of" nasmw.exe "and renaming it" nasm.exe."
Change the file name to nasm.exe and copy it to Microsoft Visual studio6/vc98/bin.

4) Installing and installing ing the DirectX SDK

Omitted

 

4,X264Program changes

1) file format conversion Unix-> DoS: three project files under build/Win32.

The next tool named unix2dos on the Internet, or save it as a wordpad.

 

2) Add # define have_stdint_h 1 to the common. h header.

 

3) annotate or rewrite the code section containing strncasecmp in x264.c.

The strncasecmp function is case-insensitive and compares two strings. This library function is not available in vc6.

The code in strncasecmp is used to verify the file extension of the input parameter. The comment indicates that this function is lost, so it is recommended to rewrite it.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.