GrayJack / janetrs

Rust high level bindings for Janet
MIT License
62 stars 3 forks source link

Build on Windows? #14

Open ktodyruik opened 5 months ago

ktodyruik commented 5 months ago

Hi,

I just added janetrs to a simple hello Cargo.toml project on Windows and I'm having difficulty building it. cargo build fails to build evil-janet. What are the installation steps for building on Windows?

Currently I'm getting the following error:

  --- stderr
   Compiling evil-janet v1.33.0
error: failed to run custom build command for `evil-janet v1.33.0`

Caused by:
  process didn't exit successfully: `C:\RustProjects\tryjanet\target\debug\build\evil-janet-263d1522556b4cd8\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=csrc/janet.h

  --- stderr
  ./csrc/janet.h:435:10: fatal error: 'stdlib.h' file not found
GrayJack commented 13 hours ago

That seems to be an error from the C compiler that bindgen is using on Windows. This kind of error usually happens when the C standard headers are not in the expected place, or if your system lacks those files all together.

Question: were you able to compile Janet on Windows before?

I sadly lack a windows machine rn to try this out. When I have the time, I'll make a Windows VM to test this out