NulliferBones / lg4k-linux

Linux driver for the AverMedia Live Gamer 4K (based on cx511h driver)
13 stars 4 forks source link

error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? (Ubuntu) #5

Open sebastianrueckerai opened 6 days ago

sebastianrueckerai commented 6 days ago

Hi!

I am on Ubuntu 22.04.5 LTS with Kernel 6.8.0-45-generic.

I am getting the below error while building. Any help would be greatly appreciated! :)

/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/alsa/alsa_model.c:624:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
  624 |                 snd_card_free(card);
      |                 ^~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/alsa/alsa_model.c:626:13: note: here
  626 |             case ALSA_MODEL_CREATE_SND_CARD_ERROR:
      |             ^~~~
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/gpio/gpio_model.o
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/gpio/gpio_model.c: In function ‘gpio_model_pin_get’:
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/gpio/gpio_model.c:375:24: warning: implicit conversion from ‘enum <anonymous>’ to ‘gpio_model_pin_value_t’ [-Wenum-conversion]
  375 |                 return GPIO_MODEL_BAD_HANDLE;
      |                        ^~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/gpio/gpio_model.c: In function ‘gpio_model_pin_get_direction’:
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/gpio/gpio_model.c:406:24: warning: implicit conversion from ‘enum <anonymous>’ to ‘gpio_ic_direction_t’ [-Wenum-conversion]
  406 |                 return GPIO_MODEL_BAD_HANDLE;
      |                        ^~~~~~~~~~~~~~~~~~~~~
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/i2c/i2c_model.o
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/i2c/i2c_model.c:364:19: warning: no previous prototype for ‘i2c_model_del_bus’ [-Wmissing-prototypes]
  364 | i2c_model_error_e i2c_model_del_bus(i2c_model_handle_t handle,const char *bus_name)
      |                   ^~~~~~~~~~~~~~~~~
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/mem/mem_model.o
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/misc/sys.o
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/misc/g_queue.o
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/pci/pci_model.o
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/pci/pci_model.c: In function ‘pci_model_probe’:
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/pci/pci_model.c:275:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
  275 |                 pci_disable_device(pci_dev);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/pci/pci_model.c:277:13: note: here
  277 |             case ERROR_ENABLE_PCI_DEV:
      |             ^~~~
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/thread/task_model.o
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/trace/trace.o
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/trace/trace.c: In function ‘trace_model_init’:
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/trace/trace.c:348:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
  348 |                 kobject_put(trace_cxt->kobj);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/trace/trace.c:350:13: note: here
  350 |             case ERR_NO_DEV_KOBJ:
      |             ^~~~
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/trace/debug.o
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_device.o
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_device.c:308:6: warning: no previous prototype for ‘v4l2_model_reference’ [-Wmissing-prototypes]
  308 | void v4l2_model_reference(v4l2_model_handle_t context)
      |      ^~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_device.c:317:6: warning: no previous prototype for ‘v4l2_model_unreference’ [-Wmissing-prototypes]
  317 | void v4l2_model_unreference(v4l2_model_handle_t context)
      |      ^~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_device.c: In function ‘v4l2_model_init’:
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_device.c:221:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
  221 |                                         v4l2_model_vb2_release(context->vb2_context);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_device.c:223:33: note: here
  223 |                                 case V4L2_MODEL_ERROR_VIDEO_BUF:
      |                                 ^~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_device.c:224:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
  224 |                                         v4l2_device_unregister(&context->v4l2_dev);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_device.c:226:33: note: here
  226 |                                 case V4L2_MODEL_ERROR_REGISTER_V4L2:
      |                                 ^~~~
  CC [M]  /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.o
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:168:5: warning: no previous prototype for ‘v4l2_model_to_v4l2_caps’ [-Wmissing-prototypes]
  168 | u32 v4l2_model_to_v4l2_caps(u32 v4l2m_caps)
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:225:5: warning: no previous prototype for ‘v4l2_model_ioctl_querycap’ [-Wmissing-prototypes]
  225 | int v4l2_model_ioctl_querycap(struct file *file, void *fh, struct v4l2_capability *cap)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:255:5: warning: no previous prototype for ‘v4l2_model_ioctl_enum_fmt_vid_cap’ [-Wmissing-prototypes]
  255 | int v4l2_model_ioctl_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c: In function ‘v4l2_model_ioctl_enum_fmt_vid_cap’:
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:292:9: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
  292 |         strlcpy(f->description, pixfmt->name, sizeof(f->description));
      |         ^~~~~~~
      |         strscpy
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c: At top level:
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:301:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_fmt_vid_cap’ [-Wmissing-prototypes]
  301 | int v4l2_model_ioctl_g_fmt_vid_cap(struct file *file, void *fh,struct v4l2_format *f)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:377:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_fmt_vid_cap_mplane’ [-Wmissing-prototypes]
  377 | int v4l2_model_ioctl_g_fmt_vid_cap_mplane(struct file *file, void *fh,struct v4l2_format *f) {
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:478:5: warning: no previous prototype for ‘v4l2_model_ioctl_try_fmt_vid_cap’ [-Wmissing-prototypes]
  478 | int v4l2_model_ioctl_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:552:5: warning: no previous prototype for ‘v4l2_model_ioctl_try_fmt_vid_cap_mplane’ [-Wmissing-prototypes]
  552 | int v4l2_model_ioctl_try_fmt_vid_cap_mplane(struct file *file, void *fh, struct v4l2_format *f)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:658:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_fmt_vid_cap’ [-Wmissing-prototypes]
  658 | int v4l2_model_ioctl_s_fmt_vid_cap(struct file *file, void *fh,struct v4l2_format *f)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:690:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_fmt_vid_cap_mplane’ [-Wmissing-prototypes]
  690 | int v4l2_model_ioctl_s_fmt_vid_cap_mplane(struct file *file, void *fh,struct v4l2_format *f)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:714:5: warning: no previous prototype for ‘v4l2_model_ioctl_enum_framesizes’ [-Wmissing-prototypes]
  714 | int v4l2_model_ioctl_enum_framesizes(struct file *file, void *fh, struct v4l2_frmsizeenum *fsize)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:746:5: warning: no previous prototype for ‘v4l2_model_ioctl_enum_input’ [-Wmissing-prototypes]
  746 | int v4l2_model_ioctl_enum_input(struct file *file, void *fh, struct v4l2_input *inp)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:785:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_input’ [-Wmissing-prototypes]
  785 | int v4l2_model_ioctl_g_input(struct file *file, void *fh, unsigned int *i)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:793:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_input’ [-Wmissing-prototypes]
  793 | int v4l2_model_ioctl_s_input(struct file *file, void *fh, unsigned int i)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:808:5: warning: no previous prototype for ‘v4l2_model_ioctl_enum_frameintervals’ [-Wmissing-prototypes]
  808 | int v4l2_model_ioctl_enum_frameintervals(struct file *file, void *fh, struct v4l2_frmivalenum *fival)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:838:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_parm’ [-Wmissing-prototypes]
  838 | int v4l2_model_ioctl_g_parm(struct file *file, void *fh,struct v4l2_streamparm *a)
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:877:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_parm’ [-Wmissing-prototypes]
  877 | int v4l2_model_ioctl_s_parm(struct file *file, void *fh,struct v4l2_streamparm *a)
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:909:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_ctrl’ [-Wmissing-prototypes]
  909 | int v4l2_model_ioctl_g_ctrl(struct file *file, void *fh,struct v4l2_control *a)//
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1001:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_ctrl’ [-Wmissing-prototypes]
 1001 | int v4l2_model_ioctl_s_ctrl(struct file *file, void *fh,struct v4l2_control *a)
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1072:5: warning: no previous prototype for ‘v4l2_model_ioctl_queryctrl’ [-Wmissing-prototypes]
 1072 | int v4l2_model_ioctl_queryctrl(struct file *file, void *fh,struct v4l2_queryctrl *a)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1093:5: warning: no previous prototype for ‘v4l2_model_ioctl_cropcap’ [-Wmissing-prototypes]
 1093 | int v4l2_model_ioctl_cropcap(struct file *file, void *fh,struct v4l2_cropcap *a)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1120:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_hdcp_state’ [-Wmissing-prototypes]
 1120 | int v4l2_model_ioctl_g_hdcp_state(struct file *file, unsigned int *arg)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1130:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_hdcp_state’ [-Wmissing-prototypes]
 1130 | int v4l2_model_ioctl_s_hdcp_state(struct file *file,unsigned int *arg)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1140:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_flash’ [-Wmissing-prototypes]
 1140 | int v4l2_model_ioctl_g_flash(struct file *file,struct v4l2_dump_flash *flash_dump)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1153:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_flash’ [-Wmissing-prototypes]
 1153 | int v4l2_model_ioctl_s_flash(struct file *file,struct v4l2_dump_flash *flash_update)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1168:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_dv_timings’ [-Wmissing-prototypes]
 1168 | int v4l2_model_ioctl_s_dv_timings(struct file *file, void *fd,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1176:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_dv_timings’ [-Wmissing-prototypes]
 1176 | int v4l2_model_ioctl_g_dv_timings(struct file *file, void *fd,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1183:5: warning: no previous prototype for ‘v4l2_model_ioctl_enum_std’ [-Wmissing-prototypes]
 1183 | int v4l2_model_ioctl_enum_std(struct file *file, void *fd,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1190:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_std’ [-Wmissing-prototypes]
 1190 | int v4l2_model_ioctl_s_std(struct file *file, void *fd,
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1197:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_std’ [-Wmissing-prototypes]
 1197 | int v4l2_model_ioctl_g_std(struct file *file, void *fd,
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1204:5: warning: no previous prototype for ‘v4l2_model_ioctl_querystd’ [-Wmissing-prototypes]
 1204 | int v4l2_model_ioctl_querystd(struct file *file, void *fd,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1211:5: warning: no previous prototype for ‘v4l2_model_g_tuner’ [-Wmissing-prototypes]
 1211 | int v4l2_model_g_tuner(struct file *file, void *fd,
      |     ^~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1218:5: warning: no previous prototype for ‘v4l2_model_s_tuner’ [-Wmissing-prototypes]
 1218 | int v4l2_model_s_tuner(struct file *file, void *fd,
      |     ^~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1225:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_i2c’ [-Wmissing-prototypes]
 1225 | int v4l2_model_ioctl_g_i2c(struct file *file, struct i2c_t* arg)
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1249:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_i2c’ [-Wmissing-prototypes]
 1249 | int v4l2_model_ioctl_s_i2c(struct file *file, struct i2c_t* arg)
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1269:5: warning: no previous prototype for ‘v4l2_model_ioctl_g_reg’ [-Wmissing-prototypes]
 1269 | int v4l2_model_ioctl_g_reg(struct file *file, struct reg_t* arg)
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.c:1292:5: warning: no previous prototype for ‘v4l2_model_ioctl_s_reg’ [-Wmissing-prototypes]
 1292 | int v4l2_model_ioctl_s_reg(struct file *file, struct reg_t* arg)
      |     ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver/utils/v4l2/v4l2_model_ioctl.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-45-generic/Makefile:1925: /home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-45-generic'
make: *** [Makefile:66: build] Error 2
make: Leaving directory '/home/womb/Documents/CaptureCardDrivers/lg4k-linux/driver'
cp: cannot stat 'driver/gc573.ko': No such file or directory
sebastianrueckerai commented 6 days ago

I was able to fix this by changing: strlcpy(f->description, pixfmt->name, sizeof(f->description)); to snprintf(f->description, sizeof(f->description), "%s", pixfmt->name);

Build completes now and install runs without error, but also without any log messages. After rebooting, the card does not work, the test fails:

rivers/lg4k-linux  ✅  ./gst_1.0_raw_video_audio.sh ./gst_1.0_raw_video_audio.sh: line 18: v4l2-ctl: command not found ./gst_1.0_raw_video_audio.sh: line 21: v4l2-ctl: command not found ./gst_1.0_raw_video_audio.sh: line 22: v4l2-ctl: command not found WARNING: erroneous pipeline: could not parse caps "video/x-raw,width=,height=,format=(string)YUY2"