perbone / luascript

Lua language support for Godot Engine
Apache License 2.0
633 stars 45 forks source link

Compiling for Windows: error looking for <sys/wait.h> #15

Closed slowpoke-lizard closed 4 years ago

slowpoke-lizard commented 4 years ago

Hello,

This compiles without any issues on my Debian (targeting Debian).

I fail to compile it for Windows though: scons -j 6 bits=64 module_luascript_enabled=yes target=release_debug tools=yes platform=windows [...] modules/luascript/lib/lua/lauxlib.c:267:10: fatal error: sys/wait.h: No such file or directory 267 | #include <sys/wait.h>

As far as I could learn online, mingw-64 doesn't provide a full posix implementation, and the sys/wait.h requirement apparently cannot be satisfied in that context. Has anyone been able to build it for Windows?

Thanks!

Vivraan commented 4 years ago

Have you tried using MSVC?

fgombault commented 4 years ago

I haven't, I suppose MSVC is the correct way to go.

perbone commented 4 years ago

My apologies for not giving you any help on this matters. As stated before I have macOS and Linux environments so let's hope our good community can help you. -- Perbone

perbone commented 4 years ago

Hi Did you solve your problem? May I close this issue?

Vivraan commented 4 years ago

The issue could also be solved by conditionally disabling <sys/wait.h> on Windows while compiling with mingw.

The OP may have abandoned the issue.

perbone commented 4 years ago

I see... gonna try this. Thanks for the replay