Code Monkey home page Code Monkey logo

cosmic's People

Contributors

fubark avatar marler8997 avatar yurovant avatar zaneli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cosmic's Issues

Support Vulkan on Windows

The graphics API should work. This work is mostly making sure SDL is able to grab the context and the vk func are loaded at runtime.

build error: redeclaration of succcess_cb

zig build gen -Darg="api-js" -Darg="runtime/snapshots/gen_api.js" -Dfetch -Dtarget=native-linux-musl
/theodata/projects/theos-test/cosmic/runtime/work_queue.zig:297:16: error: redeclaration of function parameter 'success_cb'
            fn success_cb(_ctx_ptr: *anyopaque, ptr: *anyopaque) void {
               ^~~~~~~~~~
/theodata/projects/theos-test/cosmic/runtime/work_queue.zig:292:18: note: previous declaration here
        comptime success_cb: fn (std.meta.Child(@TypeOf(ctx_ptr)), TaskOutput(TaskImpl)) void,
                 ^~~~~~~~~~
error: gen...

Text_demo 'Load Font' crash

If you try to load the font 'NotoColorEmoji.ttf' from the examples/assets directory (whether copied to the base directory or symlinked) then the example crashes with:

debug(window_gl): 0.0: OpenGL: 4.6 (Core Profile) Mesa 22.0.4
debug(graphics_gl): 0.0: max frag textures: 32, max total textures: 192
debug(window_gl): 0.8: max samples: 8
debug(window_gl): 0.9: msaa framebuffer created with 8 samples
thread 378432 panic: expected color bitmap for glyph: 0
/home/wilsonk/Downloads/zig/build/lib/zig/std/debug.zig:290:22: 0x329ed0 in std.debug.panicExtra (text_demo)
    std.builtin.panic(msg, trace);
                     ^
/home/wilsonk/Downloads/zig/build/lib/zig/std/debug.zig:266:15: 0x3201fa in std.debug.panic (text_demo)
    panicExtra(null, format, args);
              ^
/home/wilsonk/Downloads/cosmic/stdx/debug.zig:25:20: 0x312493 in .ui.graphics.stdx.debug.panicFmt (text_demo)
    std.debug.panic(format, args);
                   ^
/home/wilsonk/Downloads/cosmic/graphics/src/backend/gl/font_renderer.zig:252:22: 0x302f5e in .ui.graphics.backend.gl.font_renderer.generateColorBitmapGlyph (text_demo)
        stdx.panicFmt("expected color bitmap for glyph: {}", .{glyph_id});
                     ^
/home/wilsonk/Downloads/cosmic/graphics/src/backend/gl/font_renderer.zig:58:40: 0x2f3068 in .ui.graphics.backend.gl.font_renderer.generateGlyph (text_demo)
        return generateColorBitmapGlyph(g, ot_font, render_font, glyph_id);
                                       ^
/home/wilsonk/Downloads/cosmic/graphics/src/backend/gl/font_renderer.zig:21:36: 0x2e8cb2 in .ui.graphics.backend.gl.font_renderer.getOrLoadMissingGlyph (text_demo)
        const glyph = generateGlyph(g, font, ot_font, render_font, 0);

Which I suppose means that the NotoColorEmoji.ttf font doesn't have a color bitmap? Anyways, I was wondering if this should/could fail gracefully and produce a warning about the font instead of a crash? I tried a few other fonts and they work fine.

Sync and Native async network IO

Currently Cosmic is optimized for doing client side HTTP requests but there is no facility to do raw TCP/UDP network connections. Something I like in deno is how http servers are simply secure tcp servers that know how to accept http requests. This could for example let you just host a secure server for messaging in your custom protocol. It's worth seeing how they designed their networking API. This will also rely on libuv for async events.

Text_demo 'Text Wrap' doesn't seem to work

Perhaps this is just on my machine (Arch linux distro), but the 'Text Wrap' toggle doesn't seem to actually wrap the example sentences in the demo window. The scroll bar across the bottom of the editor window appears if you make the font size larger but the sentence doesn't wrap.

There is also no wrap if you just start typing on application startup and type off the edge of the editor window.

Scalable Text Rendering

Currently Cosmic renders glyphs into bitmaps and does some scaling so it doesn't upload too much data for dynamic text sizes. A better approach is to render using MSDF for larger font sizes. Slug is better but its algorithm is patented. Is there something similar?

Also planned is using native platform libs for rendering fonts at smaller sizes. CoreText on macOS and Direct2D on Windows.

Text shaping is mostly non existent for non latin text. It's not a huge priority as of now.

Build error. Multiple errors "local variable is never mutated" and other errors

Got multiple errors during build with command:

zig build run -Dpath="graphics/examples/demo.zig" -Dgraphics -Doptimize=ReleaseSafe

Errors that I got:

/cosmic/build.zig:419:9: error: local variable is never mutated
    var build_cosmic = b.addLog("", .{});
        ^~~~~~~~~~~~
/cosmic/lib/mimalloc/lib.zig:27:9: error: local variable is never mutated
    var c_flags = std.ArrayList([]const u8).init(b.allocator);
        ^~~~~~~
/cosmic/GitRepoStep.zig:50:9: error: local variable is never mutated
    var result = b.allocator.create(GitRepoStep) catch @panic("memory");
        ^~~~~~

After changing to const as compiler suggests, I got:

/cosmic/build.zig:235:23: error: no field or member function named 'addLog' in 'Build'
        const step = b.addLog("", .{});
                     ~^~~~~~~
/cosmic/GitRepoStep.zig:53:31: error: expected 1 argument(s), found 4
        .step = std.build.Step.init(.custom, "clone a git repository", b.allocator, make),
                ~~~~~~~~~~~~~~^~~~~
/cosmic/lib/clyon/lib.zig:33:35: error: expected 1 argument(s), found 4
            .step = std.build.Step.init(.custom, builder.fmt("lyon", .{}), builder.allocator, make),
                    ~~~~~~~~~~~~~~^~~~~

Zig version: 0.12.0-dev.1828+225fe6ddb
Got the same issues with previous zig build, from week ago (although I don't remember the exact version, 0.12.0-dev.1824... i think)

Easier development with Vulkan on macOS

I think we could just link the moltenvk fat static lib for both x64 and arm64. This would remove the dependency of installing MoltenVK through the normal installers.

Build error

Zig version:

~/t/cosmic (master)> zig version                                                                                                                                                                                   (base) 
0.11.0-dev.1987+a2c6ecd6d

error:

~/t/cosmic (master)> zig build run -Dpath="graphics/examples/demo.zig" -Dgraphics -Drelease-safe
/home/user/temp/cosmic/lib/openssl/lib.zig:23:18: error: member function expected 1 argument(s), found 2
    const lib = b.addStaticLibrary("crypto", null);
                ~^~~~~~~~~~~~~~~~~
/snap/zig/6873/lib/std/Build.zig:503:5: note: function declared here
pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *CompileStep {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    build: /home/user/temp/cosmic/build.zig:256:31
    runBuild__anon_6375: /snap/zig/6873/lib/std/Build.zig:1584:37
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

/home/user/temp/cosmic/GitRepoStep.zig:60:14: error: expected type '[]const u8', found 'Build.Cache.Directory'
            b.build_root,
            ~^~~~~~~~~~~
/snap/zig/6873/lib/std/Build/Cache.zig:5:23: note: struct declared here
pub const Directory = struct {
                      ^~~~~~
/home/user/temp/cosmic/build.zig:609:34: error: no field or member function named 'addTestExe' in 'Build'
        const step = self.builder.addTestExe("main_test", "./test/main_test.zig");
                     ~~~~~~~~~~~~^~~~~~~~~~~
/snap/zig/6873/lib/std/Build.zig:1:1: note: struct declared here
const std = @import("std.zig");
^~~~~
/home/user/temp/cosmic/build.zig:591:43: error: expected type 'Build.TestOptions', found '[]const u8'
        const step = self.builder.addTest(path);
                                          ^~~~
/snap/zig/6873/lib/std/Build.zig:515:25: note: struct declared here
pub const TestOptions = struct {
                        ^~~~~~
/snap/zig/6873/lib/std/Build.zig:524:36: note: parameter type declared here
pub fn addTest(b: *Build, options: TestOptions) *CompileStep {
                                   ^~~~~~~~~~~
/home/user/temp/cosmic/lib/jolt/lib.zig:24:18: error: member function expected 1 argument(s), found 2
    const exe = b.addExecutable("test-jolt", null);
                ~^~~~~~~~~~~~~~
/snap/zig/6873/lib/std/Build.zig:446:5: note: function declared here
pub fn addExecutable(b: *Build, options: ExecutableOptions) *CompileStep {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/temp/cosmic/build.zig:561:33: error: member function expected 1 argument(s), found 2
        const exe = self.builder.addExecutable(name, self.path);
                    ~~~~~~~~~~~~^~~~~~~~~~~~~~
/snap/zig/6873/lib/std/Build.zig:446:5: note: function declared here
pub fn addExecutable(b: *Build, options: ExecutableOptions) *CompileStep {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/temp/cosmic/build.zig:435:34: error: member function expected 1 argument(s), found 3
        const step = self.builder.addSharedLibrary(name, self.path, .unversioned);
                     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/snap/zig/6873/lib/std/Build.zig:483:5: note: function declared here
pub fn addSharedLibrary(b: *Build, options: SharedLibraryOptions) *CompileStep {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/temp/cosmic/GitRepoStep.zig:186:24: error: expected type '?[]const u8', found 'Build.Cache.Directory'
    child.cwd = builder.build_root;
                ~~~~~~~^~~~~~~~~~~
/snap/zig/6873/lib/std/Build/Cache.zig:5:23: note: struct declared here
pub const Directory = struct {

(had to fix standardReleaseOptions not existing too)

WASM Web Target

For the WASM Web target, Cosmic should provide a backend that compiles to WASM/WebGL2.

segfault

appending -fstage1 allows the compile but without it, renderer.zig tries to call Mat4 enum from math.zig which has none.

[tommhnsn@thomas-galagopro cosmic]$ zig build run -Dpath="graphics/examples/demo.zig" -Dgraphics -Drelease-safe -fstage1
info: 
[tommhnsn@thomas-galagopro cosmic]$ zig build run -Dpath="graphics/examples/demo.zig" -Dgraphics -Drelease-safe
/home/tommhnsn/cosmic/graphics/src/backend/gl/renderer.zig:34:26: error: struct 'math.math.math.math' has no member named 'Mat4'
    mats_buf: []stdx.math.Mat4,
                ~~~~~~~~~^~~~~
/home/tommhnsn/cosmic/stdx/math/math.zig:1:1: note: struct declared here
const std = @import("std");
^~~~~
error: demo...
error: The following command exited with error code 1:
/usr/lib/zig/zig build-exe /home/tommhnsn/cosmic/graphics/examples/demo.zig -lc -lGL -lvulkan /home/tommhnsn/cosmic/zig-cache/o/30e9c3531438e6773d7685d866040ce7/libsdl2.a /home/tommhnsn/cosmic/zig-cache/o/7176ec8d2c5bdca7160634147b17fb36/libstbi.a /home/tommhnsn/cosmic/zig-cache/o/a68b3467268a26919f26ce5e1652a1ed/libstb_perlin.a /home/tommhnsn/cosmic/zig-cache/o/d59153af06c9d37ecb229d671a5bff8f/libfreetype2.a /home/tommhnsn/cosmic/zig-cache/o/a602f70d9a483c9608e44b0d1893b766/libcgltf.a -lc -lc -lc -lc -lc --strip -OReleaseSafe --cache-dir /home/tommhnsn/cosmic/zig-cache --global-cache-dir /home/tommhnsn/.cache/zig --name demo --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/7W_INEcMqIlxs7vtv9fmgj1a0h0UvNmxWqnlWWFjMCKrxzzgXYm57Ud_E24Ora2Y --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-begin curl /home/tommhnsn/cosmic/lib/curl/curl.zig --pkg-end --pkg-begin uv /home/tommhnsn/cosmic/lib/uv/uv.zig --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/RVYh9bkAcdKpXRTMrfHw2LZdAusurzh0CHJwRvRQjqudJSrOsOsLLqVMDTsU1dhD --pkg-end --pkg-end --pkg-begin platform /home/tommhnsn/cosmic/platform/platform.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-begin gl /home/tommhnsn/cosmic/lib/gl/gl.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin vk /home/tommhnsn/cosmic/lib/vk/vk.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/9x6yO2_hD2DihcfD9FT2X_rbcn5Snehkd2I_n7LB8ziBen3yNXnx4Ii_m8WDw7UJ --pkg-end --pkg-end --pkg-begin curl /home/tommhnsn/cosmic/lib/curl/curl.zig --pkg-end --pkg-begin uv /home/tommhnsn/cosmic/lib/uv/uv.zig --pkg-end --pkg-begin h2o /home/tommhnsn/cosmic/lib/h2o/h2o.zig --pkg-begin uv /home/tommhnsn/cosmic/lib/uv/uv.zig --pkg-end --pkg-begin openssl /home/tommhnsn/cosmic/lib/openssl/openssl.zig --pkg-end --pkg-end --pkg-begin openssl /home/tommhnsn/cosmic/lib/openssl/openssl.zig --pkg-end --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stbtt /home/tommhnsn/cosmic/lib/stb/stbtt.zig --pkg-end --pkg-begin stbi /home/tommhnsn/cosmic/lib/stb/stbi.zig --pkg-end --pkg-begin stb_perlin /home/tommhnsn/cosmic/lib/stb/stb_perlin.zig --pkg-end --pkg-begin freetype /home/tommhnsn/cosmic/lib/freetype2/freetype.zig --pkg-end --pkg-begin gl /home/tommhnsn/cosmic/lib/gl/gl.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin vk /home/tommhnsn/cosmic/lib/vk/vk.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-end --pkg-begin jolt /home/tommhnsn/cosmic/lib/jolt/jolt.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin glslang /home/tommhnsn/cosmic/lib/glslang/glslang.zig --pkg-end --pkg-begin miniaudio /home/tommhnsn/cosmic/lib/miniaudio/miniaudio.zig --pkg-end --pkg-begin lyon /home/tommhnsn/cosmic/lib/clyon/lyon_dummy.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin tess2 /home/tommhnsn/cosmic/lib/tess2/tess2_dummy.zig --pkg-end --pkg-begin ui /home/tommhnsn/cosmic/ui/src/ui.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-begin graphics /home/tommhnsn/cosmic/graphics/src/graphics.zig --pkg-begin gl /home/tommhnsn/cosmic/lib/gl/gl.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin vk /home/tommhnsn/cosmic/lib/vk/vk.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-begin curl /home/tommhnsn/cosmic/lib/curl/curl.zig --pkg-end --pkg-begin uv /home/tommhnsn/cosmic/lib/uv/uv.zig --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/RVYh9bkAcdKpXRTMrfHw2LZdAusurzh0CHJwRvRQjqudJSrOsOsLLqVMDTsU1dhD --pkg-end --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/WsFYU3ILObOAXgBPsdVGSLQ16Q-V5a3QETBNayISGHy4N7kNQQuOohLtXVVqn6Az --pkg-end --pkg-begin platform /home/tommhnsn/cosmic/platform/platform.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-begin gl /home/tommhnsn/cosmic/lib/gl/gl.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin vk /home/tommhnsn/cosmic/lib/vk/vk.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/9x6yO2_hD2DihcfD9FT2X_rbcn5Snehkd2I_n7LB8ziBen3yNXnx4Ii_m8WDw7UJ --pkg-end --pkg-end --pkg-begin freetype /home/tommhnsn/cosmic/lib/freetype2/freetype.zig --pkg-end --pkg-begin lyon /home/tommhnsn/cosmic/lib/clyon/lyon_dummy.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin tess2 /home/tommhnsn/cosmic/lib/tess2/tess2_dummy.zig --pkg-end --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stbi /home/tommhnsn/cosmic/lib/stb/stbi.zig --pkg-end --pkg-begin stbtt /home/tommhnsn/cosmic/lib/stb/stbtt.zig --pkg-end --pkg-begin stb_perlin /home/tommhnsn/cosmic/lib/stb/stb_perlin.zig --pkg-end --pkg-begin cgltf /home/tommhnsn/cosmic/lib/cgltf/cgltf.zig --pkg-end --pkg-begin glslang /home/tommhnsn/cosmic/lib/glslang/glslang.zig --pkg-end --pkg-end --pkg-begin platform /home/tommhnsn/cosmic/platform/platform.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-begin gl /home/tommhnsn/cosmic/lib/gl/gl.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin vk /home/tommhnsn/cosmic/lib/vk/vk.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/9x6yO2_hD2DihcfD9FT2X_rbcn5Snehkd2I_n7LB8ziBen3yNXnx4Ii_m8WDw7UJ --pkg-end --pkg-end --pkg-end --pkg-begin cgltf /home/tommhnsn/cosmic/lib/cgltf/cgltf.zig --pkg-end --pkg-begin graphics /home/tommhnsn/cosmic/graphics/src/graphics.zig --pkg-begin gl /home/tommhnsn/cosmic/lib/gl/gl.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin vk /home/tommhnsn/cosmic/lib/vk/vk.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-begin curl /home/tommhnsn/cosmic/lib/curl/curl.zig --pkg-end --pkg-begin uv /home/tommhnsn/cosmic/lib/uv/uv.zig --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/RVYh9bkAcdKpXRTMrfHw2LZdAusurzh0CHJwRvRQjqudJSrOsOsLLqVMDTsU1dhD --pkg-end --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/WsFYU3ILObOAXgBPsdVGSLQ16Q-V5a3QETBNayISGHy4N7kNQQuOohLtXVVqn6Az --pkg-end --pkg-begin platform /home/tommhnsn/cosmic/platform/platform.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-begin gl /home/tommhnsn/cosmic/lib/gl/gl.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin vk /home/tommhnsn/cosmic/lib/vk/vk.zig --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/9x6yO2_hD2DihcfD9FT2X_rbcn5Snehkd2I_n7LB8ziBen3yNXnx4Ii_m8WDw7UJ --pkg-end --pkg-end --pkg-begin freetype /home/tommhnsn/cosmic/lib/freetype2/freetype.zig --pkg-end --pkg-begin lyon /home/tommhnsn/cosmic/lib/clyon/lyon_dummy.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin tess2 /home/tommhnsn/cosmic/lib/tess2/tess2_dummy.zig --pkg-end --pkg-begin sdl /home/tommhnsn/cosmic/lib/sdl/sdl.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-end --pkg-begin stbi /home/tommhnsn/cosmic/lib/stb/stbi.zig --pkg-end --pkg-begin stbtt /home/tommhnsn/cosmic/lib/stb/stbtt.zig --pkg-end --pkg-begin stb_perlin /home/tommhnsn/cosmic/lib/stb/stb_perlin.zig --pkg-end --pkg-begin cgltf /home/tommhnsn/cosmic/lib/cgltf/cgltf.zig --pkg-end --pkg-begin glslang /home/tommhnsn/cosmic/lib/glslang/glslang.zig --pkg-end --pkg-end --pkg-begin qjs /home/tommhnsn/cosmic/lib/qjs/qjs.zig --pkg-end --pkg-begin cscript /home/tommhnsn/cosmic/cscript/cscript.zig --pkg-begin stdx /home/tommhnsn/cosmic/stdx/stdx.zig --pkg-end --pkg-begin qjs /home/tommhnsn/cosmic/lib/qjs/qjs.zig --pkg-end --pkg-begin build_options /home/tommhnsn/cosmic/zig-cache/options/YlIhfB2NyOIjaFu_elfbPcNHrz1bry-eT_AAiCBXWsahD6UwUcWXZUFIetT057fK --pkg-end --pkg-end -I /home/tommhnsn/cosmic/lib/curl/vendor/include/curl -I /home/tommhnsn/cosmic/lib/uv/vendor/include -I /home/tommhnsn/cosmic/lib/uv -I /home/tommhnsn/cosmic/lib/h2o -I /home/tommhnsn/cosmic/lib/h2o/vendor/include -I /home/tommhnsn/cosmic/lib/h2o/vendor/deps/picotls/include -I /home/tommhnsn/cosmic/lib/h2o/vendor/deps/quicly/include -I /home/tommhnsn/cosmic/lib/openssl/vendor/include -I /home/tommhnsn/cosmic/lib/openssl/vendor/include -I /home/tommhnsn/cosmic/lib/sdl/vendor/include -I /home/tommhnsn/cosmic/lib/sdl -I /home/tommhnsn/cosmic/lib/stb/vendor -I /home/tommhnsn/cosmic/lib/stb/vendor -I /home/tommhnsn/cosmic/lib/stb/vendor -I /home/tommhnsn/cosmic/lib/freetype2/include -I /home/tommhnsn/cosmic/lib/freetype2/vendor/include -I /home/tommhnsn/cosmic/lib/gl/vendor -I /home/tommhnsn/cosmic/lib/vk/vendor/include -I /home/tommhnsn/cosmic/lib/jolt/vendor -I /home/tommhnsn/cosmic/lib/jolt -I /home/tommhnsn/cosmic/lib/glslang/vendor -I /home/tommhnsn/cosmic/lib/miniaudio/src -I /home/tommhnsn/cosmic/lib/clyon -I /home/tommhnsn/cosmic/lib/cgltf/vendor -I /home/tommhnsn/cosmic/lib/qjs/vendor -L /usr/lib/x86_64-linux-gnu -L /usr/lib/x86_64-linux-gnu --main-pkg-path /home/tommhnsn/cosmic --enable-cache 
error: the following build command failed with exit code 1:
/home/tommhnsn/cosmic/zig-cache/o/f51845ecc6968dcad9fa25723ea2a75a/build /usr/lib/zig/zig /home/tommhnsn/cosmic /home/tommhnsn/cosmic/zig-cache /home/tommhnsn/.cache/zig run -Dpath=graphics/examples/demo.zig -Dgraphics -Drelease-safe

UI Framework

This is really important to start using Cosmic for UI in visual applications. Essentially it will be a declarative/reactive framework that can be easily used in js. It should also be usable within Zig code as well for dev hud and other cool stuff yet to come. Details about what this looks like will come later when I revisit this. Even though some work has already been done, much work is needed to develop a standard library of widgets. This ticket will track the progress.

Build on Windows fails due to missing SDL2 files

The following build.zig based on graphics/README.md fails to build due to SDL2 missing several files:

const graphics = @import("lib/cosmic/graphics/lib.zig");
const backend = @import("lib/cosmic/platform/backend.zig");
const std = @import("std");
const Builder = std.build.Builder;

pub fn build(b: *Builder) void {
    const target = b.standardTargetOptions(.{});
    const mode = b.standardReleaseOptions();

    const exe_hello_cosmic = b.addExecutable("hello_cosmic", "src/main.zig");
    exe_hello_cosmic.setTarget(target);
    exe_hello_cosmic.setBuildMode(mode);
    exe_hello_cosmic.install();

    const graphics_backend = backend.getGraphicsBackend(exe_hello_cosmic);
    graphics.addPackage(exe_hello_cosmic, .{ .graphics_backend = graphics_backend });
    graphics.buildAndLink(exe_hello_cosmic, .{ .graphics_backend = graphics_backend });

    const cmd_run = exe_hello_cosmic.run();
    const step_run = b.step("run", "Run the program");
    step_run.dependOn(&cmd_run.step);
}
"zig build" output

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_luna.c:31:10: fatal error: 'SDL_hidapi_rumble.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xbox360.c:32:10: fatal error: 'SDL_hidapi_rumble.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\virtual\SDL_virtualjoystick.c:28:10: fatal error: 'SDL_virtualjoystick_c.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_ps5.c:33:10: fatal error: 'SDL_hidapi_rumble.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_gamecube.c:34:10: fatal error: 'SDL_hidapi_rumble.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xboxone.c:32:10: fatal error: 'SDL_hidapi_rumble.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_ps4.c:36:10: fatal error: 'SDL_hidapi_rumble.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_switch.c:36:10: fatal error: 'SDL_hidapi_rumble.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xbox360w.c:32:10: fatal error: 'SDL_hidapi_rumble.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_stadia.c:31:10: fatal error: 'SDL_hidapi_rumble.h' file not found

Compile C Objects [55/145] SDL_hidapi_xbox360w.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapijoystick.c:32:10: fatal error: 'SDL_hidapi_rumble.h' file not found

Compile C Objects [61/145] SDL_nullvideo.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL.c:24:10: fatal error: 'core/windows/SDL_windows.h' file not found

Compile C Objects [67/145] SDL_gamecontroller.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullframebuffer.c:25:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy/../SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy/../SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [68/145] SDL_joystick.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullevents.c:28:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy/../../events/SDL_events_c.h:30:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy/../../events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy/../../events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_rumble.c:30:10: fatal error: 'SDL_hidapi_rumble.h' file not found

eIn file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullvideo.c:42:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy/../SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy/../SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [79/145] SDL_clipboard.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\SDL_gamecontroller.c:35:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick/../events/SDL_events_c.h:30:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick/../events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick/../events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [81/145] SDL_fillrect.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\SDL_joystick.c:32:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick/../events/SDL_events_c.h:30:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick/../events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick/../events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [82/145] SDL_video.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_1.c:27:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_sysvideo.h:31:        
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [83/145] SDL_pixels.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit.c:24:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_sysvideo.h:31:        
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [85/145] SDL_RLEaccel.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_clipboard.c:24:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_sysvideo.h:31:        
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_egl.c:26:10: fatal error: '../core/windows/SDL_windows.h' file not found

error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_video.c:27:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_sysvideo.h:31:        
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

 Compile C Objects [88/145] SDL_surface.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_pixels.c:27:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_sysvideo.h:31:        
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [91/145] SDL_timer.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\SDL_thread.c:26:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread/SDL_thread_c.h:34:10: fatal error: 'windows/SDL_systhread_c.h' file not found

Compile C Objects [92/145] SDL_thread.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_getenv.c:29:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [95/145] SDL_getenv.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_shape.c:25:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_sysvideo.h:31:        
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [103/145] SDL_sensor.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\timer\SDL_timer.c:27:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\timer/../thread/SDL_systhread.h:29:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\timer/../thread/SDL_thread_c.h:34:10: fatal error: 'windows/SDL_systhread_c.h' file not found

Compile C Objects [109/145] SDL_hidapi.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_vulkan_utils.c:23:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [111/145] SDL_rwops.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\file\SDL_rwops.c:34:10: fatal error: '../core/windows/SDL_windows.h' file not found   

Compile C Objects [113/145] SDL_clipboardevents.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\hidapi\SDL_hidapi.c:41:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [114/145] SDL_displayevents.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_RLEaccel.c:91:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_sysvideo.h:31:        
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [115/145] SDL_dropevents.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_surface.c:24:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_sysvideo.h:31:        
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [116/145] SDL_events.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor\SDL_sensor.c:31:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor/../events/SDL_events_c.h:30:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor/../events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor/../events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [117/145] SDL_gesture.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_events.c:28:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [118/145] SDL_keyboard.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_displayevents.c:26:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [119/145] SDL_mouse.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_dropevents.c:26:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [120/145] SDL_quit.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_keyboard.c:28:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [121/145] SDL_touch.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_clipboardevents.c:26:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [123/145] SDL_dynapi.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_gesture.c:28:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [124/145] SDL_cpuinfo.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\disk\SDL_diskaudio.c:35:10: fatal error: 'SDL_diskaudio.h' file not found     

Compile C Objects [127/145] SDL_diskaudio.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\cpuinfo\SDL_cpuinfo.c:28:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [132/145] SDL_mixer.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_mouse.c:28:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [135/145] SDL_spinlock.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\atomic\SDL_spinlock.c:24:10: fatal error: '../core/windows/SDL_windows.h' file not found

error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_windowevents.c:26:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [140/145] SDL_log.c... error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_log.c:24:10: fatal error: 'core/windows/SDL_windows.h' file not found

Compile C Objects [141/145] SDL_log.c... error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\SDL_audio.c:29:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio/../thread/SDL_systhread.h:29:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio/../thread/SDL_thread_c.h:34:10: fatal error: 'windows/SDL_systhread_c.h' file not found

Compile C Objects [142/145] error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_quit.c:32:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

Compile C Objects [143/145] error(compilation): clang failed with stderr: In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_touch.c:26:
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/SDL_events_c.h:30:       
In file included from C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_sysvideo.h:31:
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events/../video/SDL_vulkan_internal.h:51:10: fatal error: '../core/windows/SDL_windows.h' file not found

error(compilation): clang failed with stderr: C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_assert.c:24:10: fatal error: 'core/windows/SDL_windows.h' file not found

C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\filesystem\windows\SDL_sysfilesystem.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_systhread.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\loadso\windows\SDL_sysloadso.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_sysmutex.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_syscond.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_syssem.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_systls.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_syssem.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_systhread.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_syscond_cv.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_sysmutex.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\timer\windows\SDL_systimer.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_systls.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\wasapi\SDL_wasapi_win32.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\directsound\SDL_directsound.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\winmm\SDL_winmm.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\haptic\windows\SDL_dinputhaptic.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\wasapi\SDL_wasapi.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\haptic\windows\SDL_xinputhaptic.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\haptic\windows\SDL_windowshaptic.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_windowsjoystick.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_xinputjoystick.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_windows_gaming_input.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_rawinputjoystick.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_dinputjoystick.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsmessagebox.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsopengl.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsmouse.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsframebuffer.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsvulkan.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsshape.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowswindow.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowskeyboard.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsevents.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsvideo.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsopengles.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsclipboard.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsmodes.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\power\windows\SDL_syspower.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor\windows\SDL_windowssensor.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\locale\windows\SDL_syslocale.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\misc\windows\SDL_sysurl.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\core\windows\SDL_hid.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\core\windows\SDL_windows.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\core\windows\SDL_xinput.c:1:1: error: unable to build C object: FileNotFound
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_luna.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xbox360.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\virtual\SDL_virtualjoystick.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_ps5.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_gamecube.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xboxone.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_ps4.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_switch.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xbox360w.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_stadia.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapijoystick.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullframebuffer.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullevents.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_rumble.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullvideo.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\SDL_gamecontroller.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\SDL_joystick.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_1.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_clipboard.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_egl.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_video.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_pixels.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\SDL_thread.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_getenv.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_shape.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\timer\SDL_timer.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_vulkan_utils.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\file\SDL_rwops.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\hidapi\SDL_hidapi.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_RLEaccel.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_surface.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor\SDL_sensor.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_events.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_displayevents.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_dropevents.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_keyboard.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_clipboardevents.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_gesture.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\disk\SDL_diskaudio.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\cpuinfo\SDL_cpuinfo.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_mouse.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\atomic\SDL_spinlock.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_windowevents.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_log.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\SDL_audio.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_quit.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_touch.c:1:1: error: unable to build C object: clang exited with code 1
C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_assert.c:1:1: error: unable to build C object: clang exited with code 1
error: sdl2...
error: The following command exited with error code 1:
C:\Users\bendu\scoop\apps\zig-dev\current\zig.exe build-lib -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_log.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_hints.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_error.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_dataqueue.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_assert.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_list.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_utils.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\SDL_guid.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\atomic\SDL_spinlock.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\atomic\SDL_atomic.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\SDL_wave.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\SDL_mixer.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\SDL_audiotypecvt.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\SDL_audiodev.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\SDL_audiocvt.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\SDL_audio.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\disk\SDL_diskaudio.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\dsp\SDL_dspaudio.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\sndio\SDL_sndioaudio.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\cpuinfo\SDL_cpuinfo.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\dynapi\SDL_dynapi.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_windowevents.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_touch.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_quit.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_mouse.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_keyboard.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_gesture.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_events.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_dropevents.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_displayevents.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\SDL_clipboardevents.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\events\imKStoUCS.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\file\SDL_rwops.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\haptic\SDL_haptic.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\hidapi\SDL_hidapi.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\locale\SDL_locale.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\misc\SDL_url.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\power\SDL_power.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\render\SDL_yuv_sw.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\render\SDL_render.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor\SDL_sensor.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_strtokr.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_stdlib.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_qsort.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_memcpy.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_memset.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_malloc.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_iconv.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_getenv.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_crc32.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\stdlib\SDL_string.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\SDL_thread.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\timer\SDL_timer.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_yuv.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_vulkan_utils.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_surface.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_stretch.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_shape.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_RLEaccel.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_rect.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_pixels.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_video.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_fillrect.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_egl.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_bmp.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_clipboard.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_slow.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_N.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_copy.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_auto.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_A.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_0.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\SDL_blit_1.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\yuv2rgb\yuv_rgb.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\SDL_joystick.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\SDL_gamecontroller.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\controller_type.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\dummy\SDL_dummyaudio.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor\dummy\SDL_dummysensor.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\haptic\dummy\SDL_syshaptic.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\dummy\SDL_sysjoystick.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullvideo.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullframebuffer.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\dummy\SDL_nullevents.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\steam\SDL_steamcontroller.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_rumble.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapijoystick.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xbox360w.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_switch.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_steam.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_stadia.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_ps4.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xboxone.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_xbox360.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_gamecube.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_ps5.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\hidapi\SDL_hidapi_luna.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\virtual\SDL_virtualjoystick.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\core\windows\SDL_xinput.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\core\windows\SDL_windows.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\core\windows\SDL_hid.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\misc\windows\SDL_sysurl.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\locale\windows\SDL_syslocale.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\sensor\windows\SDL_windowssensor.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\power\windows\SDL_syspower.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsmodes.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsclipboard.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsopengles.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsevents.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsvideo.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowskeyboard.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsshape.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowswindow.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsvulkan.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsmouse.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsopengl.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsframebuffer.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\video\windows\SDL_windowsmessagebox.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_rawinputjoystick.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_dinputjoystick.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_xinputjoystick.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_windows_gaming_input.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\joystick\windows\SDL_windowsjoystick.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\haptic\windows\SDL_windowshaptic.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\haptic\windows\SDL_xinputhaptic.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\haptic\windows\SDL_dinputhaptic.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\winmm\SDL_winmm.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\directsound\SDL_directsound.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\wasapi\SDL_wasapi.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\audio\wasapi\SDL_wasapi_win32.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\timer\windows\SDL_systimer.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_sysmutex.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_systhread.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_syssem.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_systls.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\windows\SDL_syscond_cv.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_systls.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_syssem.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_sysmutex.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_systhread.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\thread\generic\SDL_syscond.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\loadso\windows\SDL_sysloadso.c -cflags -DSDL_RENDER_DISABLED=1 -- C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\src\filesystem\windows\SDL_sysfilesystem.c -lc --cache-dir C:\Users\bendu\Projects\hello_cosmic\zig-cache --global-cache-dir C:\Users\bendu\AppData\Local\zig --name sdl2 -static -I C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl -I C:\Users\bendu\Projects\hello_cosmic\lib\cosmic\lib\sdl\vendor\include --enable-cache
error: the following build command failed with exit code 1:
C:\Users\bendu\Projects\hello_cosmic\zig-cache\o\cb8cda109d7a12101e1141e6dd840492\build.exe C:\Users\bendu\scoop\apps\zig-dev\current\zig.exe C:\Users\bendu\Projects\hello_cosmic C:\Users\bendu\Projects\hello_cosmic\zig-cache C:\Users\bendu\AppData\Local\zig

Is the README outdated, or have I done something else wrong? I have cosmic Cloned as a git submodule under lib/

Edit: linked the wrong README, issue persists nonetheless

JS Web Target

Cosmic should be able to target web with just plain JS. No wasm. See #19 for wasm.

This can be a lot of work since there isn't a nice way to convert zig to js. Why just JS? In many ways it can be faster than WASM on the web since WASM doesn't have native interop with things we care about in the browser runtime like the gpu. threejs and bablyonjs are all just JS.

WebGL2 will be the graphics target until WebGPU becomes a thing.
This work involves providing an API for all graphics related things. Things that don't make sense on the web will be a nop.

Crash on zig build get-deps

I'm getting this error when I try to run zig build get-deps. After a little bit of investigation, it looks like the revision is longer than the cur_revision slice.

[desttinghim@destbook cosmic]$ zig build get-deps
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (11/11), done.
remote: Total 26 (delta 11), reused 11 (delta 11), pack-reused 15
Unpacking objects: 100% (26/26), 2.41 KiB | 274.00 KiB/s, done.
From https://github.com/fubark/cosmic-deps
   6fcef92..5c31d18  master     -> origin/master
Previous HEAD position was 6fcef92 Remove assets and fonts.
HEAD is now at 5c31d18 Move gl headers to main repo.
thread 148835 panic: index out of bounds
/home/desttinghim/repos/cosmic/build.zig:1076:42: 0x2e2c87 in [email protected] (build)
        if (!std.mem.eql(u8, cur_revision[0..revision.len], revision)) {
                                         ^
/home/desttinghim/repos/cosmic/build.zig:1014:21: 0x2cb370 in [email protected] (build)
        try syncRepo(self.b, step, "./lib/zig-v8", "https://github.com/fubark/zig-v8", V8_Revision, true);
                    ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/build.zig:3401:24: 0x2b57cf in std.build.Step.make (build)
        try self.makeFn(self);
                       ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/build.zig:507:19: 0x2b491d in std.build.Builder.makeOneStep (build)
        try s.make();
                  ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/build.zig:497:29: 0x2b489d in std.build.Builder.makeOneStep (build)
            self.makeOneStep(dep) catch |err| {
                            ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/build.zig:462:33: 0x2a96dd in std.build.Builder.make (build)
            try self.makeOneStep(s);
                                ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/special/build_runner.zig:207:17: 0x2a3334 in main (build)
    builder.make(targets.items) catch |err| {
                ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/start.zig:581:37: 0x29a87a in std.start.callMain (build)            const result = root.main() catch |err| {
                                    ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/start.zig:515:12: 0x281b2e in std.start.callMainWithArgs (build)
    return @call(.{ .modifier = .always_inline }, callMain, .{});
           ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/start.zig:425:17: 0x280af6 in std.start.posixCallMainAndExit (build)
    std.os.exit(@call(.{ .modifier = .always_inline }, callMainWithArgs, .{ argc, argv, envp }));
                ^
/home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/lib/std/start.zig:338:5: 0x280902 in std.start._start (build)
    @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{});
    ^
error: the following build command crashed:
/home/desttinghim/repos/cosmic/zig-cache/o/4258a26f53c0aadd256327262617e405/build /home/desttinghim/zig/0.10.0-dev.2073+59905a62f/files/zig /home/desttinghim/repos/cosmic /home/desttinghim/repos/cosmic/zig-cache /home/desttinghim/.cache/zig get-deps

Text_demo: double click to open directory

It appears as though the 'Load Font' popup does not follow directories via double click. Or at least not on my Arch Linux setup.

Btw, I have filed the previous few issues just as possible reminders to fix these things. I realize the demo is very new and may not be completely robust. I think you have done a great job on this stuff and just want to file a few issues, since I was poking around with this demo a little bit...great stuff :)

Vector Graphics

Currently Cosmic relies on lyon a rust dependency to convert paths/polygons to triangles. The plan is to drop this dependency and to create our own tessellator from scratch. The implementation will use similar techniques to lyon with the main focus of doing triangulation all in one pass for complex polygons.

This ticket will track the progress of that.
Things to implement:

  • One pass tessellator for any polygon. Output as gpu triangle data.
  • Self intersecting polygons.
  • Evenodd fill rule.
  • Nonzero fill rule.
  • Explicit holes. Depends on nonzero fill rule.
  • Adding child polygons.
  • Flatten curves (quadratic, cubic bezier) to polygons.
  • Curve strokes.
  • Line strokes.
  • SVG fill partial support.
  • SVG stroke partial support.

Future:

  • Line joins

Note the ones that have been marked complete indicates the main algorithms have been implemented but there still needs to be extensive testing since triangulation can have lots of edge cases.

Native async File IO

Currently Cosmic async file ops are not optimized. It's just queuing sync work in the default work queue. The goal is to use libuv to do native async file io at least until zig has good support for this.

import std null build error gitrepostep

[tommhnsn@thomas-galagopro cosmic-master]$ zig build
/home/tommhnsn/Downloads/cosmic-master/GitRepoStep.zig:1:1: error: expected type '[]const u8', found '@TypeOf(null)'
//! Publish Date: 2022_05_05
^~~~~~~~~~~~~~~~~~~~~~~~~~~~

removing the comments reveals the line

[tommhnsn@thomas-galagopro cosmic]$ zig build run -Dpath="graphics/examples/demo.zig" -Dgraphics -Drelease-safe
/home/tommhnsn/cosmic/GitRepoStep.zig:1:1: error: expected type '[]const u8', found '@TypeOf(null)'
const std = @import("std");

Text_demo: clicking on scroll bar

If you resize the font size or type off the end of the editor window then a scroll bar appears (nicely done), and if you drag and drop the bar then things work fine...however, if you click on the scroll bar to move it to the right then it becomes non-reactive. The scroll bar won't move by clicking on the left or right of the bar after the first interaction.

Not totally sure if the bar should move more to the right after the first click (because all text becomes visible on first click), but it should move the left (ie. back to the line start) IMHO.

Example build error

Tried to build with: zig build run -Dpath="ui/examples/counter.zig" -Dgraphics -Drelease-safe
And got:
./GitRepoStep.zig:183:10: error: type '@typeinfo(@typeinfo(@typeof(std.child_process.ChildProcess.init)).Fn.return_type.?).ErrorUnion.error_set!*std.child_process.ChildProcess' does not support field access
child.stdin_behavior = .Ignore;
^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.