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 ;}