Giter Club home page Giter Club logo

Comments (4)

zenith391 avatar zenith391 commented on May 24, 2024 1

@Narven Yes, capy does not yet support macOS: see zig-template#6

from capy.

Narven avatar Narven commented on May 24, 2024

I get the same on macos M3

❯ zig build run
/Users/pedroluz/.cache/zig/p/12201751d2094cde9630bc080e6ce1d8982ff03bdd30a3103abd21321a8361a7e39d/build_capy.zig:103:20: error: no field or member function named 'do' in 'http.Server.Response'
            try res.do();
                ~~~^~~
/Users/pedroluz/.local/bin/zig/lib/std/http/Server.zig:295:22: note: struct declared here
pub const Response = struct {
                     ^~~~~~
referenced by:
    make: /Users/pedroluz/.cache/zig/p/12201751d2094cde9630bc080e6ce1d8982ff03bdd30a3103abd21321a8361a7e39d/build_capy.zig:65:54
    create: /Users/pedroluz/.cache/zig/p/12201751d2094cde9630bc080e6ce1d8982ff03bdd30a3103abd21321a8361a7e39d/build_capy.zig:38:40
    remaining reference traces hidden; use '-freference-trace' to see all reference traces                                              /5.5s

Apple M3 Max
Macos 14.2.1 (23C71)

from capy.

zenith391 avatar zenith391 commented on May 24, 2024

Oh that's because I haven't updated zig-template to use latest Capy version

from capy.

Narven avatar Narven commented on May 24, 2024

Now I'm getting:

❯ zig build run
zig build-exe capy-template Debug native: error: the following command failed with 2 compilation errors:
/Users/pedroluz/.local/bin/zig/zig build-exe /Users/pedroluz/Projects/grideltd/fooz/src/main.zig -lobjc -lc --cache-dir /Users/pedroluz/Projects/grideltd/fooz/zig-cache --global-cache-dir /Users/pedroluz/.cache/zig --name capy-template --mod zigimg::/Users/pedroluz/.cache/zig/p/12208a38cfabbe54287c076a9532b9f106e4b7122f66f75bccbd90d7dc5c31020384/vendor/zigimg/zigimg.zig --mod capy:zigimg,zigwin32:/Users/pedroluz/.cache/zig/p/12208a38cfabbe54287c076a9532b9f106e4b7122f66f75bccbd90d7dc5c31020384/src/main.zig --mod zigwin32::/Users/pedroluz/.cache/zig/p/12208a38cfabbe54287c076a9532b9f106e4b7122f66f75bccbd90d7dc5c31020384/vendor/zigwin32/win32.zig --deps zigwin32,capy -framework CoreFoundation -framework AppKit -framework ApplicationServices -framework CoreData -framework Foundation --subsystem native --listen=-
Build Summary: 0/3 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run capy-template transitive failure
   └─ zig build-exe capy-template Debug native 2 errors
/Users/pedroluz/.cache/zig/p/12208a38cfabbe54287c076a9532b9f106e4b7122f66f75bccbd90d7dc5c31020384/src/components/Label.zig:9:19: error: root struct of file 'backend' has no member named 'Label'
    peer: ?backend.Label = null,
           ~~~~~~~^~~~~~
/Users/pedroluz/.cache/zig/p/12208a38cfabbe54287c076a9532b9f106e4b7122f66f75bccbd90d7dc5c31020384/src/backend.zig:1:1: note: struct declared here
const std = @import("std");
^~~~~
referenced by:
    Label: /Users/pedroluz/.cache/zig/p/12208a38cfabbe54287c076a9532b9f106e4b7122f66f75bccbd90d7dc5c31020384/src/components/Label.zig:6:19
    usingnamespace_0: /Users/pedroluz/.cache/zig/p/12208a38cfabbe54287c076a9532b9f106e4b7122f66f75bccbd90d7dc5c31020384/src/components/Label.zig:7:55
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
/Users/pedroluz/.cache/zig/p/12208a38cfabbe54287c076a9532b9f106e4b7122f66f75bccbd90d7dc5c31020384/src/data.zig:419:145: error: no field or member function named 'cmpxchg' in 'atomic.Atomic.Atomic(bool)'
            if ((if (@hasDecl(atomicValue(bool), "cmpxchgStrong")) self.bindLock.cmpxchgStrong(false, true, .SeqCst, .SeqCst) else self.bindLock.cmpxchg(true, false, true, .SeqCst, .SeqCst) // support zig 0.11 as well as current master
                                                                                                                                   ~~~~~~~~~~~~~^~~~~~~~
/Users/pedroluz/.local/bin/zig/lib/std/atomic/Atomic.zig:8:19: note: struct declared here
    return extern struct {
           ~~~~~~~^~~~~~    

from capy.

Related Issues (20)

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.