Using icc to build x264

Introduction : 
x264 is a free library for encoding H264/AVC video streams. For more details about x264, please refer to

Gcc build:
    x264 uses gcc to build by default in linux OS. To build x264, extract the source to a local directory, e.g. x264.
1. goto x264 folder.
2. ./configure --prefix=/usr --enable-mp4-output --enable-pic --enable-shared
3. make & make install

Icc build:
    You can use the same build process as gcc build. Before the configuration, you just need to set CC to icc.
1. export CC=icc
2. source /opt/intel/Compiler/11.1/xxx/bin/ ia32 to set the icc build environment for ia32.
2. ./configure --prefix=/usr --enable-mp4-output --enable-pic --enable-shared
3. make & make install
     There will have some warnings during icc build. You can ignore it or you need to change the configure file to fix it. For example, change -O4 to -O3 in file for icc build.
      For better encoding performance, you can set the optimized options in CFLAGS environment before the configuration. For example, if your machine support SSE4.1, you can add option -xSSE4.1 to CFLAGS.

Optimization Notice

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804

For more complete information about compiler optimizations, see our Optimization Notice.