Open Enoti722 opened 3 years ago
The problem is here:
modules\\mono/mono_gc_handle.h:38:7: error: definition of type 'MonoGCHandle' conflicts with typedef of the same name
class MonoGCHandle : public Reference {
C:\\Program Files\\Mono\\Mono-installs\\android-armeabi-v7a-release\\include\\mono-2.0\\mono/utils/mono-forward.h:13:16: note: 'MonoGCHandle' declared here
typedef void * MonoGCHandle;
^
I can't reproduce it locally on Linux with a local build of Mono 6.8.0.
It also seems to work fine on the official buildsystem (also Linux-based) with Mono 6.12.0.111.
Here's the content of android-armeabi-v7a-release/include/mono-2.0/mono/utils/mono-forward.h
here:
/**
* \file
*
* (C) 2018 Microsoft, Inc.
*
*/
#ifndef _MONO_UTILS_FORWARD_
#define _MONO_UTILS_FORWARD_
typedef struct _MonoDomain MonoDomain;
typedef struct _MonoJitInfo MonoJitInfo;
#endif
No typedef for MonoGCHandle
.
I took the opportunity to fix this on master together this change: https://github.com/godotengine/godot/commit/0b814ea78d6b065e8e0785155207bd80b3d845c8
Since this doesn't look too urgent (as Mono added the MonoGCHandle
typedef after version 6.12 which is what we use) maybe I should backport that entire commit rather than just doing the rename.
I'm getting the same error, however, I'm building Godot with SteamGodot, the Linux build worked perfectly, however, when compiling to windows I get the same error.
MinGW Mono version:
Mono JIT compiler version 6.13.0 (master/981b5837513)
Copyright (C) Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:
SIGSEGV: normal
Notification: Thread + polling
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
Suspend: hybrid
GC: sgen (concurrent by default)
Godot version 3.2 commit a18df71789a36b318c40d691efdb4da1e574bbfd
Operating System: Ubuntu 20.04.1 LTS Kernel: Linux 5.4.0-59-generic Architecture: x86-64
@AlekEagle I would advise using Mono 6.12 which is what we use for official Godot builds.
Mono 6.13 is not released, and likely won't ever be, as Mono development now happens and is versioned along dotnet-runtime.
that works, thanks!
Godot version: 3.2 branch 9df3d06
OS/device including version: Windows 10 64-bit VS 2019 Native tools Command Prompt x64
Issue description: Firstly I compiled the stable branch of 3.2 with mono enabled (following the instructions) Also compiled mono for android (https://github.com/godotengine/godot-mono-builds) Then in VS 2019 Tools I'm compiling templates: set env variables, running command scons p=android target=release module_mono_enabled=yes android_arch=armv7 mono_prefix="Path-To-Compiled-Monos\android-armeabi-v7a-release" And on file Godot-Source-Path\modules\mono\csharp_script.cpp I have this issue:
Hope I wrote enough and you will help with it. Thanks in advance :)
Steps to reproduce:
Compile 9df3d06 Godot 3.2 Compile Mono for Android from https://github.com/mono/mono (master branch) Compile Android Templates with scons p=android target=release module_mono_enabled=yes android_arch=armv7 mono_prefix="Path-To-Compiled-Monos\android-armeabi-v7a-release"