ShadowApex / godot-go

Go language bindings for the Godot Engine's GDNative API.
MIT License
363 stars 31 forks source link

Does not have a library for the current platform error #44

Closed FryDay closed 10 months ago

FryDay commented 5 years ago

Description

0:00:00:0247 - does not have a library for the current platform

Type:Error Description: does not have a library for the current platform Time: 0:00:00:0247 C Error: Condition ' lib_path.length() == 0 ' is true. C Source: modules/gdnative/nativescript/nativescript.cpp:1031 C Function: init_library

As you can see, I've tried adding the library various ways, but always get the same error. image

Details

Go version go1.11.4 linux/amd64
Godot version v3.0.6.stable.official.8314054
Godot-Go version/commit hash 1746202a2001f65ff7eb635b8cd7fc2a6ea64ca2 (latest)
OS Arch Linux
FryDay commented 5 years ago

I figured out the issue. In the README, images show the library being named with a .tres filetype. It needs to be .gdnlib for it to work, at least on linux.