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

Can't seem to build or run with Mono in Linux #11

Open
ghost opened this issue Jun 16, 2020 · 8 comments
Open

Can't seem to build or run with Mono in Linux #11

ghost opened this issue Jun 16, 2020 · 8 comments

Comments

@ghost
Copy link

ghost commented Jun 16, 2020

Trying to get running in Manjaro, Monodevelop doesn't have a clue what to do with any of your project files, keeps looking for MS libraries. Mono itself doesn't like running the exe and there doesn't seem to be a Linux executable in the release archive. Any chance you could point me in the right direction?

@francot514
Copy link
Owner

You need to install Mono develop and Monogame libraries

@ghost
Copy link
Author

ghost commented Jun 17, 2020

You need to install Mono develop and Monogame libraries

I made 100% sure this was installed, trying to run the game using mono gets me
Unhandled Exception:
System.TypeLoadException: Could not load type of field 'FSO.Client.GameStartProxy:Game' (0) due to: Could not load file or assembly 'MonoGame.Framework, Version=3.4.0.459, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'FSO.Client.GameStartProxy:Game' (0) due to: Could not load file or assembly 'MonoGame.Framework, Version=3.4.0.459, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

And trying to load any of the projects in monodevelop gives me
The type initializer for 'MonoDevelop.Projects.MSBuild.MSBuildEvaluationContext' threw an exception.

@francot514
Copy link
Owner

You getting Monogame version issues, seems you need to use 3.4 for it suppose and Open gl also needed (soft_openal)

@coreybruce
Copy link

coreybruce commented Mar 17, 2021

OS: Manjaro Arm64, Manjaro x64
Same issue, I am using Mono 6.12.0.107, openal, opengl and SDL2. Anything else we need?

Build/setup instruction need to be documented on the Readme

Unhandled Exception:
System.TypeLoadException: Could not load type of field 'FSO.Client.GameStartProxy:Game' (0) due to: Could not load file or assembly 'MonoGame.Framework, Version=3.4.0.459, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'FSO.Client.GameStartProxy:Game' (0) due to: Could not load file or assembly 'MonoGame.Framework, Version=3.4.0.459, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

@coreybruce
Copy link

Any progress on fixing this?

@francot514
Copy link
Owner

Is asking to build with Monogame 3.4, try that version

@coreybruce
Copy link

coreybruce commented Mar 25, 2021

Everyone has moved on to newer versions of mono like 6.12 and no longer available unless I download and build it manually, 3.4 came out back in 2015 so maybe you should update it to support 6.12 and newer and not a static version as it result in old code running into complications. I've got other projects using mono 6.12 just fine in Linux.

@Kreijstal
Copy link

I agree, update to new version of mono

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

No branches or pull requests

3 participants