Changes between Version 13 and Version 14 of CompilationGuide/MSVC
- Timestamp:
- Nov 2, 2015, 6:51:01 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/MSVC
v13 v14 118 118 == Compiling FFmpeg with external libraries == 119 119 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. 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. 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. 121 121 122 122 Also, 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 124 The 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 128 The following example command will configure libx264: 129 {{{ 130 CC=cl ./configure --enable-shared --prefix=<PREFIX> --extra-cflags="-DNO_PREFIX" 131 make 132 make install-lib-shared 133 }}} 134 135 The `NO_PREFIX` flag may be necessary to make linkable libraries. 136 137 138 === libopenh264 === 139 140 libopenh264 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. 141 The following command will build the openh264 library with VC: 142 {{{ 143 make OS=msvc PREFIX=<PREFIX> 144 make install 145 }}}
