Coder Social home page Coder Social logo

Comments (2)

brytonsf avatar brytonsf commented on August 15, 2024

I suppose I still have this issue, but right now I'm trying to use Sokol directly from Swift.
I think it'd still make sense to generate bindings though, because otherwise I'm using a bunch of UnsafePointers in Swift...

from sokol.

floooh avatar floooh commented on August 15, 2024

Those .c files are not generated but are part of the sokol-odin repository. Basically, before running gen_all.py you need to clone the following respositories into the sokol/bindings directory, otherwise generation will fail:

Also see the gen_bindings.yml GH Action snippet here:

- uses: actions/checkout@v4
with:
repository: floooh/sokol-zig
path: bindgen/sokol-zig
- uses: actions/checkout@v4
with:
repository: floooh/sokol-nim
path: bindgen/sokol-nim
- uses: actions/checkout@v4
with:
repository: floooh/sokol-odin
path: bindgen/sokol-odin
- uses: actions/checkout@v4
with:
repository: floooh/sokol-rust
path: bindgen/sokol-rust
- uses: actions/checkout@v4
with:
repository: kassane/sokol-d
path: bindgen/sokol-d
- name: generate
run: |
cd bindgen
python3 gen_all.py

Alternatively you can simply out-comment the languages you don't need in gen_all.py, in that case the respective subdirectories are not needed:

https://github.com/floooh/sokol/blob/master/bindgen/gen_all.py

from sokol.

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.