Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling facetimehd on CachyOS (seems to be about kernel versions 6.13+) #303

Open
krzyczak opened this issue Jan 27, 2025 · 1 comment

Comments

@krzyczak
Copy link

krzyczak commented Jan 27, 2025

For everyone trying to install this on CachyOS:

I tried compiling this on CachyOS (which is based on Arch) https://cachyos.org and I run into some issues, however I managed to get it working.

Here is what I did:

  1. CachyOS kernel is compiled with clang instead of gcc, so first thing to note is that make needed to be run like this:
make CC=clang CXX=clang++ LD=ld.lld
  1. CachyOS headers do not include <linux/prandom.h> in the <linux/random.h> header (as opposed to the headers found in linux-headers package, and so there was some invalid type error. Tio fix this I just added
#include <linux/prandom.h>

in the https://github.com/patjak/facetimehd/blob/master/fthd_ddr.c on line 19.

This way everything went well and the camera is working correctly.

I could create a PR for this but I am not quite sure how to autodetect that clang should be used and how and where set the CC=clang CXX=clang++ LD=ld.lld vars so that they don't need to be typed manually.

Any suggestions?

@nicahokie
Copy link

As you say I think point 1 might just be specific to CachyOS

but I think your point 2 is necessary for other distros on kernel 6.13+, but was not for kernel 6.12.x
In my case I am on Xanmod kernel 6.13 on ubuntu 24.10 and it helped me

@krzyczak krzyczak changed the title Compiling facetimehd on CachyOS Compiling facetimehd on CachyOS (seems to be about kernel versions 6.13+) Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants