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 / Getting AGK Tier 1 working on Raspberry Pi 4

Author
Message
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 31st Oct 2019 21:07 Edited at: 31st Oct 2019 21:22
Most of the examples work, but I haven't tested them all yet.

I'm using Raspbian Buster, AGK-Classic

I managed to get it working by downloading AGKTier2-master from TGC's github respository.
Link: https://github.com/TheGameCreators/AGKTier2

1) Download AGKTier2-master

2) Build interpreter-linux, found in AGKTier2-master/apps

3) Rename LinuxPlayer32 to PiPlayer

4) Replace PiPlayer with the original PiPlayer in Tier1/Compiler/interpreters

You'll be able to run and build the examples using the editor.

Only one issue is with 3D examples, I don't know why the colour is green for the whole 3D scene,
possibly something to do with shaders but I don't have any experience with that, will keep digging to find out
why.

If anyone can solve this issue please let me know
XANAX 2B
20
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 5th Dec 2019 21:32
Hello tboy,

Can you explain me this more in details ? I'm a newbie under Linux.
I've tried to type "make" inside the "interpreter-linux" folder, but the compilation stops with errors.
I've also tried to type make in the "AGKTier2-master" folder, it compiles, but i get nothing executable.
Emotional High Potential
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 8th Dec 2019 14:01
Hi XANAX2B,

Could you upload an image of the errrors? If you 'sudo apt-get install' all the relevant libraries you should be
able to type 'make' within the apps/interpreter_linux folder therefore generate a LinuxPlayer32 from an RPi 4,
assuming you have successfully built AppGameKit Tier 2 first.

Look up the Linux instructions at the bottom of the page at:

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

XANAX 2B
20
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 10th Dec 2019 12:25 Edited at: 10th Dec 2019 13:24
Hi tboy,

I've installed the needed libraries, but i get a new error :

Quote: "pi@raspberrypi:~/Downloads/AGKTier2-master/apps/interpreter_linux $ make
mkdir -p build/obj32
g++ -L../../platform/linux/Lib/Release32 -static-libstdc++ -static-libgcc build/obj32/Core.o build/obj32/interpreter.o build/obj32/ProgramData.o -o build/LinuxPlayer32 -static-libstdc++ -static-libgcc -Wl,-Bstatic -lAGKLinux -lglfw3 -Wl,-Bdynamic -lGL -lXt -lX11 -lXxf86vm -lXrandr -lpthread -lXi -lXinerama -lXcursor -lopenal -ludev -ldl -no-pie
/usr/bin/ldĀ : ne peut trouver -lglfw3
collect2: error: ld returned 1 exit status
make: *** [Makefile:40: AGKPlayer] Error 1"


I've installed the missing library :
Quote: "sudo apt-get install libglfw3-dev libglfw3"

...but i still get the error.

In the github page, they say i should have the 3.2.1 version, but i have the 3.2.1-1
Can the problem be here ?


EDIT:
Thanks a lot, compiling glfw 3.2.1 solve the problem.
Emotional High Potential
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 10th Dec 2019 18:50
Awesome! Glad you got it working!

All examples work fine apart from the 3D samples, the 3D scenes all appear green, not sure what the cause is but
I have informed Rick of the issue so it's only a matter of time before it's fixed!

Login to post a reply

Server time is: 2024-03-28 08:53:36
Your offset time is: 2024-03-28 08:53:36