You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
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
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?
The text was updated successfully, but these errors were encountered:
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
changed the title
Compiling facetimehd on CachyOS
Compiling facetimehd on CachyOS (seems to be about kernel versions 6.13+)
Jan 30, 2025
DJManas
added a commit
to DJManas/dj
that referenced
this issue
Feb 3, 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:
make
needed to be run like this:linux-headers
package, and so there was some invalid type error. Tio fix this I just addedin 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?
The text was updated successfully, but these errors were encountered: