ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: Rebusmind on August 11, 2019, 03:42:56 am

Title: Compile enigma on ClockworkPI GameShell
Post by: Rebusmind on August 11, 2019, 03:42:56 am
Hi there,

I'm a game developer using Game Maker (been using it for 10 years) and I recently bought a GameShell (https://www.clockworkpi.com/), which is best described as a Linux handheld with an ARM architecture. I'm not too familiar with the specifics, but I'd love to port some of my smaller Game Maker projects to the GameShell and from what I've heard ENIGMA is the only viable option to achieve this.

So far I've tried putting ENIGMA on my GameShell to build directly on the device (I've tried this tutorial (https://www.raspberrypi.org/forums/viewtopic.php?t=217745) and read through this (https://enigma-dev.org/tracker/index.php?id=1253)), but during the process I got a lot of fatal errors because of a missing "project.pb.h".

If somebody here knows a way to make ENIGMA run on the GameShell and would like to share his knowledge with a total beginner, that would be very much appreciated.
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: hpg678 on August 11, 2019, 07:18:11 am

Greetings!

i've looked at your post with interest and is looking into your issue. In writing this,  i have downloaded a Raspberry PI emulator on my Windows 8.1 PC and is looking setup ENIGMA.  Bearing that Raspberry OS is debian based, the Linux installer method indicated in the WIKI should work.

I've also taken a look at the GameShell console. I'm impressed as far as first impressions go. Based on the specs I've seen advertised, it has Linux 4.1 Kernal. Don't know if it is possible to do, but you may have to install a desktop environment like LXDE, MATE, DEBIAN etc, if there is not one already installed.  Then it should be viable to install ENIGMA.

I'll continue to look into this, so be on the look out for updates.

 (Y) (Y)

Title: Re: Compile enigma on ClockworkPI GameShell
Post by: time-killer-games on August 11, 2019, 05:44:57 pm
Don't know if it is possible to do, but you may have to install a desktop environment like LXDE, MATE, DEBIAN etc, if there is not one already installed.

Debian is not a desktop environment. I seriously doubt an entire desktop environment can be installed on this thing.
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: hpg678 on August 16, 2019, 09:32:48 am
Greetings!


I've been able to install a Raspberry PI emulator on my Windows machine, but I've not been able to go any further yet.


I was thinking that if it is possible to have WINE or something similar to run Windows games, then it would be matter of compiling them as Windows .exe. As of the moment ENIGMA doesn't compile to ARM. I've been assured that 'it isn't that difficult to do' but time has me constrained for now. However, I do intend to look into it next week.



Title: Re: Compile enigma on ClockworkPI GameShell
Post by: Rebusmind on August 17, 2019, 02:42:33 pm
As of the moment ENIGMA doesn't compile to ARM. I've been assured that 'it isn't that difficult to do' but time has me constrained for now. However, I do intend to look into it next week.
That's weird, the only reason I looked into ENIGMA was because someone in the GameShell forums told me it was able to combile to ARM. :D
Thanks for looking into the issue, I still feels very much lost. ^^'
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: hpg678 on August 20, 2019, 06:31:22 am
Greetings!


Progress has been a bit disappointing when compiling ENIGMA. The errors i've encountered has to do with google protobuffers and libpugxml which are essential to building the compiler. The IDE LGM, loads up fine. I will continue to look into it.


I installed Raspbian Desktop onto a laptop and that is what i am using to test. The Laptop is a HP Pavillion dv6-321 with an AMD CPU, 6GB of DDR3 Ram and a 120GB SATA Hard drive. The OS is Debian 9. I've gotten Windows 32bit software to run, including Gamemaker 8 Pro and other games/projects compiled with ENIGMA.


So there you have it. Sorry its not good news but rest assured, I will continue to work on it.
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: hpg678 on August 22, 2019, 08:08:23 am
Greetings! I am so happy to announce that finally, I have been able to build ENIGMA and compile an empty game.  :dance: :dance:

Whew......that was indeed quite a challenge! At times it was frustrating, but in the end......totally worth it.  (Y) (Y)

I will be doing a video on it on my YouTube channel as well as an article on the procedure I did. In a nutshell, I had to




Title: Re: Compile enigma on ClockworkPI GameShell
Post by: Rebusmind on August 22, 2019, 09:53:39 am
Wow, that's fantastic news! :D

Could you maybe write down the steps to compile an ENIGMA project directly on the GameShell? I'm planning to mostly test on Windows first and only as a last step compile and test on the GS, so I was hoping that I wouldn't need to set up a cross-compiling solution as well.

Once again thanks so much for taking the time to figure this out! :)
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: hpg678 on August 23, 2019, 01:27:48 pm
Ok. So I've completed a short guide for you to follow. This guide covers installing the Raspberry PI Desktop onto a PC which in theory, should work as if running an actual Raspberry PI or Gameshell.


there are 3 formats available.


Download link is here (https://drive.google.com/file/d/1-mrlLMbOJoQgSJ5eyCn7cFKf9cHXAgTU/view?usp=sharing https://drive.google.com/file/d/1LYko5sdfuNKi5DWYj6dSxZMqloGkTETq/view?usp=sharing https://drive.google.com/file/d/1T1ntutEGKbbIv6BHKtBhCSezGm2jkLOd/view?usp=sharing). Hope you enjoy building games with Enigma. (Y) (Y)
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: Rebusmind on August 24, 2019, 02:48:16 am
That's amazing, thanks so much!

I will go through the mentioned steps and see if I can get it working directly on the GameShell and then report back. :)
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: Rebusmind on August 24, 2019, 08:21:07 am
Okay, I think it worked, at least I didn't get any fatal errors anymore. ^^

One thing: in the pdf it says "libpngxml-dev" at the end of the dependencies, but (hopefully) it should be "libpugixml-dev".

Now the only question is how do I compile on the GameShell. I think I have to use the emake command, but when I use the example from this link (https://enigma-dev.org/docs/Wiki/Command_line_interface) it says "No such file or directory". Do I have to install emake separately?

EDIT:
I think I'm slowly getting there. I figured out that "make emake" is the line I was looking for. Now I'm installing other dependencies for that like rapidjson and yaml-cpp. Hopefully there is an end in sight soon, cause while making progress I still have no idea what I'm actually doing. ^^
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: hpg678 on August 24, 2019, 07:09:19 pm
Taking into account that the Gameshell has 1Gb of Ram, i think using emake would be your best option. However I dont use it, so I can't be of much help to you in this area. You'd be better off asking one of the others on the Discord channel.


In either case, I am happy to be of some help to you. Here's hoping you do succeed either way.

Title: Re: Compile enigma on ClockworkPI GameShell
Post by: time-killer-games on August 25, 2019, 02:50:16 am
Join our discord and I'll help you with emake. It's not that hard once you know what you can use for each command line option, and where you get that info. My username on there is Samuel Venable.
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: Rebusmind on August 25, 2019, 08:37:29 am
Yay, I got it working after installing rapidjson, yaml-cpp and boost! Already compiled a tiny test game. :)

Can't wait to get a real game working on it. :D

(https://i.imgur.com/hWg56k9b.jpg)
Title: Re: Compile enigma on ClockworkPI GameShell
Post by: hpg678 on August 25, 2019, 05:11:49 pm
Congratulations! That's really wonderful to hear.