Skip to content

Windows Support #3

@TCROC

Description

@TCROC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions