Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on Windows? #14

Open
ktodyruik opened this issue Jun 9, 2024 · 1 comment
Open

Build on Windows? #14

ktodyruik opened this issue Jun 9, 2024 · 1 comment

Comments

@ktodyruik
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants