Compile the latest x264 in Windows

Source: Internet
Author: User

X264 is updated quickly and is updated every day. However, the basic structure of the Algorithm Module remains unchanged. X264 is written in C language, including c99, but the c99 syntax is useless in VC (of course, you can change all the energy to c89), which is generated. library a cannot be called either. How can it be converted to available. the LIB library is more important.

1 download mingw + msys configuration, here has been configured, direct download with you can download the latest x264http: // videolan.mirror.aussiehq.net. au/x264/snapshots/decompress the package to the msys directory and compile x264 in the Home file to enter the directory where the current x264 is located.
Compile x264. /configure -- enable-shared make can see that the libx264-112.dll4 will be generated using the tool provided by VC to export lib download poxportshttp: // download.csdn.net/source/3036251decompress the installation directory to vcpus, such as c://program files/Microsoft Visual Studio 8/VC/bin, decompress to pexports.exe copy to bin directory export lib library pexports libx264-112.dll>
LIB/machine: ix86/DEF: libx264-112.def5 test export library is correct copy the new library libx264-112.lib and libx264-112.dll to the new Win32 project copy the original x264 directory under the x264.h and x1__config.h to the Win32 project to download pthreadgc2.dll and stdint. h. Use the following program to test # include <iostream> # include <string> # include "stdint. H "extern" C "{# include" x264.h "# include" x264_config.h "}; using namespace STD; int main () {x264_param_t Param; x264_param_default (& PARAM ); return 0 ;}

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.