Resurrecting old post.
Finally I had time and tried to modify my code.
It seems that error message:
Code: Select all
* failed to add service - already in use?
I am using Mesa GL. For creation is used DRM/GBM stuff (beacuse I am headless).
Also was needed to link program with GLESv2,EGL
instead of brcmGLESv2,brcmEGL
Some functions are not defined in MESA EGL and need to be added dynamically using eglGetProcAddress
But now receive EGL error 0x300c in function raspitexutil_do_update_texture
during calling of
. Error 0x300c = EGL_BAD_PARAMETER.
I have noticed that function eglCreateImageKHR
was originally defined in egl_khr_image_client.c
which I think is used when
is program linked against brcmEGL
. But MESA EGL hasn't it defined it in such way and don't know anything about:
Some tips how to solve this issue?
How to add support to PI4? I have used it on PI1/2/3 for fast image processing using shaders.