Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CliveRosfield opened this issue Aug 31, 2022 · 8 comments
Open

Comments

@CliveRosfield
Copy link

CliveRosfield commented Aug 31, 2022

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
Copy link

j2robin commented Sep 9, 2022

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

@CliveRosfield
Copy link
Author

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-
Copy link
Owner

ec- commented Sep 13, 2022

Try with r_fullscreen 0

@taoeffect
Copy link

taoeffect commented Sep 21, 2022

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
Copy link

taoeffect commented Sep 21, 2022

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

@Pan7
Copy link

Pan7 commented Feb 16, 2023

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
Copy link

ph1lm commented Sep 8, 2023

export DYLD_LIBRARY_PATH=`brew --prefix molten-vk`/lib

@taoeffect
Copy link

taoeffect commented Dec 28, 2023

export DYLD_LIBRARY_PATH=`brew --prefix molten-vk`/lib

Thanks @ph1lm!! That worked!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants