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 / Can't get AGK running on Raspberry Pi Desktop in Virtual Box / Debian 64

Author
Message
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 24th Jan 2024 11:03
I setup Raspberry Pi Desktop from here https://www.raspberrypi.com/software/raspberry-pi-desktop/ in VirtualBox 7 on Windows. I configured it like my RPi 4B, 2GB, etc., it all runs fine.
From the browser in Pi OS, I downloaded AppGameKit for Raspberry Pi, extracted into my /home/<user> directory, then tried to execute AppGameKit (symlink), but it does nothing. I also tried geany directly in the Editor directory, again nothing.

Can someone tell me if AppGameKit runs in Raspberry Pi Desktop. If so, why it might not run. Is it an incompatible architecture or something? The only useful thing I could get was when I tried to run geany on the cmd line, I got this error: 'arm-binfmt-P: Could not open '/lib/ld-linux-armhf.so.3': No such file or directory'

Thanks
Zappo
Valued Member
19
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 24th Jan 2024 23:43
It looks like the ISO image you downloaded is for running on an Intel CPU, so I suspect your VirtualBox is creating a virtual machine with an Intel CPU. The real Raspberry Pi uses an ARM CPU and AppGameKit for the Pi is written to run on an ARM CPU so it won't be compatible.
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 25th Jan 2024 10:46
Thanks for the info. That makes sense. I tried installing on the Raspberry Pi itself and it still doesn't run. I have a 4B with 2GB ram, any thoughts on why it won't run?
Zappo
Valued Member
19
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 25th Jan 2024 16:51
If it is the actually editor which isn't running (rather than the "AGK Player") then your best bet is to run it from a terminal window and see what errors you get. This will often indicate which packages are missing and need to be installed. It has been mentioned that the "lite" versions of the PiOS are missing lots of required libraries so I wouldn't use those. So are the more recent releases of the OS such as Bookworm and Bullseye as they changed the naming convention for some of them (although you can possibly install the required packages after setup).

What I would recommend is trying the Buster version of PiOS first as that definitely works. You can download a ZIP file of the disk image from the official site here:
https://downloads.raspberrypi.com/raspios_armhf/images/raspios_armhf-2021-05-28/

You can still use the Raspberry Pi Imager application to write the image file to an SD card by picking "Use Custom" from the "Choose OS" button. The Raspberry Pi Imager application is available from here:
https://www.raspberrypi.com/software/

I've been using a Pi 3 model B+ with this OS quite happily but I don't have a Pi 4 so can't test it unfortunately. Good luck.
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 26th Jan 2024 03:32
Thanks Zappo, much appreciated. I'm up and running now, have AppGameKit running, but now I'm hitting a problem with execution. I was getting different issues:

error while loading shared libraries: libGLESv2.so: cannot open shared object file: No such file or directory

I installed GLES and SDL (based on another post), and it fixed that problem. Now I have another issue:

Core.cpp:258: int main(int, char**): Assertion 'success >= 0' failed.

I checked the interpreter_pi/Core.cpp file, and it's trying to get the screen width and height. I'm using a Wareshare 5" screen attached directly to the Pi, I assume that will be picked up by AppGameKit?
JDforce
19
Years of Service
User Offline
Joined: 27th Jul 2004
Location: Sea of Tranquility
Posted: 26th Jan 2024 18:12
Dooz,
Which Waveshare screen are you using? perhaps I can reproduce the issue. Did you get it from amazon?
(also, which raspberry pi model. os and architecture)
Let's go to Mars
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 26th Jan 2024 19:31
Hi JDforce, thanks for taking the time. I got these:
https://core-electronics.com.au/5inch-capacitive-ips-touch-display-for-raspberry-pi-800480-dsi-interface-low-power.html
https://core-electronics.com.au/raspberry-pi-4-model-b-2gb.html
JDforce
19
Years of Service
User Offline
Joined: 27th Jul 2004
Location: Sea of Tranquility
Posted: 26th Jan 2024 19:59 Edited at: 26th Jan 2024 21:36
At the waveshare site I see they have a specific OS image. Did you use that? EDIT: never mind , I didn't read correctly. It links to the official Rpi site.
What do you get with these four commands, separately?

cat /etc/os-release
uname -a
dpkg --print-architecture
arch


They mention the video drivers (as overlays) in their site.
dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-7inch


Did you set other parameters in the /boot/config.txt, specifically the ones that define width and height?
In OS prior to Bookworm you can use the config.txt file and set framebuffer_width (and height).
In Bookworm you edit the cmdline.txt and add somethinkg like video=HDMI-A-1:1920x1080M@60 always remembering that is a single line file.
I think that it is better to add the parameters than let the system choose, at least for this kind of applications.
Let's go to Mars
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 27th Jan 2024 04:05
On Buster, theses are my settings:

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux
pi@raspberrypi:~ $ dpkg --print-architecture
armhf
pi@raspberrypi:~ $ arch
armv7l

---

/boot/config.txt

framebuffer_width=1280
framebuffer_height=720

dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-7inch

---

Still get this when I execute my app:

pi@raspberrypi:~/Dev/Clock $ ./Clock
Core.cpp:258: int main(int, char**): Assertion 'success >= 0' failed.
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 27th Jan 2024 04:19
These are the settings on my bookworm install:

pds@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pds@raspberrypi:~ $ uname -a
Linux raspberrypi 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
pds@raspberrypi:~ $ dpkg --print-architecture
armhf
pds@raspberrypi:~ $ arch
aarch64

---

/boot/config.txt

dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-7inch

/boot/cmdline.txt

console=serial0,115200 console=tty1 root=PARTUUID=74443147-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=AU video=HDMI-A-1:1920x1080M@60

---

This is what happens when I run. I can't seem to find this lib.

pds@raspberrypi:~/Dev/Clock $ ./Clock
./Clock: error while loading shared libraries: libopenmaxil.so: cannot open shared object file: No such file or directory
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 27th Jan 2024 10:09
I looked at the approach for building PiPlayer, then at the end of the article it says to copy it to the interpreters folder. So instead of building it, I just copied it there, and perfect, it now works!
Thanks so much to all Zappo, and JDforce and tboy from a long way back!

Login to post a reply

Server time is: 2024-05-02 06:22:49
Your offset time is: 2024-05-02 06:22:49