Getting "The application was unable to start correctly (0xc000007b)" error when building FFmpeg with MSYS2

Questions that occur when trying to compile FFmpeg.
Post Reply
Username
Posts: 2
Joined: Mon Jan 07, 2019 10:55 pm

Getting "The application was unable to start correctly (0xc000007b)" error when building FFmpeg with MSYS2

Post by Username » Mon Jan 07, 2019 11:59 pm

Hello,
I'm trying now to compile my own build of FFmpeg using MSYS2 environment. I want to compile standalone executables suitable for launching from Windows directly, without MSYS2, just like official build from https://ffmpeg.zeranoe.com/builds/ .

I've begun with vanilla build with simple
  • ./configure
  • make
  • make install
sequence just to ckech if everything work fine. The compiled executables run smoothly from MSYS2 shell itself, but when I wanted to run them from Windows, they all crashed with "The application was unable to start correctly (0xc000007b)" error: ffmpeg, ffplay and ffprobe. This is the point where I stuck.

What should I do? I've googled at my best, but could not find suitable solution for this exact situation of building static linked standalone ffmpeg build with MSYS2.

Here is what I've done:
I'm launching environment with "MSYS2 MinGW 64-bit" shortcut from Start menu.
I've installed MSYS2 environment as it stated on it's page http://www.msys2.org/ with msys2-x86_64-20180531.exe build,
then updated packages according to https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW "Option 2: MSYS2" section with mingw-w64-x86_64-gcc package,
then cloned FFmpeg sorces from here "git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg"
and removed libpthread.dll.a, libwinpthread.dll.a, libSDL2.dll.a, libiconv.dll.a and libbz2.dll.a files from MinGW subfolders to force it compile that libraries statically, as was suggested here viewtopic.php?p=10251&sid=2752ca92b1ec9 ... ab6#p10251

I'm pretty new with operating *nix environments so would greatly appreciate any help.

My global goal now is to compile exactly the same https://ffmpeg.zeranoe.com/builds/ official build, but with libvmaf enabled, as I want to use this metrics.

User avatar
Zeranoe
Site Admin
Posts: 704
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: Getting "The application was unable to start correctly (0xc000007b)" error when building FFmpeg with MSYS2

Post by Zeranoe » Thu Jan 17, 2019 3:56 am

The public builds are cross compiled, so I don't use MSYS.

I'm not familiar with the issue you're seeing and it's not apparent what's going wrong from your steps. I can only recommend you try cross compiling (perhaps using my cross compiler script to build Mingw).

Username
Posts: 2
Joined: Mon Jan 07, 2019 10:55 pm

Re: Getting "The application was unable to start correctly (0xc000007b)" error when building FFmpeg with MSYS2

Post by Username » Thu Jan 17, 2019 4:19 am

Zeranoe wrote:
Thu Jan 17, 2019 3:56 am
The public builds are cross compiled, so I don't use MSYS.

I'm not familiar with the issue you're seeing and it's not apparent what's going wrong from your steps. I can only recommend you try cross compiling (perhaps using my cross compiler script to build Mingw).
Oh, thank you for clue! I will investigate it then and try to figure out if I can reproduce it with my tools.

By "cross compiled", do you mean you use MinGW under some linux OS? Do you use original MinGW or mingw-w64 after all? How to you make builds for x64?

hydra3333
Posts: 201
Joined: Sun Apr 28, 2013 1:03 pm
Contact:

Re: Getting "The application was unable to start correctly (0xc000007b)" error when building FFmpeg with MSYS2

Post by hydra3333 » Fri Jan 18, 2019 5:33 am

Maybe for building

under ubuntu, for target native win10 app
here https://github.com/DeadSix27/python_cro ... ile_script
or here https://github.com/rdp/ffmpeg-windows-build-helpers

or under win10, for target native win10 app (well maintained, quick responses and bugfixes !)
here https://github.com/jb-alvarado/media-autobuild_suite

Post Reply
'