编译h264 生成动态库,头文件

  1. 下载

    git clone https://code.videolan.org/videolan/x264.git
    
  2. 编译

    $ mkdir _build
    $ ./configure --prefix=`pwd`/_build --enable-shared --enable-static  --disable-opencl --disable-asm
    $ make
    
  3. 安装

    $ make install
    
  4. 查看编译后的文件

    $ tree _build/
    _build/
    ├── bin
    │ └── x264
    ├── include
    │ ├── x264_config.h
    │ └── x264.h
    └── lib
    ├── libx264.a
    ├── libx264.so -> libx264.so.161
    ├── libx264.so.161
    └── pkgconfig
    └── x264.pc

    4 directories, 7 files

参考链接:error: /usr/local/x264/lib/libx264.a(opencl-8.o): undefined reference to symbol 'dlclose@@GLIBC

你可能感兴趣的:(解决问题,x264)