#Building Everest core on Linux

27 messages · Page 1 of 1 (latest)

tawdry fossil
#

Hey, I am trying to build and install the core version of Everest on my (22.04.1-Ubuntu x86_64) laptop, I have followed the Compiling Everest yourself section but when I run dotnet publish it fails with the following output:

mayrom@mayrom-ThinkPad-S1-Yoga-12:~/dev/Everest$ dotnet publish
MSBuild version 17.4.4+8e9cb2952 for .NET
  Determining projects to restore...
/home/mayrom/dev/Everest/external/MonoMod/src/MonoMod.RuntimeDetour.HookGen/MonoMod.RuntimeDetour.HookGen.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.ubuntu.22.04-x64. No packages exist with this id in source(s): nuget.org [/home/mayrom/dev/Everest/Everest.sln]
/home/mayrom/dev/Everest/external/MonoMod/src/MonoMod.Patcher/MonoMod.Patcher.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.ubuntu.22.04-x64. No packages exist with this id in source(s): nuget.org [/home/mayrom/dev/Everest/Everest.sln]
  Failed to restore /home/mayrom/dev/Everest/external/MonoMod/src/MonoMod.Patcher/MonoMod.Patcher.csproj (in 2.87 sec).
  Failed to restore /home/mayrom/dev/Everest/external/MonoMod/src/MonoMod.RuntimeDetour.HookGen/MonoMod.RuntimeDetour.HookGen.csproj (in 2.87 sec).
  13 of 15 projects are up-to-date for restore.

I am not so sure what am I missing.

broken stag
#

@fathom zephyr

fathom zephyr
#

God damit it's a monomod issue

fathom zephyr
tawdry fossil
#

I dont have my laptop atm ill look into it later on this weekend hopefully it will help

tawdry fossil
# fathom zephyr Just looked into this, and I'm not really sure what's happening there Can you tr...

I have tried it and it still failed, so I wanted to make sure its not an installation issue. so I uninstalled, mono-complete, dotnet-sdk-7.0 and aspnetcore-runtime-7.0 and reinstalled them all and now I get a different error:

mayrom@mayrom-ThinkPad-S1-Yoga-12:~/dev/Everest$ dotnet publish
MSBuild version 17.4.4+8e9cb2952 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  DiscordGameSDK -> /home/mayrom/dev/Everest/DiscordGameSDK/bin/Debug/net7.0/DiscordGameSDK.dll
  DiscordGameSDK -> /home/mayrom/dev/Everest/DiscordGameSDK/bin/Debug/net7.0/publish/
  Binding MiniInstaller AppHosts...
  MiniInstaller -> /home/mayrom/dev/Everest/MiniInstaller/bin/Debug/net7.0/MiniInstaller.dll
  MiniInstaller -> /home/mayrom/dev/Everest/MiniInstaller/bin/Debug/net7.0/publish/
/home/mayrom/dev/Everest/external/MonoMod/tools/Common.CS.targets(25,5): error : MSBuild version is too old to build this project; currently 17.4.4, needs at least 17.5.0 [/home/mayrom/dev/Everest/external/MonoMod/src/MonoMod.SourceGen.Internal/MonoMod.SourceGen.Internal.csproj::TargetFramework=netstandard2.0]
/home/mayrom/dev/Everest/external/MonoMod/tools/Common.CS.targets(25,5): error : MSBuild version is too old to build this project; currently 17.4.4, needs at least 17.5.0 [/home/mayrom/dev/Everest/external/MonoMod/src/MonoMod.ILHelpers.Patcher/MonoMod.ILHelpers.Patcher.csproj::TargetFramework=net6.0]

I am not so sure whats going on and why my fresh install of .net is already out of date, the docs for .net on Linux are kinda messy, mb installing .net from the Microsoft package repository or just doing a manual installation would help?

#
mayrom@mayrom-ThinkPad-S1-Yoga-12:~/dev/Everest$ dotnet --list-sdks
7.0.108 [/usr/lib/dotnet/sdk]

Its already out of date... Ill try to get the new 7.0.305 version

fathom zephyr
#

MonoMod is known for requiring way too recent dotnet versions laugheline

#

I'll check what version works for me once i have access to my laptop in approx. 3h

tawdry fossil
tawdry fossil
#

After getting the latest version from the Microsoft repo, I get a new error 🥲

#

This is so frustrating... how can I have the runtime installed and missing at the same time

mayrom@mayrom-ThinkPad-S1-Yoga-12:~/dev/Everest$ dotnet --list-runtimes
Microsoft.AspNetCore.App 7.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
fathom zephyr
#

it's msbuild not the runtime which is at fault

tawdry fossil
#

isn't it bundled with the .NET SDK install?

#

well might be worth purging everything and re-installing from scratch

fathom zephyr
#

yeah, but with the host i thubk

#

it's shared between runtimes afaik

#

oh and also, did you only install the runtime or the entire sdk?

#

you definitely need the latter

tawdry fossil
#

I think I got both, you can list them up with dotnet --list-sdks right?

tawdry fossil
#

Aight I got it working, after purging everything and reinstalling AGAIN, it still didn't work, so I after spotting this .NET location: Not found in the error message I figured out that my env are probably all messed up because my installing/uninstalling cycles, so DOTNET_ROOT used to point to /usr/lib/dotnet and I set it to /usr/share/dotnet and now it works.
TLDR: Ubuntu repo is too old for building Everest and Microsoft repo is clownelineing.

fathom zephyr
#

Nah the Ubuntu repos are known for being bs laugheline

#

There's issues even with just installing everest on non-latest ububtu

tawdry fossil
#

good to know lol

#

kinda new to running linux on my day to day machine hopefully Ubuntu wasn't a mistake cluelesseline

fathom zephyr
#

Seems like you at least need 7.0.200, which not even the regular arch packages ship at this point widegladeline1