Table of Contents
- 1 Unix-like
- 4 Windows
- 4.1 Native Windows compilation using MinGW or MinGW-w64
- 4.2 Microsoft Visual C++ or Intel C++ Compiler for Windows
- Under Windows, either follow the Eclipse instructions or install Cygwin and then follow the command line build instructions. Under Mac OS X, please see the Mac OS X instructions. Users on platforms other than Windows and Mac OS X should follow the command line build instructions.
- OS X Gentoo SUSE ArchLinux Fedora/RHEL Solaris Slackware FreeBSD NixOS. Download setup.exe from Cygwin and select irssi during the package selection step.
1 Unix-like
Note: If installing PETSc with Cygwin/GNU compilers - install additional Cygwin components. Gcc-core gcc-g gcc-fortran; liblapack-devel; openmpi libopenmpi-devel; Additional cygwin components like git cmake can be useful for installing external packages. Remove Cygwin link.exe: Cygwin link.exe can conflict with Intel ifort compiler. The brew command downloads ImageMagick and many of its delegate libraries (e.g. JPEG, PNG, Freetype, etc.) and configures, builds, and installs ImageMagick automagically. Alternatively, you can download the ImageMagick Mac OS X distribution we provide.
Some parts of FFmpeg cannot be built with version 2.15 of the GNUassembler which is still provided by a few AMD64 distributions. Tomake sure your compiler really uses the required version of gasafter a binutils upgrade, run:
If not, then you should install a different compiler that has nohard-coded path to gas. In the worst case pass --disable-asm
to configure.
1.1 Advanced linking configuration
If you compiled FFmpeg libraries statically and you want to use them tobuild your own shared library, you may need to force PIC support (with--enable-pic
during FFmpeg configure) and add the following optionto your project LDFLAGS:
If your target platform requires position independent binaries, you shouldpass the correct linking flag (e.g. -pie
) to --extra-ldexeflags
.
1.2 BSD
BSD make will not build FFmpeg, you need to install and use GNU Make(gmake
).
1.3 (Open)Solaris
GNU Make is required to build FFmpeg, so you have to invoke (gmake
),standard Solaris Make will not work. When building with a non-c99 front-end(gcc, generic suncc) add either --extra-libs=/usr/lib/values-xpg6.o
or --extra-libs=/usr/lib/64/values-xpg6.o
to the configure optionssince the libc is not c99-compliant by default. The probes performed byconfigure may raise an exception leading to the death of configure itselfdue to a bug in the system shell. Simply invoke a different shell such asbash directly to work around this:
1.4 Darwin (Mac OS X, iPhone)
The toolchain provided with Xcode is sufficient to build the basicunaccelerated code.
Mac OS X on PowerPC or ARM (iPhone) requires a preprocessor fromhttps://github.com/FFmpeg/gas-preprocessor orhttps://github.com/yuvi/gas-preprocessor(currently outdated) to build the optimizedassembly functions. Put the Perl script somewherein your PATH, FFmpeg’s configure will pick it up automatically.
Mac OS X on amd64 and x86 requires nasm
to build most of theoptimized assembly functions. Fink,Gentoo Prefix,Homebrewor MacPorts can easily provide it.
2 DOS
Cygwin Mac Os X Download Utorrent
Using a cross-compiler is preferred for various reasons.http://www.delorie.com/howto/djgpp/linux-x-djgpp.html
3 OS/2
For information about compiling FFmpeg on OS/2 seehttp://www.edm2.com/index.php/FFmpeg.
4 Windows
To get help and instructions for building FFmpeg under Windows, check outthe FFmpeg Windows Help Forum at http://ffmpeg.zeranoe.com/forum/.
4.1 Native Windows compilation using MinGW or MinGW-w64
FFmpeg can be built to run natively on Windows using the MinGW-w64toolchain. Install the latest versions of MSYS2 and MinGW-w64 fromhttp://msys2.github.io/ and/or http://mingw-w64.sourceforge.net/.You can find detailed installation instructions in the download section andthe FAQ.
Notes:
- Building for the MSYS environment is discouraged, MSYS2 provides a fullMinGW-w64 environment through mingw64_shell.bat ormingw32_shell.bat that should be used instead of the environmentprovided by msys2_shell.bat.
- Building using MSYS2 can be sped up by disabling implicit rules in theMakefile by calling
make -r
instead of plainmake
. Thisspeed up is close to non-existent for normal one-off builds and is onlynoticeable when running make for a second time (for example duringmake install
). - In order to compile FFplay, you must have the MinGW development libraryof SDL and
pkg-config
installed. - By using
./configure --enable-shared
when configuring FFmpeg,you can build the FFmpeg libraries (e.g. libavutil, libavcodec,libavformat) as DLLs.
4.1.1 Native Windows compilation using MSYS2
The MSYS2 MinGW-w64 environment provides ready to use toolchains and dependenciesthrough pacman
.
Make sure to use mingw64_shell.bat or mingw32_shell.bat to havethe correct MinGW-w64 environment. The default install provides shortcuts tothem under MinGW-w64 Win64 Shell
and MinGW-w64 Win32 Shell
.
To target 32 bits replace x86_64
with i686
in the command above.
4.2 Microsoft Visual C++ or Intel C++ Compiler for Windows
FFmpeg can be built with MSVC 2013 or later.
You will need the following prerequisites:
- NASM(Also available via MSYS2’s package manager.)
To set up a proper environment in MSYS2, you need to run msys_shell.bat
fromthe Visual Studio or Intel Compiler command prompt.
Place yasm.exe
somewhere in your PATH
.
Next, make sure any other headers and libs you want to use, such as zlib, arelocated in a spot that the compiler can see. Do so by modifying the LIB
and INCLUDE
environment variables to include the Windows-stylepaths to these directories. Alternatively, you can try to use the--extra-cflags
/--extra-ldflags
configure options.
Finally, run:
If you wish to compile shared libraries, add --enable-shared
to yourconfigure options. Note that due to the way MSVC and ICL handle DLL imports andexports, you cannot compile static and shared libraries at the same time, andenabling shared libraries will automatically disable the static ones.
Notes:
- If you wish to build with zlib support, you will have to grab a compatiblezlib binary from somewhere, with an MSVC import lib, or if you wish to linkstatically, you can follow the instructions below to build a compatible
zlib.lib
with MSVC. Regardless of which method you use, you must stillfollow step 3, or compilation will fail.- Grab the zlib sources.
- Edit
win32/Makefile.msc
so that it uses -MT instead of -MD, sincethis is how FFmpeg is built as well. - Edit
zconf.h
and remove its inclusion ofunistd.h
. This getserroneously included when building FFmpeg. - Run
nmake -f win32/Makefile.msc
. - Move
zlib.lib
,zconf.h
, andzlib.h
to somewhere MSVCcan see.
- FFmpeg has been tested with the following on i686 and x86_64:
- Visual Studio 2013 Pro and Express
- Intel Composer XE 2013
- Intel Composer XE 2013 SP1
Anything else is not officially supported.
4.2.1 Linking to FFmpeg with Microsoft Visual C++
If you plan to link with MSVC-built static libraries, you will needto make sure you have Runtime Library
set toMulti-threaded (/MT)
in your project’s settings.
You will need to define inline
to something MSVC understands:
Also note, that as stated in Microsoft Visual C++, you will needan MSVC-compatible inttypes.h.
If you plan on using import libraries created by dlltool, you mustset References
to No (/OPT:NOREF)
under the linker optimizationsettings, otherwise the resulting binaries will fail during runtime.This is not required when using import libraries generated by lib.exe
.This issue is reported upstream athttp://sourceware.org/bugzilla/show_bug.cgi?id=12633.
To create import libraries that work with the /OPT:REF
option(which is enabled by default in Release mode), follow these steps:
Mac Os X Download Free
- Open the Visual Studio Command Prompt.
Alternatively, in a normal command line prompt, call vcvars32.batwhich sets up the environment variables for the Visual C++ tools(the standard location for this file is something likeC:Program Files (x86_Microsoft Visual Studio 10.0VCbinvcvars32.bat).
- Enter the bin directory where the created LIB and DLL filesare stored.
- Generate new import libraries with
lib.exe
:Replace
foo-version
andfoo
with the respective library names.
4.3 Cross compilation for Windows with Linux
You must use the MinGW cross compilation tools available athttp://www.mingw.org/.
Then configure FFmpeg with the following options:
(you can change the cross-prefix according to the prefix chosen for theMinGW tools).
Then you can easily test FFmpeg with Wine.
4.4 Compilation under Cygwin
Please use Cygwin 1.7.x as the obsolete 1.5.x Cygwin versions lackllrint() in its C library.
Install your Cygwin with all the 'Base' packages, plus thefollowing 'Devel' ones:
In order to run FATE you will also need the following 'Utils' packages:
If you want to build FFmpeg with additional libraries, download Cygwin'Devel' packages for Ogg and Vorbis from any Cygwin packages repository:
These library packages are only available fromCygwin Ports:
The recommendation for x264 is to build it from source, as it evolves tooquickly for Cygwin Ports to be up to date.
4.5 Crosscompilation for Windows under Cygwin
With Cygwin you can create Windows binaries that do not need the cygwin1.dll.
Just install your Cygwin as explained before, plus these additional'Devel' packages:
and add some special flags to your configure invocation.
For a static build run
and for a build with shared libraries
This document was generated on December 13, 2020 using makeinfo.
Hosting provided by telepoint.bg
- Tcpreplay v.3.4.2Suite of tools to edit and replay captured network trafficTcpreplay is a suite of BSD licensed tools written by Aaron Turner for UNIX (and Win32 under Cygwin) operating systems which gives you the ability to use previously captured traffic in libpcap ...
- Cake Build System v.2.4.2.7Cake is a build system that combines the flexibility of Python build scripts with an incremental build speed that matches build systems written in C/C++. It requires Python 2.4-3.2 and natively supports Windows, Linux, Mac, Cygwin, MSVC and ...
- Better CD v.0.5.0BCD is a shorthand for 'Better CD'. It is modeled after 'cdargs' utility and allows you to give aliases to frequently used directories and 'cd' to them. BCD is cross platform and was tested on Linux, Cygwin and Windows ...
- CDL cycle language, compiler, simulator v.1.0.18Language, compiler and simulator for CDL cycle description language Platforms: OSX, Linux, Cygwin CDL is a C-like language for hardware description; simulator generates C++ models and synthesizable verilog. Includes C++ cycle simulation ...
- Cmmi ( installation manager ) v.0.5.2Cmmi helps you to simplify your installation process from '.tar.gz' source archives. You can be a package manager of your local site, if you are not an expert of your OS. Cmmi can make .deb, .rpm, Slackware and cygwin packages ...
- CPP2RTF v.32CPP2RTF: generates listings of C++ code in RTF format, using different fonts and typefaces to highlight syntax for printing on a B&W printer.Pre-compiled binaries for both Windows and Cygwin are ...
- Pmcyg v.0.6pmcyg can create customized collections of Cygwin(TM) packages. pmcyg takes a user-supplied list of Cygwin package names, and downloads only them and their dependencies from a Cygwin mirror, e.g. to create a CDROM or DVD based off-line ...
- Ux2html v.1.0ux2html is an easy and flexible tool for system administrators to collect Unix configuration. ux2html generates reports in HTML. It works against all Unix: Linux/GNU, Solaris, AIX, HP-UX, Cygwin, Darwin, Tru64, ... all unix ...
- GNU Prolog for Mac OS X v.1.4.0What is GNU Prolog GNU Prolog is a free Prolog compiler with constraint solving over finite domains developed by Daniel Diaz. GNU Prolog accepts Prolog+constraint programs and produces native binaries (like gcc does from a C source). The ...
- SPORCH v.0.2.4.alphaSpectral Orchestrator--A software tool for musicians and composers that creates harmonies/orchestrations from digitally recorded sound files. Currently compiles and runs in Linux and Mac OS X (and eventually ...
- GNU Prolog for Mac OS X What is GNU Prolog GNU Prolog is a free Prolog compiler
- CDL cycle language, compiler, simulator Language, compiler and simulator for CDL cycle description
- SPORCH Spectral Orchestrator--A software tool for musicians and
- Tcpreplay Suite of tools to edit and replay captured network
- Pmcyg pmcyg can create customized collections of Cygwin (TM)
- Better CD BCD is a shorthand for 'Better CD'. It is modeled after
- Cake Build System Cake is a build system that combines the flexibility of
- Cmmi ( installation manager ) Cmmi helps you to simplify your installation process from
- CPP2RTF CPP2RTF: generates listings of C++ code in RTF format, using
- Ux2html ux2html is an easy and flexible tool for system