Giter Club home page Giter Club logo

Comments (6)

zenith391 avatar zenith391 commented on May 23, 2024 1

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.

zenith391 avatar zenith391 commented on May 23, 2024

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.

shinymerlyn avatar shinymerlyn commented on May 23, 2024

The quick start docs don't say anything about targeting zig master. should I open a ticket for that?

from capy.

alexkuz avatar alexkuz commented on May 23, 2024

@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.

alexkuz avatar alexkuz commented on May 23, 2024

@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.

alexkuz avatar alexkuz commented on May 23, 2024

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)

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.