Changes between Version 13 and Version 14 of CompilationGuide/MSVC


Ignore:
Timestamp:
Nov 2, 2015, 8:51:01 PM (4 years ago)
Author:
saste
Comment:

add basic instructions to build external libraries with msvc

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/MSVC

    v13 v14  
    118118== Compiling FFmpeg with external libraries ==
    119119
    120 In order to build FFmpeg with support to external libraries, you need to make sure that the libraries and headers are placed in a location specified by the INCLUDE and LIB directories referenced by the VC compiler and linker.
     120In order to build FFmpeg with support to external libraries, you need to make sure that the libraries and headers are placed in a location specified by the INCLUDE and LIB directories referenced by the VC compiler and linker. In case multiple libraries are used, you could use a common prefix to install all the libraries, so that you have to specify a single location.
    121121
    122122Also, you may need to compile the libraries themselves with VC in order to make it possible to link them when building the FFmpeg DLLs.
     123
     124The following subsections document how you can build some of the external libraries employed by FFmpeg using VC. Note that the setup step is the same for all the libraries (so it can be done just once, then you can build several libraries using the same MSYS terminal session).
     125
     126=== libx264 ===
     127
     128The following example command will configure libx264:
     129{{{
     130CC=cl ./configure --enable-shared --prefix=<PREFIX> --extra-cflags="-DNO_PREFIX"
     131make
     132make install-lib-shared
     133}}}
     134
     135The `NO_PREFIX` flag may be necessary to make linkable libraries.
     136
     137
     138=== libopenh264 ===
     139
     140libopenh264 provides no configuration system, so the build parameters have to be specified either by editing the Makefile, or by setting the parameters on the commandline.
     141The following command will build the openh264 library with VC:
     142{{{
     143make OS=msvc PREFIX=<PREFIX>
     144make install
     145}}}