protonscr

dxgi1_4.h: No such file or directory with mingw64 6.3 and meson 0.50.1

dxvkclosed
doitsujin/dxvk#1088 · opened 2019-06-10 by ghost · updated 2019-06-10 · 1 comments · github
?ghost 2019-06-10 github

Hi, I got the dxgi1_4.h: No such file or directory using mingw64 6.3 and meson 0.5

./package-release.sh master ./pkg-out --no-package
The Meson build system
Version: 0.50.1
Source dir: /home/me/dev/dxvk
Build dir: /home/me/dev/dxvk/pkg-out/dxvk-master/build.64
Build type: cross build
Project name: dxvk
Project version: v1.2.1
Native C compiler: cc (gcc 6.3.0 "cc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516")
Cross C compiler: x86_64-w64-mingw32-gcc (gcc 6.3.0)
Native C++ compiler: c++ (gcc 6.3.0 "c++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516")
Cross C++ compiler: x86_64-w64-mingw32-g++ (gcc 6.3.0)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Build machine cpu family: x86_64
Build machine cpu: x86_64
Checking if "winelib check" compiles: NO
Program x86_64-w64-mingw32-windres found: YES (/usr/bin/x86_64-w64-mingw32-windres)
Library vulkan-1 found: YES
Library d3d11 found: YES
Library dxgi found: YES
Library d3dcompiler_43 found: YES
Library d3dcompiler_47 found: YES
Program glslangValidator found: YES (/usr/bin/glslangValidator)
Cross dependency threads found: YES 
Dependency threads found: YES (cached)
Build targets in project: 11
Found ninja-1.7.2 at /usr/bin/ninja
[2/205] Compiling C++ object 'src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj'.
FAILED: src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj 
x86_64-w64-mingw32-g++ -Isrc/util/ed6d25d@@util@sta -Isrc/util -I../../../src/util -I../../.././include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++1z -O3 -DNOMINMAX -MD -MQ 'src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj' -MF 'src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj.d' -o 'src/util/ed6d25d@@util@sta/com_com_guid.cpp.obj' -c ../../../src/util/com/com_guid.cpp
In file included from ../../../src/util/com/../../d3d11/../dxgi/dxgi_format.h:3:0,
                 from ../../../src/util/com/../../d3d11/../dxgi/dxgi_interfaces.h:5,
                 from ../../../src/util/com/../../d3d11/d3d11_interfaces.h:3,
                 from ../../../src/util/com/com_guid.cpp:3:
../../../src/util/com/../../d3d11/../dxgi/dxgi_include.h:30:21: fatal error: dxgi1_4.h: No such file or directory
 #include <dxgi1_4.h>
                     ^
compilation terminated.
[7/205] Compiling C++ object 'src/util/ed6d25d@@util@sta/config_config.cpp.obj'.
ninja: build stopped: subcommand failed.
Ddoitsujin maintainer 2019-06-10 github

You're confusing the GCC version with the MinGW version (can't blame you, it is confusing); your MinGW version is probably 5.x. MinGW 6.0 ships GCC 8.x or 9.1 and comes with the necessary headers.

You can also try copying the missing headers from a wine build to the include directory, although I'm not sure if that works.

Nothing extracted yet.