The latest x264 is compiled under Windows

Source: Internet
Author: User

X264 update faster, every day there are updates, but the algorithm module, the basic structure is not how much change. x264 are written in C, including C99, but C99 syntax is not available in the VC (of course, there is energy can be changed all to C89), generated. A library is also impossible to invoke, how to convert into usable. Lib Library is more important. 1 Download Mingw+msys to configure, here are configured, direct download to use it.http://code.google.com/p/msys-cn/wiki/ChapterInstallation2 Download the latest x264http://videolan.mirror.aussiehq.net.au/x264/snapshots/Unzip to the Msys directory under Home file3 Compiling x264Enter the directory where the current x264 is located
Compiling x264
./configure--enable- make
you can see that the Libx264-112.dll is generated4 using VC-provided tools to export LibDownload PoxportsHttp://files.cnblogs.com/files/pengdonglin137/pexports.rar unzip to the installation directory where the VC is located, for exampleC:\Program Files\Microsoft Visual Studio 8\VC\bin, extract pexports.exe copy to bin directoryExport Lib Library
Pexports libx264-. dll > libx264-/machine:ix86/def:libx264-.def
 5 Testing the exported library is correctCopy the newly generated libraries Libx264-112.lib and Libx264-112.dll to the new Win32 ProjectCopy the X264.h and X264_config.h under the original x264 directory to the Win32 project under constructiondownload PthreadGC2.dll and stdint.h test with the following program
#include <iostream>#include<string>#include"stdint.h"extern "C"{#include"x264.h"#include"x264_config.h"}; using namespacestd;intMain () {x264_param_t param; X264_param_default (&param); return 0;}

There is a problem in the debugging can not enter the x264 function inside.

The latest x264 is compiled under Windows

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.