asmaloney / GDExtensionTemplate

📜 A template project for building Godot 4 GDExtensions using CMake
The Unlicense
228 stars 22 forks source link

windows.debug.x86_32 vs windows.x86_32 #67

Open sava41 opened 8 months ago

sava41 commented 8 months ago

Maybe this is not the right place to ask this, but seeing as I'm building my GDextension with this template I think its relevant.

The .gdextension template files use <platform>.<target>.<arch> format for the libraries parameters.

The godot edtitor I downloaded Windows - Standard (x86_64) expects <platform>.<arch> and as a result I get the follwing error: core/extension/gdextension.cpp:911 - No GDExtension library found for current OS and architecture (windows.x86_64) in configuration file

I can easily edit .gdextension and everything works, but I'm wondering why the editor and this template have this discrepency?

asmaloney commented 8 months ago

(Related to #6)

What version of Godot are you using?

According to the docs, what I have is correct for 4.2?

(Edit: It's quite possible the docs are incorrect or out of date. I don't have Windows to test on.)

sava41 commented 8 months ago

4.2.1

LeaderOne commented 4 months ago

I think I found an answer here... if you use <platform>.release.<architecture> in Godot 4.2.1+ then you must ALSO have a <platform>.debug.<architecture> in the gdextension file.

So, if you have linux.release.x86_64 in the gdextension file, for example, you must also put a line in there fore linux.debug.x86_64. Otherwise, godot throws an error because it wants only the target linux.x86_64.

Maybe there's a way to fix that in the template, or make it build both debug and release at the same time?