Skip to content

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

@krzyczak

Description

@krzyczak

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions