Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Support Raspberry Pi OS Bullseye and newer #3

Open
DVSUHZ-g opened this issue Jul 10, 2024 · 0 comments
Open

Support Raspberry Pi OS Bullseye and newer #3

DVSUHZ-g opened this issue Jul 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@DVSUHZ-g
Copy link

DVSUHZ-g commented Jul 10, 2024

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

@aler9 aler9 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2024
@aler9 aler9 reopened this Sep 22, 2024
@aler9 aler9 added the enhancement New feature or request label Sep 22, 2024
@aler9 aler9 changed the title Future rpi 02w Integration Support Raspberry Pi OS Bullseye and newer Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants