Avokadoen / zig_vulkan

Toying with vulkan and zig
45 stars 1 forks source link

Couldn't run -- file not found #170

Closed jivvy closed 1 year ago

jivvy commented 1 year ago

Followed build instructions in README

Got the following error:

/mnt/data-drive/code/downloads/brickmap_raytrace/build.zig:10:23: error: unable to load '/mnt/data-drive/code/downloads/brickmap_raytrace/deps/vulkan-zig/generator/index.zig': FileNotFound
const vkgen = @import("deps/vulkan-zig/generator/index.zig");
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/data-drive/code/downloads/brickmap_raytrace/build.zig:182:19: error: no field or member function named 'standardOptimizeOption' in 'build.Builder'
    const mode = b.standardOptimizeOption(.{});
                 ~^~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/zig/std/build.zig:31:21: note: struct declared here
pub const Builder = struct {
                    ^~~~~~
referenced by:
    runBuild: /usr/lib/zig/build_runner.zig:232:22
    usage__anon_5137: /usr/lib/zig/build_runner.zig:242:13
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
Avokadoen commented 1 year ago

Thanks for filing the ticked! I'll fix this later today!

jivvy commented 1 year ago

Not sure if this helps, but the deps/vulkan-zig folder is empty except for a .git file, and running

git submodule update --init --recursive

Gives the error

fatal: remote error: upload-pack: not our ref 915548c8694c1b4a96abd5a8729d0e777582d077
fatal: Fetched in submodule path 'deps/mach-glfw/upstream', but it did not contain 915548c8694c1b4a96abd5a8729d0e777582d077. Direct fetching of that commit failed.
fatal: Failed to recurse into submodule path 'deps/mach-glfw'
Avokadoen commented 1 year ago

Should be an easy fix, just forgot yesterday to take a look when I got home. I put a reminder on this time so expect a fix soon :+1: Again, thanks for the report!

Avokadoen commented 1 year ago

Resolved by d54b1c3