Comments (6)
You might need to pull latest commits as this was fixed in 60cfed7
However you're right in that explicitly mentioning the exact Zig version would be better. I'll add this to the README.
from capy.
Yea, it's caused by the fact that Capy always targets the latest Zig master version. The 34bf939 commit was made to fix compile errors introduced by the API change added in zig ceb0a63.
To fix the bug, just download and install the latest Zig version from the website: https://ziglang.org/download/
from capy.
The quick start docs don't say anything about targeting zig master. should I open a ticket for that?
from capy.
@zenith391 I can't build the template with the latest Zig version either (0.11.0-dev.1594+a5d25fabd)
error: no field or member function named 'standardReleaseOptions' in 'Build'
const mode = b.standardReleaseOptions();
~^~~~~~~~~~~~~~~~~~~~~~~
/snap/zig/6551/lib/std/Build.zig:1:1: note: struct declared here
const std = @import("std.zig");
^~~~~
referenced by:
runBuild__anon_5869: /snap/zig/6551/lib/std/Build.zig:1565:37
main: /snap/zig/6551/lib/build_runner.zig:214:16
remaining reference traces hidden; use '-freference-trace' to see all reference traces
the relevant Zig commit, I believe: ziglang/zig@063888a
It would be indeed nicer if README explicitly mentions exact Zig version.
from capy.
@zenith391 the main repo is fixed, however the template still uses old format
https://github.com/capy-ui/zig-template/blob/2a94b8a073c68a4dc04c12bda39a97418a652657/build.zig#L15
from capy.
I'd also mention prerequisites somewhere (sudo apt install libgtk-3-dev
in my case)
Anyway, got it working, all good.
from capy.
Related Issues (20)
- 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
- Fails to build on linux HOT 4
- 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
- plans for Zig 0.12 ? HOT 2
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.