vsrs / rsciter

Unofficial Rust bindings for Sciter
5 stars 2 forks source link

Can't compile, using bindgen #1

Closed 4silvertooth closed 2 days ago

4silvertooth commented 5 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 5 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 days ago

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

However, it's not recommended.