Can I export games that utilise custom C++ modules to Windows FROM Linux?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By shizo

Can I export games that utilise custom C++ modules TO Windows FROM Linux, or do I have to compile the Bindings for C++ on windows in order for it to export properly?

:bust_in_silhouette: Reply From: Lopy

Yes. Just make your Godot module, compile the engine for your OS first to make sure the compilation and your module work, and then compile to your target OS.

There will be some differences between OSes, like infinity being displayed as -1 or filepaths being case in·sensititive, so make sure to test frequently on both.

You could also extend the Engine using GDNative, but with Godot 4 and its GDExtention approaching, I recommend not learning GDNative. GDExtention will apparently be similar to Godot modules, but Godot modules will still be there.