Software: Apache/2.2.22 (Debian). PHP/5.6.36 uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) Safe-mode: OFF (not secure) /usr/share/doc/libav-tools/html/ drwxr-xr-x |
Viewing file: Select action/file-type: Platform Specific informationTable of Contents1. Unix-likeSome parts of Libav cannot be built with version 2.15 of the GNU assembler which is still provided by a few AMD64 distributions. To make sure your compiler really uses the required version of gas after a binutils upgrade, run:
If not, then you should install a different compiler that has no
hard-coded path to gas. In the worst case pass 1.1 BSDBSD make will not build Libav, you need to install and use GNU Make (‘gmake’). 1.2 (Open)SolarisGNU Make is required to build Libav, 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
1.3 Darwin (OS X, iPhone)The toolchain provided with Xcode is sufficient to build the basic unacelerated code. OS X on PowerPC or ARM (iPhone) requires a preprocessor from git://git.libav.org/gas-preprocessor.git to build the optimized assembler functions. Put the Perl script somewhere in your PATH, Libav’s configure will pick it up automatically. OS X on AMD64 and x86 requires 2. DOSUsing a cross-compiler is preferred for various reasons. http://www.delorie.com/howto/djgpp/linux-x-djgpp.html 3. OS/2For information about compiling Libav on OS/2 see http://www.edm2.com/index.php/FFmpeg. 4. Windows4.1 Native Windows compilationLibav can be built to run natively on Windows using the MinGW tools. Install the latest versions of MSYS and MinGW from http://www.mingw.org/. You can find detailed installation instructions in the download section and the FAQ. Libav does not build out-of-the-box with the packages the automated MinGW installer provides. It also requires coreutils to be installed and many other packages updated to the latest version. The minimum version for some packages are listed below:
Libav automatically passes Notes:
4.2 Microsoft Visual C++ compatibilityAs stated in the FAQ, Libav will not compile under MSVC++. However, if you want to use the libav* libraries in your own applications, you can still compile those applications using MSVC++. But the libav* libraries you link to must be built with MinGW. However, you will not be able to debug inside the libav* libraries, since MSVC++ does not recognize the debug symbols generated by GCC. We strongly recommend you to move over from MSVC++ to MinGW tools. This description of how to use the Libav libraries with MSVC++ is based on Microsoft Visual C++ 2005 Express Edition. If you have a different version, you might have to modify the procedures slightly. 4.2.1 Using static librariesAssuming you have just built and installed Libav in ‘/usr/local’.
4.2.2 Using shared librariesThis is how to create DLL and LIB files that are compatible with MSVC++: Within the MSYS shell, build Libav with
Your install path (‘/usr/local/’ by default) should now have the necessary DLL and LIB files under the ‘bin’ directory. Alternatively, build the libraries with a cross compiler, according to the instructions below in Cross compilation for Windows with Linux. To use those files with MSVC++, do the same as you would do with the static libraries, as described above. But in Step 4, you should only need to add the directory where the LIB files are installed (i.e. ‘c:\msys\usr\local\bin’). This is not a typo, the LIB files are installed in the ‘bin’ directory. And instead of adding the static libraries (‘libxxx.a’ files) you should add the MSVC import libraries (‘avcodec.lib’, ‘avformat.lib’, and ‘avutil.lib’). Note that you should not use the GCC import libraries (‘libxxx.dll.a’ files), as these will give you undefined reference errors. There should be no need for ‘libmingwex.a’, ‘libgcc.a’, and ‘wsock32.lib’, nor any other external library statically linked into the DLLs. Libav headers do not declare global data for Windows DLLs through the usual dllexport/dllimport interface. Such data will be exported properly while building, but to use them in your MSVC++ code you will have to edit the appropriate headers and mark the data as dllimport. For example, in libavutil/pixdesc.h you should have:
Note that using import libraries created by dlltool requires
the linker optimization option to be set to
"References: Keep Unreferenced Data ( To create import libraries that work with the
4.3 Cross compilation for Windows with LinuxYou must use the MinGW cross compilation tools available at http://www.mingw.org/. Then configure Libav with the following options:
(you can change the cross-prefix according to the prefix chosen for the MinGW tools). Then you can easily test Libav with Wine. 4.4 Compilation under CygwinPlease use Cygwin 1.7.x as the obsolete 1.5.x Cygwin versions lack llrint() in its C library. Install your Cygwin with all the "Base" packages, plus the following "Devel" ones:
And the following "Utils" one:
Then run
to make a static build. The current
If you want to build Libav with additional libraries, download Cygwin "Devel" packages for Ogg and Vorbis from any Cygwin packages repository:
These library packages are only available from Cygwin Ports:
The recommendation for libnut and x264 is to build them from source by yourself, as they evolve too quickly for Cygwin Ports to be up to date. Cygwin 1.7.x has IPv6 support. You can add IPv6 to Cygwin 1.5.x by means
of the 4.5 Crosscompilation for Windows under CygwinWith 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
|
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0329 ]-- |