Error while compiling "Invalid conversion from char to void"
I edited the file src/viacamcontroller.cpp and changed the line 233 from:
(char**)NULL, wxDEFAULT_DIALOG_STYLE | wxOK | wxCANCEL | wxCENTRE);
to:
(void**)NULL, wxDEFAULT_DIALOG_STYLE | wxOK | wxCANCEL | wxCENTRE);
Compilation worked flawlessly but when I run the app I get the message:
[libwebcam] Unknown V4L2 private control ID encountered: 0x08000000 (V4L2_CID_PRIVATE_BASE + 0) [libwebcam] Unknown V4L2 private control ID encountered: 0x08000001 (V4L2_CID_PRIVATE_BASE + 1) [libwebcam] Unknown V4L2 private control ID encountered: 0x08000002 (V4L2_CID_PRIVATE_BASE + 2) [libwebcam] Unknown V4L2 private control ID encountered: 0x08000003 (V4L2_CID_PRIVATE_BASE + 3) [ WARN:0] global /build/opencv/src/opencv-4.5.2/modules/videoio/src/videoio_c.cpp (15) cvCreateCameraCapture cvCreateCameraCapture doesn't support legacy API anymore.
Error while compiling "Invalid conversion from char to void"
I edited the file src/viacamcontroller.cpp and changed the line 233 from:
(char**)NULL, wxDEFAULT_DIALOG_STYLE | wxOK | wxCANCEL | wxCENTRE);
to:(void**)NULL, wxDEFAULT_DIALOG_STYLE | wxOK | wxCANCEL | wxCENTRE);
Compilation worked flawlessly but when I run the app I get the message:
[libwebcam] Unknown V4L2 private control ID encountered: 0x08000000 (V4L2_CID_PRIVATE_BASE + 0) [libwebcam] Unknown V4L2 private control ID encountered: 0x08000001 (V4L2_CID_PRIVATE_BASE + 1) [libwebcam] Unknown V4L2 private control ID encountered: 0x08000002 (V4L2_CID_PRIVATE_BASE + 2) [libwebcam] Unknown V4L2 private control ID encountered: 0x08000003 (V4L2_CID_PRIVATE_BASE + 3) [ WARN:0] global /build/opencv/src/opencv-4.5.2/modules/videoio/src/videoio_c.cpp (15) cvCreateCameraCapture cvCreateCameraCapture doesn't support legacy API anymore.
Thank you