Issue with Enabling Shaderc, D3D11, and Vulkan Features in MPV Cross Compilation on Ubuntu using Meson #13346
Unanswered
Windev2024
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
mpv-player/mpv#14389
System Details:
Host OS: Ubuntu 22.04
Target OS: Windows (cross-compiling)
Cross-Compiler: MinGW (x86_64-w64-mingw32)
Description:
I am following the steps outlined in the MPV documentation for cross-compiling on Windows: MPV Compilation Guide. I successfully built 32-bit and 64-bit versions of MPV, and the standalone MPV is able to play. However, I need to add full-fledged features, and I am encountering issues enabling certain features.
Meson Setup Command:
meson setup --wrap-mode=forcefallback -Ddefault_library=static -Dprefer_static=true \ -Dc_link_args='-static' -Dcpp_link_args='-static' \ -Dffmpeg:default_library=static -Dffmpeg:tests=disabled -Dffmpeg:programs=disabled -Dffmpeg:sdl2=disabled -Dffmpeg:vulkan=auto \ -Dlcms2:fastfloat=true -Dlcms2:jpeg=disabled -Dlcms2:tiff=disabled \ -Dlibusb:tests=false -Dlibusb:examples=false -Dlibplacebo:demos=false \ -Dlibplacebo:lcms=enabled -Dlibplacebo:shaderc=enabled -Dlibplacebo:d3d11=enabled \ -Dvulkan=enabled -Dd3d11=enabled -Dxxhash:inline-all=true -Dxxhash:cli=false \ -Ddrm=disabled -Dlibarchive=disabled -Drubberband=disabled -Dwayland=disabled \ -Dx11=disabled -Djavascript=enabled \ --cross-file /home/x86_64-w64-mingw32.txt build
Errors:
Run-time dependency shaderc found: NO (tried pkgconfig, pkgconfig, pkgconfig and system)
Run-time dependency libsixel found: NO (tried pkgconfig and cmake)
Run-time dependency spirv-cross-c-shared found: NO (tried pkgconfig and cmake)
meson.build:1005:28: ERROR: Feature d3d11 cannot be enabled: Either is not a win32 desktop or shaderc nor spirv-cross were found!
meson.build:1285:9: ERROR: Dependency lookup for vulkan with method 'pkgconfig' failed: Pkg-config for machine host machine not found. Giving up.
subprojects/libplacebo/src/glsl/meson.build:2:10: ERROR: Dependency lookup for shaderc with method 'pkgconfig' failed: Pkg-config for machine host machine not found. Giving up.
subprojects/libplacebo/src/d3d11/meson.build:8:2: ERROR: Dependency lookup for spirv-cross-c-shared with method 'pkgconfig' failed: Pkg-config for machine host machine not found. Giving up.
Cross File:
[binaries]
c = 'i686-w64-mingw32-gcc'
cpp = i686-w64-mingw32-g++'
ar = i6864-w64-mingw32-ar'
strip = i686-w64-mingw32-strip'
windres = 'i686-w64-mingw32-windres'
dlltool ='i686-w64-mingw32-dlltool'
[host_machine]
system = 'windows'
cpu_family = 'x86'
cpu = 'i686'
endian = 'little'
Beta Was this translation helpful? Give feedback.
All reactions