mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.27k stars 2.9k forks source link

Feature shaderc cannot be enabled #13588

Closed simonbcn closed 8 months ago

simonbcn commented 8 months ago
mpv git version
Arch Linux
meson v1.3.2

I am trying to install the git version of mpv using this PKGBUILD: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mpv-amd-full-git

arch-meson is an alias for:

$ meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_pie=true -D python.bytecompile=1

I have tried with the shaderc stable version and git version and it fails with both.

Main binary: /usr/bin/python
Build Options: -Db_pie=true -Dpython.bytecompile=1 -Dgpl=true -Dcplayer=true -Dlibmpv=true -Dbuild-date=false -Dtests=true -Dta-leak-report=false -Dcdda=enabled -Dcplugins=
enabled -Ddvbin=enabled -Ddvdnav=enabled -Diconv=enabled -Djavascript=enabled -Dlcms2=enabled -Dlibarchive=enabled -Dlibavdevice=enabled -Dlibbluray=enabled -Dlua=auto -Dpt
hread-debug=disabled -Drubberband=enabled -Dsdl2=enabled -Dsdl2-gamepad=enabled -Duchardet=enabled -Duwp=disabled -Dvapoursynth=enabled -Dvector=enabled -Dzimg=enabled -Dzl
ib=enabled -Dalsa=enabled -Daudiounit=disabled -Dcoreaudio=disabled -Djack=enabled -Dopenal=enabled -Dopensles=disabled -Doss-audio=disabled -Dpipewire=enabled -Dpulse=enab
led -Dsdl2-audio=enabled -Dsndio=enabled -Dwasapi=disabled -Dcaca=enabled -Dcocoa=disabled -Dd3d11=disabled -Ddirect3d=disabled -Ddrm=enabled -Degl=enabled -Degl-android=di
sabled -Degl-angle=disabled -Degl-angle-lib=disabled -Degl-angle-win32=disabled -Dwin32-threads=disabled -Degl-drm=enabled -Degl-wayland=enabled -Degl-x11=enabled -Dgbm=ena
bled -Dgl=enabled -Dgl-cocoa=disabled -Dgl-dxinterop=disabled -Dgl-win32=disabled -Dgl-x11=enabled -Djpeg=enabled -Dsdl2-video=enabled -Dshaderc=enabled -Dsixel=enabled -Ds
pirv-cross=enabled -Dplain-gl=enabled -Dvdpau=enabled -Dvdpau-gl-x11=enabled -Dvaapi=enabled -Dvaapi-drm=enabled -Dvaapi-wayland=enabled -Dvaapi-x11=enabled -Dvulkan=enable
d -Dwayland=enabled -Dx11=enabled -Dxv=enabled -Dandroid-media-ndk=disabled -Dcuda-hwaccel=disabled -Dcuda-interop=disabled -Dd3d-hwaccel=disabled -Dd3d9-hwaccel=disabled -
Dgl-dxinterop-d3d9=disabled -Dios-gl=disabled -Dvideotoolbox-gl=disabled -Dmacos-cocoa-cb=disabled -Dmacos-media-player=disabled -Dmacos-touchbar=disabled -Dswift-build=dis
abled -Dswift-flags=disabled -Dhtml-build=disabled -Dmanpage-build=enabled -Dpdf-build=disabled -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=enabled -Dbuild
type=plain -Dwrap_mode=nodownload
Python system: Linux
The Meson build system
Version: 1.3.2
Source dir: /tmp/makepkg/mpv-amd-full-git/src/mpv
Build dir: /tmp/makepkg/mpv-amd-full-git/src/build
Build type: native build
Project name: mpv
Project version: 0.37.0-UNKNOWN
-----------
Detecting compiler via: `cc --version` -> 0
stdout:
cc (GCC) 13.2.1 20230801
Copyright (C) 2023 Free Software Foundation, Inc.
Esto es software libre; vea el código para las condiciones de copia.  NO hay
garantía; ni siquiera para MERCANTIBILIDAD o IDONEIDAD PARA UN PROPÓSITO EN
PARTICULAR
-----------
Running command: cc -E -dM -
-----
-----------
Detecting linker via: `cc -Wl,--version -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -
Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto` -> 0
stdout:
GNU ld (GNU Binutils) 2.42.0
Copyright (C) 2024 Free Software Foundation, Inc.
Este programa es software libre; se puede redistribuir bajo los términos de
la Licencia Pública General de GNU versión 3 o (a su elección) una versión
posterior.
Este programa no tiene absolutamente ninguna garantía.
...skipping...
Run-time dependency libarchive found: YES 3.7.2
Run-time dependency libavdevice found: YES 60.4.100
Run-time dependency libbluray found: YES 1.3.4
Library m found: YES
Library rt found: YES
Dependency lua found: NO found 5.4.6 but need: '<5.3.0' ; matched: '>=5.1.0'
Found CMake: /usr/bin/cmake (3.28.3)
Run-time dependency lua found: NO (tried pkgconfig and cmake)
Run-time dependency lua52 found: YES 5.2.4
Run-time dependency rubberband found: YES 3.3.0
Run-time dependency sdl2 found: YES 2.30.0
Run-time dependency uchardet found: YES 0.0.8
Run-time dependency vapoursynth found: YES 65
Run-time dependency vapoursynth-script found: YES 65
Run-time dependency zimg found: YES 3.0.5
Run-time dependency zlib found: YES 1.3.1
Run-time dependency alsa found: YES 1.2.11
Dependency appleframeworks (modules: Foundation, AudioToolbox) skipped: feature audiounit disabled
Header "AudioToolbox/AudioToolbox.h" has symbol "kAudioUnitSubType_RemoteIO" skipped: feature audiounit disabled
Dependency appleframeworks (modules: CoreFoundation, CoreAudio, AudioUnit, AudioToolbox) skipped: feature coreaudio disabled
Run-time dependency jack found: YES 1.9.17
Run-time dependency openal found: YES 1.23.1
Library OpenSLES skipped: feature opensles disabled
Header "sys/soundcard.h" has symbol "SNDCTL_DSP_HALT" skipped: feature oss-audio disabled
Run-time dependency libpipewire-0.3 found: YES 1.0.3
Run-time dependency libpulse found: YES 17.0
Run-time dependency sndio found: YES 1.9.0
Header "audioclient.h" has symbol "IAudioClient" skipped: feature wasapi disabled
Run-time dependency caca found: YES 0.99.beta20
Has header "d3d9.h" skipped: feature direct3d disabled
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency gbm found: YES 24.0.1-arch1.1
Run-time dependency libjpeg found: YES 3.0.2

mpv/meson.build:951:64: ERROR: Feature shaderc cannot be enabled

meson-log.txt

ionenwks commented 8 months ago

Just don't enable it, you only need this on windows now, see commit 60a31a8a284e539043c47a33ff90f3d55aade6a8

Edit: unfortunate that meson does not automatically give the reason here, feel like it could easily do this

kasper93 commented 8 months ago

Something like following, could be added.

.require(features['win32-desktop']), error_message: 'shaderc is only used on win32 platform')