Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Raspberry Pi / [STICKY] How to get AGK working on the Raspberry Pi 4.

Author
Message
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 22nd Feb 2021 21:14 Edited at: 24th Apr 2021 18:22
I've tried to make the process even easier by writing a bash script to automate the process.

Attached are two files: install.sh and agkshader-fix.sh

You will need to make the scripts executable:

chmod +x install.sh
chmod +x agkshader-fix.sh

Run the install.sh script in a folder that you want to install AGKTier2, everything you need will
be installed to that folder.

When the script is complete, hopefully without issues, The PiPlayer will be saved in
AGKTier2/apps/interpreter_linux/build.

agkshader-fix.sh will edit AGKShader.cpp (line 1841) stored in AGKTier2/common/Source
you can choose to apply this fix when you run install.sh or you can apply the fix later
using agkshader-fix.sh

Any issues please post back here, I hope this helps.

Attached is a PiPlayer for your convenience.

chmod +x PiPlayer to make it executable.


Assuming you are using Raspbian buster (32 bit)

Please refer to https://github.com/TheGameCreators/AGKTier2/wiki/How-to-compile-AppGameKit-Tier2-libraries

1) Download AppGameKit 2021.02.10 (Raspberry Pi) (168.74MB) from your account. - unzip to a location of your choice.

2) git clone https://github.com/TheGameCreators/AGKTier2

3) Download GLFW - git clone https://github.com/glfw/glfw

4) If you don't have doxygen installed - sudo apt-get install doxygen

cd glfw

mkdir build
cd build
cmake ..

make

make install

5) cd AGKTier2

I stated that I experienced a green overlay due to a shader issue.

If you change line 1841 in AGKShader.cpp (AGKTier2/common/Source) from
colorVarying = color; to colorVarying = vec4(1.0, 1.0, 1.0, 1.0);
that seems to solve the issue.

6) make

7) cd apps/interpreter_linux

8) make

If successful you should see a folder called 'build' with LinuxPlayer32, rename LinuxPlayer32 to PiPlayer,
then replace the Tier1 PiPlayer found in Tier1/Compiler/interpreters with your new PiPlayer.

Hopefully the instructions will help you get AppGameKit working on the RPI4.

Attachments

Login to view attachments
EdzUp
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: UK
Posted: 23rd Feb 2021 09:42
Thanks for the information will definitely try that out
-EdzUp
Patreon: https://www.patreon.com/EdzUp
Buy me a coffee:https://www.buymeacoffee.com/EdzUp
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 7th Mar 2021 01:44
stickied. should continue to prove useful. thanks, tboy.
[My Itch.io Home] [Now Playing]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
JelliedHeels
3
Years of Service
User Offline
Joined: 13th Mar 2021
Location:
Posted: 13th Mar 2021 20:12
I thought I would give this a try out prior to buying the studio version. I am sooo glad I did!

I noticed that there was a Raspi version, so I went for that simply to stop dross building up on my windows machine.
I ended up having to go through reams of forum posts to try to get it working. I compiled the sample programs but could not run them
This is about as useful as having write only memory.

As a demo for the companies products, it fails to fill me with anything even bordering on confidence.
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 19th Apr 2021 07:30 Edited at: 19th Apr 2021 08:05
Hey mate, so I've been going through this and it keeps hitting a file not found error when I try to make AppGameKit near the end. It seems to not be able to find gl.h - nothing I do seems to change that, and I can't compile it without it... Any thoughts? I have VERY little experience with Linux so it's throwing me for a loop.

Edit: I think I found a solution. Never mind.
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 19th Apr 2021 11:16 Edited at: 19th Apr 2021 14:05
If I might be so bold, I might post here a revised set of steps aimed at someone like me who is a total Linux noob. It ensures a lot of things will be more likely to work without any futzing around and potentially breaking things like I did the first time I tried it hahaha


1) Ensure you're running the latest version of Raspbian OS (Debian Linux build for Raspberry Pi - their official website walks you through installing it)

2) Download AppGameKit 2021.02.10 (Raspberry Pi) (168.74MB) from your account to the Raspberry Pi. - unzip to a location of your choice.

3) In Terminal, type the following, allowing for all processing to complete for each step:

sudo apt-get install cmake

sudo apt-get install g++

sudo apt-get install libopenal-dev

sudo apt-get install libcurl4-openssl-dev

sudo apt-get install libpng-dev

sudo apt-get install libjpeg-dev

sudo apt-get install xorg-dev

sudo apt-get install libglu1-mesa-dev

sudo apt-get update

sudo apt-get install libudev-dev

git clone https://github.com/TheGameCreators/AGKTier2

git clone https://github.com/glfw/glfw

sudo apt-get install doxygen

cd glfw

mkdir build

cd build

sudo cmake ..

sudo make

sudo make install


4) Navigate to the AGKTier2 folder in terminal

5) In terminal, type:

sudo make
cd apps/interpreter_linux
make


6) If successful you should be able to navigate in file explorer to the folder "AGKTier2/apps/interpreter_linux" and see a folder called 'build' with a file inside called "LinuxPlayer32". Rename LinuxPlayer32 to "PiPlayer" (no quotes).

7) Using file explorer, browse to the folder where you originally downloaded AppGameKit for Pi, then replace the Tier1 PiPlayer found in Tier1/Compiler/interpreters with your new PiPlayer that you renamed in the previous step.

Now, to run AppGameKit on your Pi, all you need to do is go back to the home folder where you originally unzipped AppGameKit in step 2 and run the AppGameKit application! It should all run just fine.
Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cymru
Posted: 30th Apr 2021 10:15
Great contribution.. kudos..
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 10th May 2021 17:36
thanks your step by step guide worked
i got some weird warnings and some files skipped but did see the new player after and replaced it
and tested santas elf that came with pi that worked next step is to test my stuff
thankyou

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 10th May 2021 20:58
Good stuff! I enjoy using the Pi, it's such a fun bit of kit and a very viable development platform.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA

Login to post a reply

Server time is: 2024-03-29 10:57:55
Your offset time is: 2024-03-29 10:57:55