Joshua-Ashton / d9vk

A Direct3D9 to Vulkan layer using the DXVK backend. [Upstreamed to DXVK]
https://github.com/doitsujin/dxvk
zlib License
832 stars 42 forks source link

Failed to compile "fatal error: dxgi1_4.h: No such file or directory #include <dxgi1_4.h>" #51

Closed FreeLikeGNU closed 5 years ago

FreeLikeGNU commented 5 years ago
$ ./package-release.sh master ./build --no-package
The Meson build system
Version: 0.45.1
Source dir: /home/rachael/d9vk
Build dir: /home/rachael/d9vk/build/dxvk-master/build.64
Build type: cross build
Project name: dxvk
Native C compiler: cc (gcc 7.3.0 "cc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0")
Cross C compiler: x86_64-w64-mingw32-gcc (gcc 7.3.0)
Native C++ compiler: c++ (gcc 7.3.0 "c++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0")
Cross C++ compiler: x86_64-w64-mingw32-g++ (gcc 7.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 d3d9 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)
Dependency threads found: YES
Dependency threads found: YES (cached)
Build targets in project: 13
Found ninja-1.8.2 at /usr/bin/ninja
[3/242] Generating version.h with a custom command.
fatal: No names found, cannot describe anything.
[4/242] Compiling C++ object 'src/util/util@sta/com_com_guid.cpp.obj'.
FAILED: src/util/util@sta/com_com_guid.cpp.obj 
x86_64-w64-mingw32-g++  -Isrc/util/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/util@sta/com_com_guid.cpp.obj' -MF 'src/util/util@sta/com_com_guid.cpp.obj.d' -o 'src/util/util@sta/com_com_guid.cpp.obj' -c ../../../src/util/com/com_guid.cpp
In file included from ../../../src/util/com/../../d3d11/d3d11_include.h:3:0,
                 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:28:10: fatal error: dxgi1_4.h: No such file or directory
 #include <dxgi1_4.h>
          ^~~~~~~~~~~
compilation terminated.
[9/242] Compiling C++ object 'src/util/util@sta/config_config.cpp.obj'.
ninja: build stopped: subcommand failed.
Joshua-Ashton commented 5 years ago

You having outdated MinGW headers is not my issue.

Joshua-Ashton commented 5 years ago

Your meson is also massively out of date.

FreeLikeGNU commented 5 years ago

Thanks for the heads up, I found MinGW 6 backport for Ubuntu 18.04 here in case this affects anyone else: mingw-w64 6.0 backport for Ubuntu

Old meson did not block building.

Joshua-Ashton commented 5 years ago

Alternatively, you can use a distro where package maintainers do their job and maintain packages instead of falsely labelling anything 2+ years old stable even if it has major issues fixed in later releases.