dev47apps / droidcam-linux-client

GNU/Linux/nix client for DroidCam
http://www.dev47apps.com
GNU General Public License v2.0
1.07k stars 173 forks source link

v4l2loopback-dc fails to compile on kernels 6.8+ #271

Closed Cat-Lady closed 5 months ago

Cat-Lady commented 7 months ago

As in title, errors out with:


/path/to/droidcam/v4l2loopback/v4l2loopback-dc.c: In function 'vidioc_querycap':
/path/to/droidcam/v4l2loopback/v4l2loopback-dc.c:622:3: error: implicit declaration of function 'strlcpy'; did you mean 'strscpy'? [-Werror=implicit-function-declaration]
  622 |   strlcpy(cap->driver, "Droidcam", sizeof(cap->driver));
      |   ^~~~~~~
      |   strscpy
cc1: some warnings being treated as errors```
Cat-Lady commented 7 months ago

Turns out this bug affects mainline v4l2loopback too. Adapting this patch: https://launchpadlibrarian.net/713578869/v4l2loopback-noble.debdiff

...to your version should fix the issue.

gilbertoferreira commented 6 months ago

Turns out this bug affects mainline v4l2loopback too. Adapting this patch: https://launchpadlibrarian.net/713578869/v4l2loopback-noble.debdiff

...to your version should fix the issue.

Sorry. How can I apply this diff? Thanks

geosone commented 6 months ago

kernel-6.8.patch.txt

this is the adapted patch for the actual stable droidcam adpted from the patch abouth

sayan01 commented 6 months ago

Can this be merged to master?

zeroedout commented 6 months ago

kernel-6.8.patch.txt

this is the adapted patch for the actual stable droidcam adpted from the patch abouth

Thank you very much! I only installed droidcam yesterday and was wondering why it wouldn't compile.

Very much appreciate the patch!!!