AGS Development > Other Engine & Editor Development

Can't build MonoAGS

(1/3) > >>

morganw:
It looks like I'm missing a library, but where is it meant to come from?


--- Quote ---/home/mwillcock/.nuget/packages/nerdbank.gitversioning/2.1.23/build/Nerdbank.GitVersioning.targets(5,5): Error MSB4018: The "Nerdbank.GitVersioning.Tasks.GetBuildVe rsion" task failed unexpectedly.
System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: lib/linux/x86_64/libgit2-1196807.so
  at (wrapper managed-to-native) LibGit2Sharp.Core.NativeMethods.git_lib git2_init()
  at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor () [0x00006] in <48079e5da5364f5db01fd1de5fb12b0d>:0
  at LibGit2Sharp.Core.NativeMethods..cctor () [0x00054] in <48079e5da5364f5db01fd1de5fb12b0d>:0
   --- End of inner exception stack trace ---
  at LibGit2Sharp.Core.Proxy.git_libgit2_opt s_set_search_path (LibGit2Sharp.ConfigurationLevel level, System.String path) [0x00000] in <48079e5da5364f5db01fd1de5fb12b0d>:0
  at LibGit2Sharp.GlobalSettings.SetConfigSe archPaths (LibGit2Sharp.ConfigurationLevel level, System.String[] paths) [0x0001a] in <48079e5da5364f5db01fd1de5fb12b0d>:0
  at Nerdbank.GitVersioning.VersionOracle.Op enGitRepo (System.String repoRoot) [0x00012] in <efbc9057c5b448899b5dad3e37009adb>:0
  at Nerdbank.GitVersioning.VersionOracle.Cr eate (System.String projectDirectory, System.String gitRepoDirectory, Nerdbank.GitVersioning.ICloudBuild cloudBuild, System.Nullable`1[T] overrideBuildNumberOffset, System.String projectPathRelativeToGitRepoRoot) [0x00017] in <efbc9057c5b448899b5dad3e37009adb>:0
  at Nerdbank.GitVersioning.Tasks.GetBuildVe rsion.ExecuteInner () [0x000c5] in <30a008b2694b456ca3b3951866aa1bcd>:0
  at MSBuildExtensionTask.ContextAwareTask.E xecute () [0x0005e] in <681907193732458a81da14b112e5c542>:0
  at Microsoft.Build.BackEnd.TaskExecutionHo st.Microsoft.Build.BackEnd.ITaskExecuti onHost.Execute () [0x00023] in <12215e3b02f24e078481ed2a7645c866>:0
  at Microsoft.Build.BackEnd.TaskBuilder.Exe cuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionH ost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLog gingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMo de howToExecuteTask) [0x001f6] in <12215e3b02f24e078481ed2a7645c866>:0  (MSB4018) (AGS.Engine)

--- End quote ---

tzachs:
I got this error as well on Ubuntu 18.04, is that where you're building from?
I haven't gotten a chance to look into it too much, but I think it's a result of this issue: https://github.com/libgit2/libgit2sharp/issues/1585

As a workaround, you should be able to bypass it by disabling Nerdbank (which is the library I use to stamp the dlls with a version). I'm not sure if just deleting version.json from the root folder would do it, or if removing the package from the project is required.

morganw:

--- Quote from: tzachs on 11 Nov 2018, 22:58 ---I got this error as well on Ubuntu 18.04, is that where you're building from?
I haven't gotten a chance to look into it too much, but I think it's a result of this issue: https://github.com/libgit2/libgit2sharp/issues/1585

--- End quote ---
Thanks. This was Debian 9, but the same issue I think. I've only got libcurl3.


--- Quote from: tzachs on 11 Nov 2018, 22:58 ---As a workaround, you should be able to bypass it by disabling Nerdbank (which is the library I use to stamp the dlls with a version). I'm not sure if just deleting version.json from the root folder would do it, or if removing the package from the project is required.

--- End quote ---
I removed the package and modified the function to debug print the versions, and then it built. Unfortunately I can't get the debugger to attach (this seems to be a common monodevelop problem), and running without the debugger doesn't seem to do anything (I guess the program is just exiting).

One thing I didn't think to check, what is OpenGL requirement?

tzachs:

--- Quote from: morganw on 12 Nov 2018, 00:12 ---Unfortunately I can't get the debugger to attach (this seems to be a common monodevelop problem)

--- End quote ---
Did you install the flatpak version? Even though it's the "recommended" version according to their website, it's actually broken with regards to dotnet standard. I was able to debug using their legacy version.
Alternatively, you can also try using Rider instead, or maybe even VS Code.


--- Quote from: morganw on 12 Nov 2018, 00:12 ---and running without the debugger doesn't seem to do anything (I guess the program is just exiting).

--- End quote ---
Did you try the release build or the debug build? You should get at least some console printouts with the debug build, or there really is something happening very early on.


--- Quote from: morganw on 12 Nov 2018, 00:12 ---One thing I didn't think to check, what is OpenGL requirement?

--- End quote ---
I'm not sure what's the minimum requirement, but it seemed to work fine with OpenGL 2.1.
A few other things to try:
* What mono version do you have installed? I currently have version 5.12.0.309.
* It might be the graphics driver. I don't know what's the situation with Debian 9, but at least on one ubuntu 16.04 machine, I had a problem with the default graphics driver, and switching (I think it was from mesa to the legacy driver) fixed it.

morganw:

--- Quote from: tzachs on 12 Nov 2018, 01:29 ---Did you install the flatpak version? Even though it's the "recommended" version according to their website, it's actually broken with regards to dotnet standard. I was able to debug using their legacy version.
Alternatively, you can also try using Rider instead, or maybe even VS Code.

--- End quote ---
I installed the regular version rather than the flatpak version.


--- Quote from: tzachs on 12 Nov 2018, 01:29 ---Did you try the release build or the debug build? You should get at least some console printouts with the debug build, or there really is something happening very early on.

--- End quote ---
I tried both, but I didn't seem to get anything happening except the 'GUI' thread of monodevelop using 90% of the CPU.


--- Quote from: tzachs on 12 Nov 2018, 01:29 ---I'm not sure what's the minimum requirement, but it seemed to work fine with OpenGL 2.1.
A few other things to try:
* What mono version do you have installed? I currently have version 5.12.0.309.
* It might be the graphics driver. I don't know what's the situation with Debian 9, but at least on one ubuntu 16.04 machine, I had a problem with the default graphics driver, and switching (I think it was from mesa to the legacy driver) fixed it.

--- End quote ---
I think I've installed the current versions of everything, and I'm using the built-in Intel driver (so not much in the way of drivers to switch between). I've listed versions below, but I guess it could just be issues with monodevelop.

Spoiler: ShowHide
--- Quote ---$ dotnet --info
.NET Command Line Tools (2.1.202)

Product Information:
 Version:            2.1.202
 Commit SHA-1 hash:  281caedada

Runtime Environment:
 OS Name:     debian
 OS Version:  9
 OS Platform: Linux
 RID:         debian.9-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.202/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.9
  Build    : 1632fa1589b0eee3277a8841ce1770e554ece03 7

$ mono --version
Mono JIT compiler version 5.16.0.179 (tarball Thu Oct  4 10:24:32 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
   TLS:           __thread
   SIGSEGV:       altstack
   Notifications: epoll
   Architecture:  amd64
   Disabled:      none
   Misc:          softdebug
   Interpreter:   yes
   LLVM:          yes(3.6.0svn-mono-/)
   GC:            sgen (concurrent by default)

$ glxinfo | grep "OpenGL version"
OpenGL version string: 2.1 Mesa 13.0.6

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version