Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]getting ksp-ckan to compile/run
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Linubie
Guru
Guru


Joined: 11 Jun 2004
Posts: 382

PostPosted: Thu Sep 26, 2024 9:08 pm    Post subject: [solved]getting ksp-ckan to compile/run Reply with quote

regarding the ckan site https://github.com/KSP-CKAN/CKAN/releases
one should download the .exe and start. But this doesn't work for me:

Code:
mono ckan.exe
exception inside UnhandledException handler: (null) assembly:/usr/lib/mono/4.5/mscorlib.dll type:NullReferenceException member:(null)

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.so.0 assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x000b0] in <6393f66f068d4397a4882b2ae8e73f23>:0
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at System.Drawing.Graphics.FromHdcInternal (System.IntPtr hdc) [0x00000] in <6393f66f068d4397a4882b2ae8e73f23>:0
  at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x00073] in <4b2682d7245a4ec4a411c67d830cb8c3>:0
  at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <4b2682d7245a4ec4a411c67d830cb8c3>:0
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in <4b2682d7245a4ec4a411c67d830cb8c3>:0
  at System.Windows.Forms.XplatUI..cctor () [0x000c0] in <4b2682d7245a4ec4a411c67d830cb8c3>:0
   --- End of inner exception stack trace ---
  at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in <4b2682d7245a4ec4a411c67d830cb8c3>:0
  at CKAN.GUI.GUI.Main_ (System.String[] args, CKAN.GameInstanceManager manager, System.Boolean showConsole) [0x0001b] in <5619c0490fe14ea1b83e6c508f8301de>:0
  at CKAN.CmdLine.MainClass.Gui (CKAN.GameInstanceManager manager, CKAN.CmdLine.GuiOptions options, System.String[] args) [0x00030] in <5619c0490fe14ea1b83e6c508f8301de>:0
  at CKAN.CmdLine.MainClass.RunSimpleAction (CKAN.CmdLine.Options cmdline, CKAN.CmdLine.CommonOptions options, System.String[] args, CKAN.IUser user, CKAN.GameInstanceManager manager) [0x002d6] in <5619c0490fe14ea1b83e6c508f8301de>:0
  at CKAN.CmdLine.MainClass.Execute (CKAN.GameInstanceManager manager, CKAN.CmdLine.CommonOptions opts, System.String[] args) [0x002b4] in <5619c0490fe14ea1b83e6c508f8301de>:0
  at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x000e9] in <5619c0490fe14ea1b83e6c508f8301de>:0

So I tried to compile on my own and installed:
Code:
emerge -av dev-dotnet/dotnet-runtime-nugets dev-dotnet/nuget-license


then download the git and began.
Code:
git clone --depth 1 https://github.com/KSP-CKAN/CKAN.git
cd CKAN
git pull
rm -rf _build
./build
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 8224k  100 8224k    0     0  6451k      0  0:00:01  0:00:01 --:--:-- 6450k
Das Tool "cake.tool" ist bereits installiert.
You must install .NET to run this application.

App: /home/darfwas/.dotnet/tools/dotnet-cake
Architecture: x64
App host version: 8.0.7
.NET location: Not found

Learn more:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=linux-x64&os=gentoo.2.15&apphost_version=8.0.7


Did someone got it run or was able compile?
If, please tell me.
Thank you
_________________
Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something...


Last edited by Linubie on Fri Sep 27, 2024 11:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Carnildo
Guru
Guru


Joined: 17 Jun 2004
Posts: 595

PostPosted: Thu Sep 26, 2024 11:34 pm    Post subject: Reply with quote

I'm running CKAN just fine, using the stock Gentoo ebuild for Mono. Are you running the latest Mono ebuild (6.12.0.199-r2) and did it correctly pull in dev-dotnet/libgdiplus?
Back to top
View user's profile Send private message
Linubie
Guru
Guru


Joined: 11 Jun 2004
Posts: 382

PostPosted: Fri Sep 27, 2024 11:25 am    Post subject: Reply with quote

Thank you!

installing dev-dotnet/libgdiplus makes it work.
_________________
Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum