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

Unable to build mono-glue on Godot 4 beta #65936

Closed
mgrigajtis opened this issue Sep 16, 2022 · 3 comments · Fixed by godotengine/godot-docs#6792
Closed

Unable to build mono-glue on Godot 4 beta #65936

mgrigajtis opened this issue Sep 16, 2022 · 3 comments · Fixed by godotengine/godot-docs#6792

Comments

@mgrigajtis
Copy link

Godot version

Godot Engine v4.0.beta.mono.custom_build (57bdddc)

System information

Windows 11 Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 3060 Ti

Issue description

Errors are generated when attempting to build mono-glue:

ERROR: hostfxr_initialize_for_runtime_config failed with code: -2147450733
at: (modules\mono\mono_gd\gd_mono.cpp:201)
ERROR: Parameter "load_assembly_and_get_function_pointer" is null.
at: `anonymous-namespace'::initialize_hostfxr_and_godot_plugins (modules\mono\mono_gd\gd_mono.cpp:274)
ERROR: Parameter "godot_plugins_initialize" is null.
at: GDMono::initialize (modules\mono\mono_gd\gd_mono.cpp:403)
Editing project: D:/Godot 4 Projects/Test Scene

Godot Engine v4.0.beta.mono.custom_build.57bdddce0 - https://godotengine.org
ERROR: Condition "!windows.has(p_window)" is true.
at: VulkanContext::window_resize (drivers\vulkan\vulkan_context.cpp:1497)
Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 3060 Ti

ERROR: hostfxr_initialize_for_runtime_config failed with code: -2147450733
at: (modules\mono\mono_gd\gd_mono.cpp:201)
ERROR: Parameter "load_assembly_and_get_function_pointer" is null.
at: `anonymous-namespace'::initialize_hostfxr_and_godot_plugins (modules\mono\mono_gd\gd_mono.cpp:274)
ERROR: Parameter "godot_plugins_initialize" is null.
at: GDMono::initialize (modules\mono\mono_gd\gd_mono.cpp:403)

Steps to reproduce

scons p= tools=yes module_mono_enabled=yes mono_glue=no
<godot_binary> --generate-mono-glue modules/mono/glue

Minimal reproduction project

No response

@raulsntos
Copy link
Member

raulsntos commented Sep 16, 2022

Make sure you have installed the .NET SDK 6.0+. Can you check which SDK version and runtimes you have available by executing dotnet --info in a console?

Also, the mono_glue argument no longer exists take a look at the updated steps in the module's README.md, and the godot binary has recently been renamed (64 -> x86_64) so make sure you are not accidentally running an old binary instead of the one you just compiled.

For your convenience, here is an example of the full list of commands that you should be executing:

scons p=windows tools=yes module_mono_enabled=yes
bin/godot.windows.tools.x86_64.mono --generate-mono-glue modules/mono/glue
python ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir ./bin --push-nupkgs-local ~/MyLocalNugetSource

@bitmammoth
Copy link

Is there documentation somewhere on building export templates with this new method? Do we use the old method minus the deprecated commands?

@raulsntos
Copy link
Member

raulsntos commented Oct 7, 2022

The commands have changed a bit recently (see more information about these changes in #66242), these would be the commands to build the editor and assemblies now:

scons p=windows target=editor module_mono_enabled=yes
bin/godot.windows.editor.x86_64.mono --generate-mono-glue modules/mono/glue
python ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir ./bin --push-nupkgs-local ~/MyLocalNugetSource

To build the export templates:

scons p=windows target=template_debug module_mono_enabled=yes
scons p=windows target=template_release module_mono_enabled=yes

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.

4 participants