mpv-player / mpv-build

🔨 Helper scripts to compile mpv on Linux
http://mpv.io
414 stars 108 forks source link

Unable to find development files for some of the required FFmpeg/Libav libraries #101

Closed kslr closed 6 years ago

kslr commented 6 years ago

I am trying to compile mpv for winfows under Ubuntu16.04. ffmpeg and mpv switch to the master branch


sudo apt install libavutil-dev libavcodec-dev libavformat-dev libswscale-dev libavfilter-dev libswresample-dev   
libavcodec-dev 已经是最新版 (7:2.8.11-0ubuntu0.16.04.1)。
libavfilter-dev 已经是最新版 (7:2.8.11-0ubuntu0.16.04.1)。
libavformat-dev 已经是最新版 (7:2.8.11-0ubuntu0.16.04.1)。
libavutil-dev 已经是最新版 (7:2.8.11-0ubuntu0.16.04.1)。
libswresample-dev 已经是最新版 (7:2.8.11-0ubuntu0.16.04.1)。
libswscale-dev 已经是最新版 (7:2.8.11-0ubuntu0.16.04.1)。

 ~/develop/mpv-build/mpv
DEST_OS=win32 TARGET=i686-w64-mingw32.static ./waf configure

Checking for Direct3D support                                     : yes 
Checking for libshaderc SPIR-V compiler (shared library)          : no 
Checking for libshaderc SPIR-V compiler (static library)          : no 
Checking for libshaderc SPIR-V compiler                           : shaderc-shared not found 
Checking for libcrossc SPIR-V translator                          : no ('crossc' not found) 
Checking for Direct3D 11 video output                             : shaderc not found 
Checking for Raspberry Pi support                                 : no 
Checking for iOS OpenGL ES hardware decoding interop support      : no 
Checking for OpenGL without platform-specific code (e.g. for libmpv) : libmpv-shared not found 
Checking for MALI via Linux fbdev                                    : libdl not found 
Checking for OpenGL context support                                  : yes 
Checking for Vulkan context support                                  : no ('vulkan' not found) 
Checking for EGL helper functions                                    : egl-x11 not found 
Checking for FFmpeg/Libav present                                    : yes 
Checking for libav* is FFmpeg                                        : yes 
Checking for libav* is Libav                                         : no 
Checking for Libav/FFmpeg library versions                           : no ('libavutil >= 56.6.100 libavcodec >= 58.7.100 libavformat >= 58.0.102 libswscale >= 5.0.101 libavfilter >= 7.0.101 libswresample >= 3.0.100' not found) 
Unable to find development files for some of the required FFmpeg/Libav libraries. Git master is recommended.

more logs https://www.dropbox.com/s/0n6awf9r9ch5scu/logs.txt?dl=0

I have successfully compiled Linux client. Do I need to switch to other git tags?

wiiaboo commented 6 years ago

2.8 is way way too old to use with mpv's git master. You need to also compiled FFmpeg master with mpv-build.

Exodus124 commented 6 years ago

Excuse me, I have the exact same problem (on Windows though), and I don't quite understand what "compiling FFmpeg master with mpv-build" means. I used

pacman -S $MINGW_PACKAGE_PREFIX-{ffmpeg,libjpeg-turbo,lua51,angleproject-git}

Shouldn't that work?

kevmitch commented 6 years ago

I don't quite understand what "compiling FFmpeg master with mpv-build" means. I used

It means use the scripts in this repository to compile the master branch, not the release, of ffmpeg.

pacman -S $MINGW_PACKAGE_PREFIX-{ffmpeg,libjpeg-turbo,lua51,angleproject-git} Shouldn't that work?

No, that's the ffmpeg release, it's too old. you need master as built by mpv-build.

kslr commented 6 years ago

@Exodus124 You can try https://github.com/mpv-player/mpv-build