Error compling vkd3d

Questions about Wine on Linux
Locked
Thedude707
Newbie
Newbie
Posts: 2
Joined: Sat Aug 08, 2020 7:41 pm

Error compling vkd3d

Post by Thedude707 »

So I'm trying to to compile vkd3d from source and made it to essentially Step 3.

I'm using https://wiki.winehq.org/Vkd3d as my instructions. I made it to the part where I need to create the 32-bit libraries but ran into a snag.

I run

Code: Select all

../vkd3d/configure --build=i686-pc-linux-gnu "CPPFLAGS=-m32" "LDFLAGS=-m32"
and this is the output.

Code: Select all

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking for widl... widl
checking checking whether widl version >= 3.20... yes (5.14)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking if LD -Wl,--version-script works... yes
checking whether the compiler supports -std=c99... yes
checking whether the compiler supports -Wdeclaration-after-statement... yes
checking whether the compiler supports -Wimplicit-fallthrough... yes
checking whether the compiler supports -Wmissing-prototypes... yes
checking whether the compiler supports -Wunused-but-set-parameter... yes
checking whether the compiler supports -Wvla... yes
checking whether the compiler supports -Wpointer-arith... yes
checking whether the compiler supports -Wl,--no-undefined... yes
checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc
checking whether i686-w64-mingw32-gcc works... yes
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether x86_64-w64-mingw32-gcc works... yes
checking for dlfcn.h... (cached) yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking vulkan/vulkan.h usability... yes
checking vulkan/vulkan.h presence... yes
checking for vulkan/vulkan.h... yes
checking vulkan/spirv.h usability... no
checking vulkan/spirv.h presence... no
checking for vulkan/spirv.h... no
checking vulkan/GLSL.std.450.h usability... no
checking vulkan/GLSL.std.450.h presence... no
checking for vulkan/GLSL.std.450.h... no
checking spirv/unified1/spirv.h usability... yes
checking spirv/unified1/spirv.h presence... yes
checking for spirv/unified1/spirv.h... yes
checking spirv/unified1/GLSL.std.450.h usability... yes
checking spirv/unified1/GLSL.std.450.h presence... yes
checking for spirv/unified1/GLSL.std.450.h... yes
checking whether VK_HEADER_VERSION >= 113... yes
checking whether SpvCapabilityDemoteToHelperInvocationEXT is declared... yes
checking whether program_invocation_name is declared... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ceilf in -lm... yes
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for ldd... /usr/bin/ldd
checking for otool... no
checking for readelf... readelf
checking for -lvulkan... not found
checking for -lMoltenVK... not found
configure: error: libvulkan and libMoltenVK not found.
I found MoltenVK but seems to be for macOS, but I think I need the libraries from these two packages. I'd appreciate any help, I'm pulling my hair out! :?
User avatar
DarkShadow44
Level 9
Level 9
Posts: 1338
Joined: Tue Nov 22, 2016 5:39 pm

Re: Error compling vkd3d

Post by DarkShadow44 »

Well, you need to install the vulkan library. What distro are you on?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Error compling vkd3d

Post by Bob Wya »

Thedude707 wrote: Tue Aug 11, 2020 9:13 pm

Code: Select all

...
checking vulkan/spirv.h usability... no
checking vulkan/spirv.h presence... no
checking for vulkan/spirv.h... no
...
@Thedude707

That looks like a problem! See: vkd3d: README ...

You are correct: MoltenVK is only for macOS (/ iOS) and is totally irrelevant to Linux-based platforms.
This a further layer (!!) that translates Vulkan API calls into Metal API calls - due to Apple's "walled garden" approach to cross-platform standards! :roll:

Bob
Locked