paddy-exe / GDExtensionSummator

The Summator Example from Custom Modules made with the GDExtension system in Godot 4
The Unlicense
173 stars 19 forks source link

Running vscode tasks generates `.x86_64` libs, but `.gdextension` file looks for `.64` (Windows) #6

Closed fenix-hub closed 2 years ago

fenix-hub commented 2 years ago

As the titles mentions, when running the tasks in vscode on Windows, libraries are automatically compiled and named to libgdsummator.windows.debug.x86_64.*, while .gdextension file in this repository looks for .64 files. Could be useful mentioning that the .gdextension file should be modified based on the system type, or giving some extra information about the setup in the README.

image

Environment Godot-cpp version: the one recursively cloned from this template Godot Editor version: 4.0 beta 1 Windows: Microsoft Windows 11 PRO Build 22622 x64

paddy-exe commented 2 years ago

@fenix-hub Thanks for the feedback! The issue is the same as in here: https://github.com/paddy-exe/GDExtensionSummator/issues/4 I will update the repo to the beta version in the next couple days since I am currently still on vacation.

fenix-hub commented 2 years ago

Thank you very much, enjoy your vacation :)

paddy-exe commented 2 years ago

@fenix-hub Can you try https://github.com/paddy-exe/GDExtensionSummator/pull/7 and see if this PR solves your issue?

fenix-hub commented 2 years ago

Yes it works now :) But trying to export to Windows, after compiling for release, I get this error

Skipping export of out-of-project library summator/libsummator.windows.release.x86_64.dll
  Couldn't export extension: res://extension/summator.gdextension. No suitable library found for export flags: pc, s3tc, windows, x86_64, release

Do you happen to know why?

paddy-exe commented 2 years ago

Yes it works now :)

But trying to export to Windows, after compiling for release, I get this error


Skipping export of out-of-project library summator/libsummator.windows.release.x86_64.dll

  Couldn't export extension: res://extension/summator.gdextension. No suitable library found for export flags: pc, s3tc, windows, x86_64, release

Do you happen to know why?

Great news πŸ™ŒπŸΌπŸŽŠ About your bug: not sure what the cause of this could be to be honest... Does this happen as well with the godot-cpp demo project?

Edit: Maybe try to copy the first binary names from here: https://github.com/godotengine/godot-cpp/blob/master/test/demo/example.gdextension

fenix-hub commented 2 years ago

this is what I get when I try to export the godot-cpp demo project with the binaries compiled with scons

Couldn't find the given section "dependencies" and key "windows.release.x86_64", and no default was given.
paddy-exe commented 2 years ago

this is what I get when I try to export the godot-cpp demo project with the binaries compiled with scons


Couldn't find the given section "dependencies" and key "windows.release.x86_64", and no default was given.

Could create a separate issue here with the above mentioned issue and also another issue on the Godot-cpp repository? This seems to be an upstream issue