ohwgiles/epoccam_linux

Makefille compilation error

Opened this issue · 1 comments

After running the command make, I get the following error:

gcc -DPREFIX=\"/usr\" -Wall -std=c99 -g -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -o epoccam epoccam_linux.c -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype
epoccam_linux.c: In function ‘v4l2_probe’:
epoccam_linux.c:308:38: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 126 [-Wformat-truncation=]
         snprintf(path_name, 127, "%s/%s/name", path_sys, dp->d_name);
                                      ^~
epoccam_linux.c:308:9: note: ‘snprintf’ output 7 or more bytes (assuming 262) into a destination of size 127
         snprintf(path_name, 127, "%s/%s/name", path_sys, dp->d_name);

Please let me know what I can fix. TIA :)