Closed andreimoraru closed 5 years ago
Hello @meekys,
I have captured an issue when running cam_overlay compiled as shown at the bottom of current text.
It throws an error:
pi@raspberrypi:~/cam_overlay $ ./cam_overlay.bin -V -d /dev/video1 Opened device '/dev/video1' Dimensions: 800 x 600 Pixel Format: YUYV cam_overlay.c:97:init_ogl(): eglGetDisplay cam_overlay.c:103:init_ogl(): eglInitialize MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information cam_overlay.c:126:init_ogl(): eglChooseConfig cam_overlay.c:144:init_ogl(): eglCreateContext x11/display.c:18:init_window(): XOpenDisplay x11/display.c:22:init_window(): DefaultScreen x11/display.c:24:init_window(): RootWindow x11/display.c:33:init_window(): XCreateSimpleWindow x11/display.c:47:init_window(): XStoreName x11/display.c:55:init_window(): XMapWindow cam_overlay.c:151:init_ogl(): eglCreateWindowSurface cam_overlay.bin: cam_overlay.c:153: init_ogl: Assertion `state->surface != EGL_NO_SURFACE' failed.
pi@raspberrypi:~/cam_overlay $ make DISPLAY=x11 debug cc -Ix11 -DDEBUG -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Wno-psabi -g -c cam_overlay.c -o cam_overlay.o -Wno-deprecated-declarations cc -Ix11 -DDEBUG -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Wno-psabi -g -c common.c -o common.o -Wno-deprecated-declarations cc -Ix11 -DDEBUG -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Wno-psabi -g -c display.c -o display.o -Wno-deprecated-declarations cc -Ix11 -DDEBUG -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Wno-psabi -g -c x11/display.c -o x11/display.o -Wno-deprecated-declarations cc -Ix11 -DDEBUG -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Wno-psabi -g -c png_texture.c -o png_texture.o -Wno-deprecated-declarations cc -o cam_overlay.bin -Wl,--whole-archive cam_overlay.o common.o display.o x11/display.o png_texture.o -lpng -std=c99 -lm -lEGL -lGLESv2 -lX11 -Wl,--no-whole-archive -rdynamic rm cam_overlay.o common.o png_texture.o display.o x11/display.o
Hi @andreimoraru Generally this error occurs when there is no 3d accelerated device/drivers found. Could you confirm that other 3d applications (ie. glxgears) work?
Hello @meekys,
I have captured an issue when running cam_overlay compiled as shown at the bottom of current text.
It throws an error: