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

Windows Support #3

Open
TCROC opened this issue May 18, 2024 · 1 comment
Open

Windows Support #3

TCROC opened this issue May 18, 2024 · 1 comment

Comments

@TCROC
Copy link

TCROC commented May 18, 2024

Currently this does not compile on Windows. It gets many errors such as:

nasm
└─ install nasm
   └─ zig build-exe nasm Debug native 79 errors
C:\Users\charl\source\repos\godot\BlockyBallOT\submodules\godot-src\gitignore\zig\cache\p\122004fa7e2ff0b3d472049743358f8fdf065cdf63bc0e5e3d54c6bb8d81d93e40da\include/compiler.h:101:11: error: 'endian.h' file not found
# include <endian.h>

The solution to this particular issue was pointed out here:

https://discord.com/channels/605571803288698900/1241513410533920809/1241514300934455306

The solution is to set:

.HAVE_ENDIAN_H = have(target.result.os.tag != .windows),

Along with the other ENDIAN_H configs.

But then once that is done, we get a long rapsheet of more erros that I'll attach as a file
zig-asm-errors.txt

Thanks for the awesome tool btw! Zig has been amazing for cross compiling! In particular, I've been setting it up to compile godot for different platforms over here! :)

https://github.com/Lange-Studios/godot-src

@TCROC
Copy link
Author

TCROC commented May 18, 2024

@DaQueenJodi was a huge help in helping me find why it wasn't working on my Windows machine but was on my Linux machine

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

Successfully merging a pull request may close this issue.

1 participant