Code: Select all
3422136784: * failed to add service - already in use?
Code: Select all
3422136784: * failed to add service - already in use?
What memory split are you using?jlauha wrote:I started getting this error when I just switched to the new "2012-09-18-wheezy-raspbian" image. I get it e.g. when I compile and try to run the hello_triangle example.
Code: Select all
#!/bin/sh
cd /opt/minecraft-pi || exit
if grep -q okay /proc/device-tree/soc/vec@7e806000/status; then
export LD_PRELOAD=libbcm_host.so.1.0
export LD_LIBRARY_PATH=lib/mesa
else
export LD_LIBRARY_PATH=lib/brcm
fi
./minecraft-pi
vec@7e806000 is the composite video output device. That's not enabled except with FULL KMS on Pi0-3.jdonald wrote: ↑Sat Nov 14, 2020 12:52 pmIf there is such a script already running but it's somehow choosing the legacy driver (LD_LIBRARY_PATH=lib/brcm) path, that means grep -q okay /proc/device-tree/soc/vec@7e806000/status isn't returning what's expected for OpenGL + Fake KMS. You could modify your script to say if true; then on that line, but you may also need to investigate whether your driver is actually working properly with hardware acceleration by installing mesa-utils and running glxinfo.
About this, it was solved switching the GL Driver. Anyways if you're using some MCPIL versions, you'll probably find another error, related to a "missing" GLESv2. To be honest, I don't know what's failing, or how to fix it, since all the required libraries are installed on the system, and MCPIL does the wrapping internally. But I'm trying to fix it and make a new release.MikeCoder wrote: ↑Sun Nov 08, 2020 6:03 pmHello there. This thread is very old, but I just tried to run https://github.com/MCPI-Devs/MCPIL. I got the "Failed to add service error." I'm currently using OpenGL Fake KMS driver with a 128mb memory split, but it still doesn't work. Any suggestions?
Code: Select all
if (get_processor_id() == PROCESSOR_BCM2838)
{
puts("This demo application is not available on the Pi4\n\n");
exit(0);
}
If your application is not too complicated, could you run it on the Pi 4B with a shim to avoid dispmanx? See my answer here: https://raspberrypi.stackexchange.com/a/75688 for an example of modifying the hello_triangle example to run via mcrpi-wrapper.mattc wrote: ↑Mon Dec 14, 2020 11:01 pmI tried to launch my own dispmanx legacy GL app on the Pi4B
...
Code: Select all
if (get_processor_id() == PROCESSOR_BCM2838) { puts("This demo application is not available on the Pi4\n\n"); exit(0); }
Forgive my naivete, I'm just an end user trying to compile an application. Is this something I could install to get working? I'm not sure that I understand what changed between the 3B+ and the 4B that affects us here.6by9 wrote: ↑Tue Dec 15, 2020 7:37 amThere is no legacy / firmware GL driver on the Pi4. The V3D block has been upgraded (from VideoCore 4 to VideoCore 6) and the firmware has no driver for it.
Legacy mode gives you a DispmanX based framebuffer (instead of DRM/KMS) but no GL/GLES at all on Pi4, and that isn't going to change.