GameMaker Studio 2 .deb running on Manjaro

Has anyone managed to get GMS2 running on Manjaro? I saw someone in the initial Ubuntu IDE announcement forum get it working but they left no tutorial and they haven’t been online since last year. I tried using debtap and it installs, but it doesn’t open and I can’t make any sense of the errors it gives.

--------------------------------------------------------------------------------
IDE Exception: System.TypeInitializationException: The type initializer for 'Core.CoreOS.System.Gtk' threw an exception. ---> System.DllNotFoundException: libgtk-x11-2.0.so.0 assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Core.CoreOS.System.Gtk.AtomIntern(string,bool)
  at Core.CoreOS.System.Gtk..cctor () [0x00000] in <dc529e30ce374b4286b8969071785d8e>:0 
   --- End of inner exception stack trace ---
  at Core.CoreOS.System.SystemPlatformSDL2.CreateWindow (System.String _title, System.Int32 _width, System.Int32 _height, Core.CoreOS.Graphics.WindowState initialState) [0x00310] in <dc529e30ce374b4286b8969071785d8e>:0 
  at Core.CoreOS.Graphics.Windowing.CreateWindow (System.String _title, System.Int32 _width, System.Int32 _height, Core.CoreOS.Graphics.WindowState initialState) [0x00000] in <dc529e30ce374b4286b8969071785d8e>:0 
  at YoYoStudio.Graphics.Desktop..ctor (System.Int32 _width, System.Int32 _height, System.String _title, Core.CoreOS.Graphics.WindowState initialState) [0x00006] in <1fe772d9841542fa878dede1b19e5475>:0 
  at YoYoStudio.Graphics.DesktopManager.Add (System.Int32 _width, System.Int32 _height, System.String _title, Core.CoreOS.Graphics.WindowState initialState) [0x00000] in <1fe772d9841542fa878dede1b19e5475>:0 
  at YoYoStudio.GUI.WindowManager.AddDesktopEmpty (System.Int32 _width, System.Int32 _height, System.String _title, Core.CoreOS.Graphics.WindowState initialState, System.Boolean _visible, YoYoStudio.GUI.DPIDelegate _dpicallback) [0x00006] in <dab8465099d84ba6bb49c0242c4b3e71>:0 
  at YoYoStudio.GUI.WindowManager.AddDesktop (System.Int32 _width, System.Int32 _height, System.String _title, System.Boolean _bAddEmptyWorkspace, Core.CoreOS.Graphics.WindowState initialState, YoYoStudio.GUI.DPIDelegate _dpicallback) [0x0001b] in <dab8465099d84ba6bb49c0242c4b3e71>:0 
  at YoYoStudio.IDE.Initialise (System.String[] _args, System.Int32 _initialWidth, System.Int32 _initialHeight) [0x00ae9] in <dab8465099d84ba6bb49c0242c4b3e71>:0 
  at YoYoStudio.IDE.Execute (System.String[] _args, System.Int32 _initialWidth, System.Int32 _initialHeight) [0x00038] in <dab8465099d84ba6bb49c0242c4b3e71>:0 
--------------------------------------------------------------------------------
####################################
Break in FatalErrorWarning (IDE:3752)
####################################
PrimitiveBuilder was not called finished correctly, you MUST call End() src: Scene::DrawGrid

If anyone has managed to get it working or has any idea what this means, please let me know.

The error looks like something is lacking, and the missing part looks like something that is provided by gtk2 and/or lib32-gtk2. Your profile mentions KDE, Do you have these installed? (they are also part of steam-native)

Or a older version of these packages is needed, the SDK-FAQ mentions Ubuntu 20.04 as a base, this could be the issue since it is 2 years ago.

$ pamac search --files libgtk-x11-2.0.so.0                                       ✔ 
/usr/lib32/libgtk-x11-2.0.so.0 is owned by lib32-gtk2
/usr/lib32/libgtk-x11-2.0.so.0.2400.33 is owned by lib32-gtk2
/usr/lib/libgtk-x11-2.0.so.0 is owned by gtk2
/usr/lib/libgtk-x11-2.0.so.0.2400.33 is owned by gtk2

Check if the packages gtk2 and lib32-gtk2 are installed.

Yep I’ve got both those packages installed so they should be there. I could try reinstalling them but otherwise I guess GMS is having trouble locating them?

I was able to find each of those files in the directories shown so I don’t think it’s an issue of them being missing. Not sure why GameMaker isn’t able to locate it.

Ok I tried it myself… pretty simple solution…

LD_PRELOAD=/usr/lib/libgtk-x11-2.0.so.0 mono GameMakerStudio.exe  

I guess, since it is strictly a ubuntu package and uses mono, the paths are fixed.

The path on ubuntu:

/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.33

Ubuntu – File list of package libgtk2.0-0/jammy/amd64

So well, you see the difference. Workaround is pre-loading the lib.

1 Like

Hell yeah, worked like a charm! Tysm.
Do you happen to know how to add that to the .desktop shortcut? I tried replacing the Exec= line with that command but it doesn’t seem to work.

Exec=env LD_PRELOAD=/usr/lib/libgtk-x11-2.0.so.0 mono GameMakerStudio.exe

Perfect. Thank you so much for the help man :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.