ec- / Quake3e

Improved Quake III Arena engine
GNU General Public License v2.0
1.18k stars 154 forks source link

Mac M1 Pro Sys_Error: VKimp_Init() - could not load Vulkan subsystem #183

Open CliveRosfield opened 2 years ago

CliveRosfield commented 2 years ago

I've tried for days now and keep getting this error when launching quake3e with Vulkan. I'm not sure what the issue is as I've tried to install Molten-vk with home-brew and Vulkan sdk, I've tried version 3.216.0 as well as 3.224.1. As for more information, I had also installed SDL2 first without home-brew and got the error about sdl.h when attempting to build with make, so I fixed that by editing the make file and putting "BASE_CFLAGS += -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE" and "CLIENT_LDFLAGS = -F/Library/Frameworks -L/opt/homebrew/lib -lSDL2"..... anyways I don't know a lot about this kind of stuff. I managed to get the OpenGL version to work but I'd prefer the Vulkan one if someone could please help. Sorry if this is messy im not very experienced with this, I just wanna play this awesome quake 3 port on my M1 PRO.......edit: Also I wanted say I ran make using commands mentioned by tomgreen66 inside issue #176 that should've fixed the problem with the recent changes of Vulkan 3.216.0, but I still get the same error about not loading Vulcan subsystem when running the created binaries.

Screenshot 2022-08-31 at 9 11 38 AM
j2robin commented 1 year ago

Did you find a solution? I am about to try the same on My Mac Pro M1 as well.

CliveRosfield commented 1 year ago

No I never figured it out. If it works for you let me know. I'm running Ventura though, so that alone could be the problem im having.

ec- commented 1 year ago

Try with r_fullscreen 0

taoeffect commented 1 year ago

I'm getting this same error, although slightly different output.

Here's what it looks like with r_fullscreen 0 and r_modeFullscreen "-2". Here's my q3config.cfg file: q3config.cfg.zip

-> % ./quake3e
Q3 1.32e macos-aarch64 Sep 21 2022
----- FS_Startup -----
...found 134 cached paks
...loaded in 8 milliseconds
----------------------
21890 files in 140 pk3 files
execing default.cfg
execing q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
...detecting CPU, found ARM aarch64
----- Client Initialization -----
----- Client Initialization Complete -----
----- Initializing Renderer ----
-------------------------------
----- R_Init -----
SDL using driver "cocoa"
Initializing Vulkan display
...setting mode 10: 2048 1536
Couldn't get a visual
...WARNING: could not set the given mode (10)
Setting r_mode 10 failed, falling back on r_mode 3
Initializing Vulkan display
...setting mode 3: 640 480
Couldn't get a visual
...WARNING: could not set the given mode (3)
----- Client Shutdown (Server fatal crashed: VKimp_Init() - could not load Vulkan subsystem) -----
RE_Shutdown( 3 )
-----------------------
Sys_Error: VKimp_Init() - could not load Vulkan subsystem

EDIT: oh and I built the binary with: make USE_VULKAN=1 RENDERER_DEFAULT=vulkan USE_RENDERER_DLOPEN=0 -j 8

taoeffect commented 1 year ago

The good news is the opengl renderer still works (although not opengl2).

Pan7 commented 1 year ago

After getting the error "VKimp_Init() - could not load Vulkan subsystem" and using the start parameter "+set fs_debug 1" it showed me an error about the missing file "vulkan-1.dll". Downloading the runtime component for Vulkan solved the problem and Quake3e runs now with the Vulkan renderer (set cl_renderer "vulkan").

ph1lm commented 1 year ago
export DYLD_LIBRARY_PATH=`brew --prefix molten-vk`/lib
taoeffect commented 8 months ago
export DYLD_LIBRARY_PATH=`brew --prefix molten-vk`/lib

Thanks @ph1lm!! That worked!!