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
I'm getting the following error when compiling mjpg-streamer on a Raspberry Pi with Debian jessie:
mjpg-streamer/mjpg-streamer-experimental/plugins/input_uvc/v4l2uvc.c:969:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < NB_BUFFER; i++) {
^
mjpg-streamer/mjpg-streamer-experimental/plugins/input_uvc/v4l2uvc.c:969:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
Latest version on GCC defaults to C99 compatibility, but not the one running on my Raspberry Pi. :)
Would it be possibile to add "std=c99" or something like that into the Makefile? Or maybe just modifying the plugins/input_uvc/v4l2uvc.c as of commit 29fb2b9, changing from:
for (int i = 0; i < NB_BUFFER; i++) {
munmap(vd->mem[i], vd->buf.length);
}
To:
int i;
for (i = 0; i < NB_BUFFER; i++) {
munmap(vd->mem[i], vd->buf.length);
}
The text was updated successfully, but these errors were encountered:
I'm getting the following error when compiling mjpg-streamer on a Raspberry Pi with Debian jessie:
Latest version on GCC defaults to C99 compatibility, but not the one running on my Raspberry Pi. :)
Would it be possibile to add "std=c99" or something like that into the Makefile? Or maybe just modifying the plugins/input_uvc/v4l2uvc.c as of commit 29fb2b9, changing from:
To:
The text was updated successfully, but these errors were encountered: