nimrodot icon indicating copy to clipboard operation
nimrodot copied to clipboard

How to build?

Open griffith1deady opened this issue 2 years ago • 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'

griffith1deady avatar Jun 11 '23 05:06 griffith1deady

i am trying to build example code.

griffith1deady avatar Jun 11 '23 05:06 griffith1deady

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.

chmod222 avatar Jun 11 '23 11:06 chmod222

godot crashing when load the dll. command i used for build is: nim c --passL:"-static" --noMain --app:lib -o:"godot.dll" "test.nim"

griffith1deady avatar Jun 11 '23 15:06 griffith1deady

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.

chmod222 avatar Jun 11 '23 17:06 chmod222

Yes, it's windows. Windows 10 22H2, 64 bit. Godot version is: Godot_v4.0.3-stable

griffith1deady avatar Jun 11 '23 17:06 griffith1deady

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

griffith1deady avatar Jun 11 '23 17:06 griffith1deady