Closed hydra3333 closed 4 years ago
however it appears to be here :
$ ls -al ./_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/vulkan/registry/
total 3556
drwxr-xr-x 3 u u 4096 May 29 19:46 .
drwxrwxrwx 3 u u 4096 May 29 18:05 ..
-rw-r--r-- 1 u u 18596 May 29 19:46 cgenerator.py
-rw-r--r-- 1 u u 11567 May 29 19:46 conventions.py
-rw-r--r-- 1 u u 37029 May 29 19:46 generator.py
-rw-r--r-- 1 u u 24418 May 29 19:46 genvk.py
-rw-r--r-- 1 u u 63496 May 29 19:46 reg.py
drwxr-xr-x 2 u u 4096 May 29 19:46 spec_tools
-rw-r--r-- 1 u u 2214590 May 29 19:46 validusage.json
-rw-r--r-- 1 u u 9763 May 29 19:46 vkconventions.py
-rw-r--r-- 1 u u 1236908 May 29 19:46 vk.xml
which I suppose at a guess is equivalent to /usr/share when in mingw64 (I'm only a dumb user of mingw64)
and appears to be installed there by building vulkan_headers from github in mingw64.
Pushed https://github.com/haasn/libplacebo/commit/c747430c38677982ceb97b80ceaeca454d4e4111, which may fix your issue (and if it doesn't, should at least more clearly communicate what must be done to fix it on your end)
Thank you. Nearly works. The file exists where pointed to with -D however an error occurs:
[4/37] Generating vulkan boilerplate with a custom command.
FAILED: src/utils_gen.c
/usr/bin/python3 ../src/vulkan/utils_gen.py /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/vulkan/registry/vk.xml src/utils_gen.c
Traceback (most recent call last):
File "../src/vulkan/utils_gen.py", line 120, in <module>
if not xmlfile or xmfile == '':
NameError: name 'xmfile' is not defined
Perhaps spelling ? xmfile
Log:
[01:40:53][INFO] Meson'ing 'libplacebo' with: --prefix=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 --libdir=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib --default-library=static --buildtype=plain --backend=ninja --buildtype=release -Dvulkan=enabled -Dvulkan-registry=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/vulkan/registry/vk.xml -Dlcms=enabled -Dtests=false -Dbench=false --cross-file=/home/u/Desktop/_working/workdir/meson_environment.txt ./ ..
[01:40:53][DEBUG] meson --prefix=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 --libdir=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib --default-library=static --buildtype=plain --backend=ninja --buildtype=release -Dvulkan=enabled -Dvulkan-registry=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/vulkan/registry/vk.xml -Dlcms=enabled -Dtests=false -Dbench=false --cross-file=/home/u/Desktop/_working/workdir/meson_environment.txt ./ ..
[01:40:53][DEBUG] Running 'meson --prefix=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 --libdir=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib --default-library=static --buildtype=plain --backend=ninja --buildtype=release -Dvulkan=enabled -Dvulkan-registry=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/vulkan/registry/vk.xml -Dlcms=enabled -Dtests=false -Dbench=false --cross-file=/home/u/Desktop/_working/workdir/meson_environment.txt ./ ..' in '/home/u/Desktop/_working/workdir/x86_64/libplacebo_git/build'
The Meson build system
Version: 0.53.2
Source dir: /home/u/Desktop/_working/workdir/x86_64/libplacebo_git
Build dir: /home/u/Desktop/_working/workdir/x86_64/libplacebo_git/build
Build type: cross build
Project name: libplacebo
Project version: 2.72.0
Appending CFLAGS from environment: ' -O3 -fstack-protector-all -D_FORTIFY_SOURCE=2 '
Appending LDFLAGS from environment: ['-O3', '-fstack-protector-all', '-D_FORTIFY_SOURCE=2']
Appending CPPFLAGS from environment: ' -O3 -fstack-protector-all -D_FORTIFY_SOURCE=2 '
C compiler for the build machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the build machine: cc ld.bfd 2.30
Appending CXXFLAGS from environment: ' -O3 -fstack-protector-all -D_FORTIFY_SOURCE=2 '
Appending LDFLAGS from environment: ['-O3', '-fstack-protector-all', '-D_FORTIFY_SOURCE=2']
Appending CPPFLAGS from environment: ' -O3 -fstack-protector-all -D_FORTIFY_SOURCE=2 '
C++ compiler for the build machine: c++ (gcc 7.5.0 "c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C++ linker for the build machine: c++ ld.bfd 2.30
C compiler for the host machine: x86_64-w64-mingw32-gcc (gcc 11.0.0 "x86_64-w64-mingw32-gcc (GCC) 11.0.0 20200517 (experimental)")
C linker for the host machine: x86_64-w64-mingw32-gcc ld.bfd 2.34
C++ compiler for the host machine: x86_64-w64-mingw32-g++ (gcc 11.0.0 "x86_64-w64-mingw32-g++ (GCC) 11.0.0 20200517 (experimental)")
C++ linker for the host machine: x86_64-w64-mingw32-g++ ld.bfd 2.34
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Program git found: YES (/usr/bin/git)
Compiler for C supports arguments -Wincompatible-pointer-types: YES
Compiler for C supports link arguments -Wl,--exclude-libs=ALL: YES
Program python3 found: YES (/usr/bin/python3)
Library m found: YES
|Executing subproject xtalloc method meson
|
|Project name: xtalloc
|Project version: undefined
|C compiler for the build machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
|C linker for the build machine: cc ld.bfd 2.30
|C compiler for the host machine: x86_64-w64-mingw32-gcc (gcc 11.0.0 "x86_64-w64-mingw32-gcc (GCC) 11.0.0 20200517 (experimental)")
|C linker for the host machine: x86_64-w64-mingw32-gcc ld.bfd 2.34
|Run-time dependency threads found: YES
|Build targets in project: 1
|Subproject xtalloc finished.
|Executing subproject bstr method meson
|
|Project name: bstr
|Project version: undefined
|C compiler for the build machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
|C linker for the build machine: cc ld.bfd 2.30
|C compiler for the host machine: x86_64-w64-mingw32-gcc (gcc 11.0.0 "x86_64-w64-mingw32-gcc (GCC) 11.0.0 20200517 (experimental)")
|C linker for the host machine: x86_64-w64-mingw32-gcc ld.bfd 2.34
|Build targets in project: 2
|Subproject bstr finished.
Found pkg-config: /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/pkg-config (0.29.2)
Run-time dependency vulkan found: YES 1.2.141
Found CMake: /usr/bin/cmake (3.16.5)
Run-time dependency epoxy found: NO (tried pkgconfig and cmake)
Library shaderc_shared found: NO
Library shaderc_combined found: YES
Header <shaderc/shaderc.h> has symbol "shaderc_optimization_level_performance" with dependency -lshaderc_combined: YES
Message: Skipping `glslang` because `shaderc` is available
Run-time dependency lcms2 found: YES 2.10
Configuring config.h using configuration
Configuring config_internal.h using configuration
Dependency threads found: YES unknown (cached)
Build targets in project: 4
libplacebo 2.72.0
Subprojects
bstr: YES
xtalloc: YES
Found ninja-1.8.2 at /usr/bin/ninja
[01:40:54][INFO][NINJA] Building 'libplacebo' with 'build_options': in /home/u/Desktop/_working/workdir/x86_64/libplacebo_git/build
[01:40:54][DEBUG] ninja -j 6
[01:40:54][DEBUG] Running 'ninja -j 6 ' in '/home/u/Desktop/_working/workdir/x86_64/libplacebo_git/build'
[1/37] Compiling C object 'subprojects/xtalloc/f0d261a@@xtalloc@sta/xtalloc.c.obj'.
[2/37] Compiling C object 'subprojects/bstr/0ab0a38@@bstr@sta/siphash.c.obj'.
[3/37] Compiling C object 'subprojects/xtalloc/f0d261a@@xtalloc@sta/ta_utils.c.obj'.
[4/37] Generating vulkan boilerplate with a custom command.
FAILED: src/utils_gen.c
/usr/bin/python3 ../src/vulkan/utils_gen.py /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/vulkan/registry/vk.xml src/utils_gen.c
Traceback (most recent call last):
File "../src/vulkan/utils_gen.py", line 120, in <module>
if not xmlfile or xmfile == '':
NameError: name 'xmfile' is not defined
[5/37] Compiling C object 'subprojects/bstr/0ab0a38@@bstr@sta/format.c.obj'.
[6/37] Compiling C object 'subprojects/xtalloc/f0d261a@@xtalloc@sta/ta.c.obj'.
[7/37] Compiling C object 'subprojects/bstr/0ab0a38@@bstr@sta/bstr.c.obj'.
[8/37] Compiling C object 'src/25a6634@@placebo@sta/colorspace.c.obj'.
[9/37] Compiling C object 'src/25a6634@@placebo@sta/common.c.obj'.
ninja: build stopped: subcommand failed.
[01:40:54][ERROR] Error [1] running process: 'ninja -j 6 ' in '/home/u/Desktop/_working/workdir/x86_64/libplacebo_git/build'
~/Desktop/_working$ ls -al /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/vulkan/registry/vk.xml
-rw-r--r-- 1 u u 1236908 May 29 20:12 /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/vulkan/registry/vk.xml
Hello.
It looks like commit dca1913c6ac81c455800868e8c5219626351a959 broke cross-compiling (mingw64 under ubuntu 18.04.3 for a target x86_64)
The commit just prior, 65e5e17edffaf0b9b1adcd9ba90637a27641e59b, cross-compiles fine.
Perhaps this ? :- https://github.com/haasn/libplacebo/commit/dca1913c6ac81c455800868e8c5219626351a959#diff-f2ff94c68cbdd606743b339aa68a4164
Log: