-
Notifications
You must be signed in to change notification settings - Fork 5
No valid library handle, can't get symbol from GDNative object #7
Comments
Did you compile the library yourself or did you use the GitHub Actions build? |
i sent him github actions build with discord sdk 2.5.6 libs with the demo for his platform and everything was placed properly |
Could you send a screenshot of the |
Also, are you using the Debug or Release build? |
debug build |
Ah, so my guess is that you don't have the Visual Studio build tools installed, so the debug build won't work. Try using the Release build instead? The Debug build is mainly for developing the SDK. |
And I have Visual Studio build tools installed |
Slight side note, you shouldn't need to have the .lib file in there |
Could you try compiling the library yourself? It could be something to do with the Actions build |
As a last thing to try, you say that @JezSonic sent all the files you needed? Could you try downloading the sdk and performing setup normally following the instructions in the docs (there is a |
This issue may be somewhat related. |
yeah, maybe |
I can't
Tried it, still the same |
Why not? Is there an error with the compiler? |
I'll add a note about this in the README. |
If you get this error "cant load dynamic library", I found a fix for it. |
Describe the bug
Game crashes with error: "Attempt to call function 'new' in base "NativeScript" on a null instance" and it can't find bin/windows-64/gdsdk.dll
To Reproduce
Just run the test project
Expected behaviour
Discord.Core class is loaded properly as an NativeScript call and I can call it's functions anywhere in the code
Screenshots
Additional context
Log output:
Godot Engine v3.2.3.stable.official - https://godotengine.org
OpenGL ES 3.0 Renderer: Radeon RX 570 Series
ERROR: Can't open dynamic library: D:/Biblioteki/Pobrane/demo/bin/windows-64/gdsdk.dll, error: Error 126: Nie można odnaleźć określonego modułu.
.
At: platform/windows/os_windows.cpp:2395:open_dynamic_library() - Condition "!p_library_handle" is true. Returned: ERR_CANT_OPEN
ERROR: No valid library handle, can't get symbol from GDNative object
At: modules/gdnative/gdnative.cpp:501:get_symbol() - No valid library handle, can't get symbol from GDNative object
ERROR: No nativescript_init in "res://bin/windows-64/gdsdk.dll" found
At: modules/gdnative/nativescript/nativescript.cpp:1506:init_library() - No nativescript_init in "res://bin/windows-64/gdsdk.dll" found
Please confirm the following:
The text was updated successfully, but these errors were encountered: