Comments (4)
@Narven Yes, capy does not yet support macOS: see zig-template#6
from capy.
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.
Oh that's because I haven't updated zig-template to use latest Capy version
from capy.
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)
- Implement Material 3 for Android
- Failed to run `zig build run` with zig-template in Linux HOT 1
- Button callback not invoked HOT 2
- Need an example on how to use Capy as a package. HOT 4
- Broken on newer zig versions (not sure since when) HOT 1
- Broken on zig 0.12.0 as well as 0.11.0 HOT 1
- Accessibility: Missing keyboard navigability and focus HOT 2
- Zig tracking issue
- GTK window is not re-rendering HOT 1
- C API HOT 2
- errenous masking of windows message flags
- Android minimal example build fails
- AudioGenerator code prevents compiling if target isn't wasm. HOT 2
- zig version 0.12.0-dev.2159+7916cf6f8 build changes HOT 1
- Zig master compile error HOT 1
- Missing dropdown menus
- Compiler Error HOT 2
- MacOS platform support? HOT 2
- In window capy example template throw error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capy.