Interrupt / delve-framework

Delve is a framework for writing Games in Zig and Lua. For those who value being cross platform and keeping things simple.
MIT License
203 stars 11 forks source link

panic: unable to find artifact 'lua' #22

Closed nitanmarcel closed 4 months ago

nitanmarcel commented 4 months ago
thread 1492 panic: unable to find artifact 'lua'
C:\Users\nitan\Documents\zig\zig-windows-x86_64-0.13.0\lib\std\Build.zig:1851:18: 0x8bd8c2 in artifact (build.exe.obj)
            panic("unable to find artifact '{s}'", .{name});
                 ^
C:\Users\nitan\AppData\Local\zig\p\12204668a9f413c2177aba196064336eb129a10420ba6cb16314076318a887bfe9a4\build.zig:62:24: 0x96216e in build (build.exe.obj)
    dep_ziglua.artifact("lua").step.dependOn(&dep_sokol.artifact("sokol_clib").step);
                       ^
C:\Users\nitan\Documents\zig\zig-windows-x86_64-0.13.0\lib\std\Build.zig:2117:43: 0x919bd6 in runBuild__anon_15832 (build.exe.obj)
        .ErrorUnion => try build_zig.build(b),
                                          ^
C:\Users\nitan\Documents\zig\zig-windows-x86_64-0.13.0\lib\std\Build.zig:2097:29: 0x8e8288 in dependencyInner__anon_14609 (build.exe.obj)
        sub_builder.runBuild(bz) catch @panic("unhandled error");
                            ^
C:\Users\nitan\Documents\zig\zig-windows-x86_64-0.13.0\lib\std\Build.zig:1954:35: 0x8bcc15 in dependency__anon_13238 (build.exe.obj)
            return dependencyInner(b, name, pkg.build_root, if (@hasDecl(pkg, "build_zig")) pkg.build_zig else null, pkg_hash, pkg.deps, args);
                                  ^
C:\Users\nitan\Documents\Projects\VoxelGame\build.zig:34:31: 0x874df7 in build (build.exe.obj)
    const delve = b.dependency("delve", .{
                              ^
C:\Users\nitan\Documents\zig\zig-windows-x86_64-0.13.0\lib\std\Build.zig:2116:33: 0x85d955 in runBuild__anon_8952 (build.exe.obj)
        .Void => build_zig.build(b),
                                ^
C:\Users\nitan\Documents\zig\zig-windows-x86_64-0.13.0\lib\compiler\build_runner.zig:301:29: 0x858cec in main (build.exe.obj)
        try builder.runBuild(root);
                            ^
C:\Users\nitan\Documents\zig\zig-windows-x86_64-0.13.0\lib\std\start.zig:363:53: 0x85fb8c in WinStartup (build.exe.obj)
    std.os.windows.ntdll.RtlExitUserProcess(callMain());
                                                    ^
???:?:?: 0x7ff88749257c in ??? (KERNEL32.DLL)
???:?:?: 0x7ff8877caf27 in ??? (ntdll.dll)
error: unable to read results of configure phase from 'C:\Users\nitan\Documents\Projects\VoxelGame\.zig-cache\tmp\0a0ea021eed5ecd1': FileNotFound
PS C:\Users\nitan\Documents\Projects\VoxelGame>
William-BnCRocks commented 4 months ago

In case you are still running into this issue or devs are trying to reproduce.

This happened to me as well on first build. I made a different zig project and added the ziglua as a dependency and built that. Then I was able to build my project with the delve framework after that just fine.

Not the best experience, but it did let me move past this error.

Interrupt commented 4 months ago

Oh weird, let me look into this some.