Skip to content

Unable to build and run vulkan window MacOS #2069

@MaeBrooks

Description

@MaeBrooks

Steps to Reproduce and Observed Behavior

I would like to be able to work on the Vulkan migration steps. But am running into issues where I can't get to opening the vulkan window

When running zig build run with

pub var vulkanTestingWindow: bool = true;

Results in this output:

zig build run 
[info]: Starting game client with version 0.1.0-dev
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Couldn't rename thread: Unsupported
[error]: Vulkan is not supported. Please update your drivers if you want to keep playing Cubyz in the future.
[error]: GLFW Error(65543): Requested OpenGL version 4.6, got version 2.1
thread 37502695 panic: Failed to create GLFW window

I suspect that the issue is due to this line in build.zig

exe.addRPath(.{.cwd_relative = "/usr/local/GL/lib"});

Of which, the /usr/local/GL/lib path doesnt exist for me.

Is there a library that is expected to be installed here?

If so. I would be happy to install and test - then add some error handling to the build script for macos, with instructions for users to install xyz library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething isn't working in the intended way

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions