• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Linux WOW Linux doesnt compile! Please Help!

Evanski

Raccoon Lord
Forum Staff
Moderator
Im running on a Raspberry Pi 4, Ubuntu Desktop 20.10 64-bit

I've followed this https://help.yoyogames.com/hc/en-us/articles/235186168

YYC I get
bash: /Linux_sample_project: No such file or directory

VM I get
bash: /Linux_sample_project: Exec format error

Create Executable works but I can not run the binary file it produces


I also get an error saying unable to locate package libxfont1

Im 99% sure all of this is because im on a raspberry pi but on the off chance thats not it does anyone have any idea how to get this to work?
 

O.Stogden

Member
I followed the guide using a fresh install of Raspberry Pi OS 32-bit (https://www.raspberrypi.org/software/) and it worked fine for VM, although YYC does not work resulting in a clang/nproc error.

The error you're getting from the VM is because the architecture is wrong, which makes me think there's an issue with the OS you're using. If you're using a 64-bit OS on your RPi, that could cause the issue. 64-bit isn't supported very well on the RPi right now.

The documentation does seem to indicate that GMS 2.3.x only exports to 32-bit ARM, not 64-bit ARM as well.

GMS 2 Documentation said:
IMPORTANT! It is worth noting that - as of GMS 2.3.1 - you can connect Linux devices with 32bit ARM processors and also compile/test games on those devices as long as they are correctly setup as per this guide. GameMaker Studio 2 will detect what kind of processor the device is using (ARM or x64) and create the required executable automatically.
It says 32-bit ARM and then ARM or x64 (64-bit x86). Doesn't mention specifically that it supports 64-bit ARM.

What RPi 4 did you get anyway? For the 2GB model, you definitely want to be running 32-bit, not 64-bit OS's. If you're 4GB or 8GB then you can use either, but 4GB won't see a huge benefit from it.
 
Last edited:

O.Stogden

Member
It'd be a shame to use a 32-bit OS, as you'd lose a GB of RAM, but you'd be able to use an OS other than straight-up Ubuntu, which isn't great on the RPi.

You could try the 32-bit version of Ubuntu MATE if you didn't want to use Raspberry Pi OS: https://ubuntu-mate.org/

It's designed for lower-end hardware, such as the RPi, and offers both 32-bit and 64-bit versions for RPi.

Of course this is for if you want to use GMS apps on your RPi, otherwise, stick with 64-bit, as it'll be a little faster for you than downgrading to 32-bit.
 

Evanski

Raccoon Lord
Forum Staff
Moderator
It'd be a shame to use a 32-bit OS, as you'd lose a GB of RAM, but you'd be able to use an OS other than straight-up Ubuntu, which isn't great on the RPi.

You could try the 32-bit version of Ubuntu MATE if you didn't want to use Raspberry Pi OS: https://ubuntu-mate.org/

It's designed for lower-end hardware, such as the RPi, and offers both 32-bit and 64-bit versions for RPi.

Of course this is for if you want to use GMS apps on your RPi, otherwise, stick with 64-bit, as it'll be a little faster for you than downgrading to 32-bit.
I want an linux export, its really only on a RBPi for the sake of thats the only extra device I have
 

O.Stogden

Member
Ah ok.

If you're meaning exporting so people on Linux can play, an RPi can't do that, it'd only allow other ARM devices to play, it can't compile for x86.

So any desktop PC's running Linux won't run the executable created by an RPi.

You'd be best making a Linux VM on your dev machine, or installing Linux as a secondary OS on another device (like an old laptop or PC) if you had one.
 
Top