You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
Raspberry Pi 0 2W fails at make with the following:
➜ xed cd raspberry-imu-viewer
➜ raspberry-imu-viewer git:(main) make
[ -n "$IN_DOCKER" ] || git submodule status | grep -vq '^-' || git submodule update --init --recursive
make[1]: Entering directory '/home/xed/raspberry-imu-viewer'
gcc -Wall -Wextra -Werror -O3 -I/opt/vc/include -c viewer.c -o viewer.o
viewer.c:104:5: error: unknown type name ‘EGL_DISPMANX_WINDOW_T’
104 | EGL_DISPMANX_WINDOW_T native_window;
| ^~~~~~~~~~~~~~~~~~~~~
viewer.c: In function ‘viewer_init’:
viewer.c:179:24: error: request for member ‘element’ in something not a structure or union
179 | _obj->native_window.element = dmx_element;
| ^
viewer.c:180:24: error: request for member ‘width’ in something not a structure or union
180 | _obj->native_window.width = _obj->screen_width;
| ^
viewer.c:181:24: error: request for member ‘height’ in something not a structure or union
181 | _obj->native_window.height = _obj->screen_height;
| ^
viewer.c:184:44: error: passing argument 3 of ‘eglCreateWindowSurface’ makes integer from pointer without a cast [-Werror=int-conversion]
184 | &_obj->native_window, NULL);
| ^~~~~~~~~~~~~~~~~~~~
| |
| int *
In file included from viewer.c:2:
/usr/include/EGL/egl.h:136:109: note: expected ‘EGLNativeWindowType’ {aka ‘long unsigned int’} but argument is of type ‘int *’
136 | EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
| ~~~~~~~~~~~~~~~~~~~~^~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile.src:22: viewer.o] Error 1
make[1]: Leaving directory '/home/xed/raspberry-imu-viewer'
make: *** [scripts/build.mk:3: build-direct] Error 2
The text was updated successfully, but these errors were encountered:
Raspberry Pi 0 2W fails at
make
with the following:➜ xed cd raspberry-imu-viewer
➜ raspberry-imu-viewer git:(main) make
[ -n "$IN_DOCKER" ] || git submodule status | grep -vq '^-' || git submodule update --init --recursive
make[1]: Entering directory '/home/xed/raspberry-imu-viewer'
gcc -Wall -Wextra -Werror -O3 -I/opt/vc/include -c viewer.c -o viewer.o
viewer.c:104:5: error: unknown type name ‘EGL_DISPMANX_WINDOW_T’
104 | EGL_DISPMANX_WINDOW_T native_window;
| ^~~~~~~~~~~~~~~~~~~~~
viewer.c: In function ‘viewer_init’:
viewer.c:179:24: error: request for member ‘element’ in something not a structure or union
179 | _obj->native_window.element = dmx_element;
| ^
viewer.c:180:24: error: request for member ‘width’ in something not a structure or union
180 | _obj->native_window.width = _obj->screen_width;
| ^
viewer.c:181:24: error: request for member ‘height’ in something not a structure or union
181 | _obj->native_window.height = _obj->screen_height;
| ^
viewer.c:184:44: error: passing argument 3 of ‘eglCreateWindowSurface’ makes integer from pointer without a cast [-Werror=int-conversion]
184 | &_obj->native_window, NULL);
| ^~~~~~~~~~~~~~~~~~~~
| |
| int *
In file included from viewer.c:2:
/usr/include/EGL/egl.h:136:109: note: expected ‘EGLNativeWindowType’ {aka ‘long unsigned int’} but argument is of type ‘int *’
136 | EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
| ~~~~~~~~~~~~~~~~~~~~^~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile.src:22: viewer.o] Error 1
make[1]: Leaving directory '/home/xed/raspberry-imu-viewer'
make: *** [scripts/build.mk:3: build-direct] Error 2
The text was updated successfully, but these errors were encountered: