Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDExtensions are not exported correctly: No suitable library found for GDExtension: res://webrtc/webrtc.gdextension #71090

Closed
JonathanPicques opened this issue Jan 8, 2023 · 4 comments · Fixed by #71274

Comments

@JonathanPicques
Copy link

Godot version

4.0.beta10 mono and standard

System information

Windows 10 64bits

Issue description

When exporting a project, Godot fails to bundle the required DLLs from the GDExtension to the export folder:

editor/export/editor_export_plugin.h:123 - Required virtual method EditorExportPlugin::_get_name must be overridden before calling.
  No suitable library found for GDExtension: res://webrtc/webrtc.gdextension. Possible feature flags for your platform: pc, s3tc, windows, x86_64, template, template_debug

Steps to reproduce

Export for Windows with the existing configuration: WebRTC DLLs won't be copied in the export folder

Minimal reproduction project

Repro.zip

@hakuhan
Copy link
Contributor

hakuhan commented Jan 9, 2023

I got this bug once. And I deleted all dll's and build again. Seems fixed.:)

@Faless
Copy link
Collaborator

Faless commented Jan 9, 2023

Possible feature flags for your platform: pc, s3tc, windows, x86_64, template, template_debug

I don't see the generic debug flag, was it removed from the default features? (CC @groud I remember this was discussed at some point for the "auto" prefix PR)

@groud
Copy link
Member

groud commented Jan 10, 2023

I don't see the generic debug flag, was it removed from the default features? (CC @groud I remember this was discussed at some point for the "auto" prefix PR)

I believe it was fixed in: #69805
I am not sure what could cause this particular issue though 🤔

@DmitriySalnikov
Copy link
Contributor

DmitriySalnikov commented Jan 12, 2023

With this config, the project is exported without problems. #67906 (comment)

[configuration]

entry_symbol = "webrtc_extension_init"

[libraries]

linux.x86_64 = "res://webrtc/lib/libwebrtc_native.linux.template_debug.x86_64.so"
linux.x86_32 = "res://webrtc/lib/libwebrtc_native.linux.template_debug.x86_32.so"
macos.x86_64 = "res://webrtc/lib/libwebrtc_native.macos.template_debug.x86_64.dylib"
macos.arm64 = "res://webrtc/lib/libwebrtc_native.macos.template_debug.arm64.dylib"
windows.x86_64 = "res://webrtc/lib/libwebrtc_native.windows.template_debug.x86_64.dll"
windows.x86_32 = "res://webrtc/lib/libwebrtc_native.windows.template_debug.x86_32.dll"
android.arm64 = "res://webrtc/lib/libwebrtc_native.android.template_debug.arm64.so"
android.x86_64 = "res://webrtc/lib/libwebrtc_native.android.template_debug.x86_64.so"
ios.arm64 = "res://webrtc/lib/libwebrtc_native.ios.template_debug.arm64.dylib"
ios.x86_64 = "res://webrtc/lib/libwebrtc_native.ios.template_debug.x86_64.simulator.dylib"

linux.template_release.x86_64 = "res://webrtc/lib/libwebrtc_native.linux.template_release.x86_64.so"
linux.template_release.x86_32 = "res://webrtc/lib/libwebrtc_native.linux.template_release.x86_32.so"
macos.template_release.x86_64 = "res://webrtc/lib/libwebrtc_native.macos.template_release.x86_64.dylib"
macos.template_release.arm64 = "res://webrtc/lib/libwebrtc_native.macos.template_release.arm64.dylib"
windows.template_release.x86_64 = "res://webrtc/lib/libwebrtc_native.windows.template_release.x86_64.dll"
windows.template_release.x86_32 = "res://webrtc/lib/libwebrtc_native.windows.template_release.x86_32.dll"
android.template_release.arm64 = "res://webrtc/lib/libwebrtc_native.android.template_release.arm64.so"
android.template_release.x86_64 = "res://webrtc/lib/libwebrtc_native.android.template_release.x86_64.so"
ios.template_release.arm64 = "res://webrtc/lib/libwebrtc_native.ios.template_release.arm64.dylib"
ios.template_release.x86_64 = "res://webrtc/lib/libwebrtc_native.ios.template_release.x86_64.simulator.dylib"

But it's really strange that we can still use debug and release as allowed tags inside the editor but not in templates.
Also standalone is replaced by template (source), but this is not mentioned in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants