N
N
Nikolai Petrenko2015-12-06 13:49:51
C++ / C#
Nikolai Petrenko, 2015-12-06 13:49:51

How to compile FFMPEG binary from under Win?

Hello everyone.
The problem is that I can't compile under Windows 8.1
FFMPEG binaries that I can use under Win
How do I compile FFMPEG according to the guide ( trac.ffmpeg.org/wiki/CompilationGuide/WinRT#Compil. .. in order to get a working exe file with libraries for further use
in Win
? commands
--------------
../../../configure \
--toolchain=msvc \
--disable-programs \
--disable-dxva2 \
--arch=x86 \
--enable-shared \
--enable-cross-compile \
--target-os=win32 \
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -D_WIN32_WINNT=0x0603" \
--extra-ldflags="-APPCONTAINER" \
--prefix= ../../../Build/Windows8.1/x86
--------------
I am getting errors
-----------------
cl is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
----------------
I work through MSYS2, GCC, PERL, YASM, DIFFUTILS, MAKE, gas-preprocessor were installed.
And also the file link.exe was renamed to link1.exe I
attach config.log after trying to compile
pastebin.com/rE3KNsSr

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2015-12-06
@gbg

To collect something under windows is straaaashny red tape. For one simple reason - windows is a hell and a garbage dump for automation by means of a command interpreter. It follows that only an enthusiast with a lot of time can help you, who will set up his own build environment, do everything, and then explain to you how to solve your problem.
Well, or a psychic. For example, I see in a crystal ball that your configure does not know where gcc is. Have you added it to PATH?
And then there will be approximately the same process - you will methodically slip things into configure that it cannot find.
Under Linux, this is handled by the package manager. Under wasps for masochistic developers - in hand-to-hand combat. Go ahead.

O
Oleg Tsilyurik, 2015-12-06
@Olej

check_cc
BEGIN ./ffconf.VKkV25e5.c
    1	int main(void){ return 0; }
END ./ffconf.VKkV25e5.c
cl -MD -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -D_WIN32_WINNT=0x0603 -c -o ./ffconf.O4rfLdZi.o ./ffconf.VKkV25e5.c
../../../configure: line 830: cl: command not found
C compiler test failed.

Well, you don't have a compiler, no ... How
many times can you repeat?
Start with Hello Word!
(this is not a joke, but a tip to start testing tools by compiling the simplest test code)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question