N
N
Nikolai Petrenko2015-12-06 12:13:23
linux
Nikolai Petrenko, 2015-12-06 12:13:23

How to compile ffmpeg binary?

Hello everyone.
The problem is that I can't compile under Linux Ubuntu 14.04
FFMPEG binaries that I can use under Win
How do I compile FFMPEG to get a working exe file with libraries for further use in Win?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexei, 2015-12-06
@MAKAPOH

If you are satisfied with building ffmpeg with the mingw compiler, then pay attention to the msys2 project project . They already have a PKGBUILD to build ffmpeg. You just need to slip him the modified source.

A
Armenian Radio, 2015-12-06
@gbg

And ready than bad

P
Puma Thailand, 2015-12-06
@opium

compile on windows

N
Nikolai Petrenko, 2015-12-06
@Kingleonide

I'm trying to compile in Windows via MinGW, I installed Yasm, installed gcc, based libs and so on, but nothing comes out ..
------------------------- ---------------
$ ./configure --target-os=mingw32 --enable-shared --disable-static --extra-cfla
gs=-mno-cygwin
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
----------------------------------------

M
monah_tuk, 2015-12-06
@monah_tuk

env PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig \
../configure \
             --extra-ldflags="-static-libstdc++ -static-libgcc" \
             --enable-static \
             --disable-shared \
             --enable-nonfree \
             --enable-libfaac \
             --enable-libfdk-aac \
             --enable-cross-compile \
             --pkg-config=pkg-config \
             --arch=x86_64 \
             --target-os=mingw32 \
             --cross-prefix=x86_64-w64-mingw32-

and further all depends on already collected libraries. In general, read about cross-compilation and the like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question