gilzoide/hello-gdextension

error in hellogdextension code

Closed this issue · 1 comments

https://github.com/gilzoide/hello-gdextension/blob/main/1.hello-c/README.md

(EDIT: I mean error in the file 'hello.gdextension' shown in README.md, listing 8 )

linux.x86_64 = "libhello-gdextensions.so"
windows.x86_64 = "hello-gdextensions.dll"
macos = "libhello-gdextensions.dylib"

should be

linux.x86_64 = "libhello-gdextension.so"
windows.x86_64 = "hello-gdextension.dll"
macos = "libhello-gdextension.dylib"

(without character "s")

as the library file compiled by scons is named libhello-gdextension.so (in case of Linux target)

Otherwise running godot line gives error with strange path changes:

ERROR: Can't open dynamic library: {Godot project folder}/libhello-gdextensions.so. 
Error: /home/USER/bin/godot-4.2.1/../lib/libhello-gdextensions.so: cannot open shared object file: No such file or directory.

Cheers!

Wow, true that! I made it right in the example file, but wrong in the article 😅
Thanks for spotting that out, I'll fix this right away!