patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.57k stars 352 forks source link

*failed to add service - already in use?* error on Pi4 #204

Open nicolevella opened 3 years ago

nicolevella commented 3 years ago

Cant get it to run on my Pi4.

Tried both desktop and headless installs of raspiban. and running it from desktop terminal and from booting into command line and running there.

any ideas?

something to do with drivers?

patriciogonzalezvivo commented 2 years ago

Ok... couple of things RaspberryPi 4 have a different graphic chip... the camera does't work with MMAL and OpenMAX that's why they migrate to libCamera. You will have to wait until I add support for it. In case you want to help with it basically we need to create a similar TextureStream (https://github.com/patriciogonzalezvivo/ada/blob/00177f4fed8161e26f3f5fab064adf355521adab/include/ada/gl/textureStream.h) class but using libCamera wooks... find this example https://git.libcamera.org/libcamera/simple-cam.git/tree/simple-cam.cpp. I just push a fix for using card0 as default you can select your card this way glslViewer shader.frag --display /dev/dri/card0