vsrs / rsciter

Unofficial Rust bindings for Sciter
6 stars 2 forks source link

Can't compile, using bindgen #1

Closed 4silvertooth closed 2 months ago

4silvertooth commented 7 months ago

Hi, This is a really neat project,

but I am not able to run bindgen, specially generate.ps1, how were the bindings generated? Was LLVM used or mingw?

vsrs commented 7 months ago

@4silvertooth ,

Actually, you do not need to run bindgen yourself. Pregenerated code is included (crates/rsciter/src/bindings).

Anyway, I've used LLVM on Windows to generate bindings, generate.ps1 should be in the Sciter SDK include folder.

Perhaps, it might not work with the latest SDK, as Andrew added GLX support and changed SDK (https://sciter.com/sciter-glx-goes-mainstream/), I did not test it yet.

vsrs commented 2 months ago

Starting from v0.0.10 you can use codegen feature to generate bingings at build.

However, it's not recommended.