From 844249ca6ed11b70e60f55597d71fd337306964f Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 12 Feb 2018 01:07:37 -0600 Subject: [PATCH] Improve documentation for building on Debian (#66) * setup_dxvk.sh: Fix typo * [general] README: Document required meson version Meson 0.43 introduced support for @BASENAME@ in the generator argument list, so document that we need at least that. * [general] README: Document mingw-w64 threading support requirement --- README.md | 15 +++++++++++++-- wine_utils/setup_dxvk.sh.in | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 49987b50..897432d1 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ For binary releases, see the [releases](https://github.com/doitsujin/dxvk/releas ### Requirements: - [wine-staging](https://wine-staging.com/) for Vulkan support -- [Meson](http://mesonbuild.com/) build system -- [MinGW64](http://mingw-w64.org/) compiler and headers +- [Meson](http://mesonbuild.com/) build system (at least 0.43) +- [MinGW64](http://mingw-w64.org/) compiler and headers (requires threading support) - [glslang](https://github.com/KhronosGroup/glslang) front end and validator ### Building DLLs @@ -63,3 +63,14 @@ In addition to the DLLs, the following standalone programs are included in the p - `dxbc-compiler`: Compiles a DXBC shader to SPIR-V. - `dxbc-disasm`: Disassembles a DXBC shader. Requires native `d3dcompiler_47.dll`. - `hlsl-compiler`: Compiles a HLSL shader to DXBC. Requires native `d3dcompiler_47.dll`. + +## Troubleshooting +DXVK requires threading support from your mingw-w64 build environment. If you +are missing this, you may see "error: 'mutex' is not a member of 'std'". On +Debian, this can usually be resolved by using the posix alternate, which +supports threading. For example, choose the posix alternate from these +commands (use i686 for 32-bit): +``` +update-alternatives --config x86_64-w64-mingw32-gcc +update-alternatives --config x86_64-w64-mingw32-g++ +``` diff --git a/wine_utils/setup_dxvk.sh.in b/wine_utils/setup_dxvk.sh.in index 4b62594a..bd618a7b 100755 --- a/wine_utils/setup_dxvk.sh.in +++ b/wine_utils/setup_dxvk.sh.in @@ -16,7 +16,7 @@ else wine=wine fi -quite=false +quiet=false assume= function ask {