How to build?
Opened this issue · 6 comments
I'm tried to build with this command:
nim c --app:lib -o:"godot.dll" "test"
but this give me error:
nimrodot-0.1.0\nimrodot\builtins\string.nim(52, 5) template/generic instantiation of gd_builtin_ctor
from here
nim-1.6.12\lib\std\genasts.nim(87, 13) Error: expression has no address; maybe use 'unsafeAddr'
i am trying to build example code.
You're going to need a newer Nim version, preferably 2.0 RC2 to build this. My thought process is, by the time the library is stable enough to use, Nim 2.0 will be released either way so I may as well start with it.
The readme really should mention this, I'll add it later.
godot crashing when load the dll. command i used for build is: nim c --passL:"-static" --noMain --app:lib -o:"godot.dll" "test.nim"
Hard to say what's happening without more information about your environment. I deduce that it's Windows from the path names. 32 Bit, 64 Bit? What's your Godot version?
I only have Linux 64 Bit to test with, so if you can provide some sort of stack trace as to where it's going wrong, that'd be helpful.
Yes, it's windows. Windows 10 22H2, 64 bit.
Godot version is: Godot_v4.0.3-stable
There are no logs about the error, all I have in the console is this:
PS C:\Users\New\Desktop> ./Godot_v4.0.3-stable_win64.exe
PS C:\Users\New\Desktop> Godot Engine v4.0.3.stable.official.5222a99f5 - https://godotengine.org
OpenGL API 3.3.0 NVIDIA 532.03 - Compatibility - Using Device: NVIDIA Corporation - NVIDIA GeForce GTX 1080
Editing project: C:/Users/New/Desktop/TestGodot