Errors when compiled and tried to execute from Windows
I simply cloned the project and ran zig build from the directory, I received no errors but when I tried to run the resulting executable, I received this error:
Assertion failed: ((HRESULT)(hr) >= 0) && _sapp.d3d11.swap_chain && _sapp.d3d11.device && _sapp.d3d11.device_context, file C:\prj\pacman.zig\src\sokol/sokol_app.h, line 5432
Zig version 0.8.0, Windows version 10.0.18362.30 x86-64
Hmm this means creating the D3D11 device and/or DXGI swapchain failed, it's unrelated to Zig, but a problem with the graphics stack (it's this D3D11CreateDeviceAndSwapChain() call that fails: https://github.com/floooh/sokol/blob/42d757c7a47a7096f15b48d491f06ef54fddb162/sokol_app.h#L5418-L5432).
That's surprising though, may I ask what graphics card / GPU you have and if regular 3D games are working on this machine?
(even better would be a dxdiag dump: Win+R, run 'dxdiag', and in the application that opens, click 'Save All Infomation...', and attach the resulting text file to this issue thread).
Thanks!
Intel Iris Plus (VEN_8086&DEV_8A5A), compatible With DirectX v12. Drivers are latest, downloaded with Intel® Driver & Support Assistant Application GPU (according to AIDA64) is Ice Lake-U GT2 48EU, my PC is a Dell Inspiron 3493 laptop
I don't game much, but I have had no issues with the ones I have tried.
I also tried to build with zig build -Drelease-safe and:
lld-link: warning: ignoring debug info with an invalid version (0) in C:\prj\pacman.zig\zig-cache\o\f20a100ce5ecb736a6b2a0671a02f76c\pacman.obj
lld-link: error: undefined symbol: _tls_index
>>> referenced by C:\prj\pacman.zig\zig-cache\o\f20a100ce5ecb736a6b2a0671a02f76c\pacman.exe.lto.obj:(std.debug.panicExtra)
>>> referenced by C:\prj\pacman.zig\zig-cache\o\f20a100ce5ecb736a6b2a0671a02f76c\pacman.exe.lto.obj:(std.debug.panicExtra)
>>> referenced by C:\prj\pacman.zig\zig-cache\o\f20a100ce5ecb736a6b2a0671a02f76c\pacman.exe.lto.obj:(std.debug.panicExtra)
error: LLDReportedFailure
pacman...The following command exited with error code 1:
C:\proglang\zig-windows-x86_64-0.8.0\zig.exe build-exe C:\prj\pacman.zig\src\pacman.zig -lc C:\prj\pacman.zig\src\sokol\sokol.c -lkernel32 -luser32 -lgdi32 -lole32 -ld3d11 -ldxgi -OReleaseSafe --cache-dir C:\prj\pacman.zig\zig-cache --global-cache-dir C:\Users\Usuario\AppData\Local\zig --name pacman --pkg-begin sokol C:\prj\pacman.zig\src\sokol\sokol.zig --pkg-end --enable-cache
error: the following build command failed with exit code 1:
C:\prj\pacman.zig\zig-cache\o\aec33f6dc3f8f6207e6ba36e69fa8122\build.exe C:\proglang\zig-windows-x86_64-0.8.0\zig.exe C:\prj\pacman.zig C:\prj\pacman.zig\zig-cache C:\Users\Usuario\AppData\Local\zig -Drelease-safe
Forgive me for not attaching dxdiag output, it gives too much unrelated details.