godot-nim icon indicating copy to clipboard operation
godot-nim copied to clipboard

Generate .dll for other platforms (like Linux)

Open DarthvaderBn opened this issue 3 years ago • 4 comments

OS: Windows 10 64 Bits

When i trying to export game to Linux or Windows 32 bits i'm getting error: can't find library {name_of_library}

Example: Trying to export game to Windows 32 bits core/os/dir_access.cpp:297 - Failed to open res://_dlls/nim_32.dll

DarthvaderBn avatar Jun 02 '21 15:06 DarthvaderBn

Are you trying to export for Linux/Win32 from Win64?

tonogram avatar Oct 15 '21 22:10 tonogram

Yes, but i realized what godot-nim generates .dll only for your OS https://github.com/geekrelief/godot-nim-stub/blob/master/nakefile.nim

DarthvaderBn avatar Oct 16 '21 08:10 DarthvaderBn

That's what I was going to point out to you. I'm glad you found it on your own. In theory, one could set things up to allow for cross-compiling, but by default godot-nim only lets you compile for the current platform.

tonogram avatar Oct 17 '21 03:10 tonogram

I think we can close this issue because this is not a feature request, just a question.

tonogram avatar Oct 19 '21 14:10 tonogram